pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/mumble mumble: update to 1.4.230



details:   https://anonhg.NetBSD.org/pkgsrc/rev/114562447336
branches:  trunk
changeset: 376051:114562447336
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Apr 01 11:53:28 2022 +0000

description:
mumble: update to 1.4.230

Release notes:
https://www.mumble.info/blog/mumble-1.4.230/

diffstat:

 chat/mumble/Makefile                                |  94 ++++++--------------
 chat/mumble/PLIST                                   |  24 +----
 chat/mumble/distinfo                                |  14 +-
 chat/mumble/options.mk                              |  22 ++--
 chat/mumble/patches/patch-overlay__gl_init__unix.c  |  48 ++++++++++
 chat/mumble/patches/patch-src_ProcessResolver.cpp   |  48 ++++++++++
 chat/mumble/patches/patch-src_mumble_CMakeLists.txt |  39 ++++++++
 chat/mumble/patches/patch-src_mumble_OSS.cpp        |  21 ++--
 chat/mumble/patches/patch-src_mumble_mumble.pro     |  14 ---
 9 files changed, 198 insertions(+), 126 deletions(-)

diffs (truncated from 486 to 300 lines):

diff -r e447f3ce0cda -r 114562447336 chat/mumble/Makefile
--- a/chat/mumble/Makefile      Fri Apr 01 11:44:41 2022 +0000
+++ b/chat/mumble/Makefile      Fri Apr 01 11:53:28 2022 +0000
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.39 2022/03/28 10:52:56 tnn Exp $
+# $NetBSD: Makefile,v 1.40 2022/04/01 11:53:28 nia Exp $
 
-DISTNAME=      mumble-1.3.4
-PKGREVISION=   10
+DISTNAME=      mumble-1.4.230
 CATEGORIES=    chat audio
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mumble-voip/}
 GITHUB_PROJECT=        mumble
-GITHUB_RELEASE=        ${PKGVERSION_NOREV}
+GITHUB_RELEASE=        v${PKGVERSION_NOREV}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://wiki.mumble.info/wiki/Main_Page
@@ -14,91 +13,53 @@
 
 TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
 
+WRKSRC=                ${WRKDIR}/mumble-${PKGVERSION_NOREV}.src
+
+# NetBSD make not suitable due to targets with spaces
 USE_TOOLS+=    pkg-config gmake
 USE_LANGUAGES= c c++
-USE_LIBTOOL=   yes
 
-PYTHON_FOR_BUILD_ONLY= tool
-CONFIGURE_ENV+=                MUMBLE_PYTHON=${PYTHONBIN:Q}
-
-BUILD_TARGET=  release
+USE_CMAKE=     yes
 
 # C++11
 GCC_REQD+=     4.8
 
 LDFLAGS.NetBSD+=       -lrt
 
-CONFIG_OPTIONS+=       DEFINES+="PLUGIN_PATH=${PREFIX}/lib/mumble"
-
-CONFIG_OPTIONS+=       CONFIG+=c++11
+# Basic sensible stuff for packaging.
+CMAKE_ARGS+=   -Dbundled-celt=off
+CMAKE_ARGS+=   -Dbundled-opus=off
+CMAKE_ARGS+=   -Dbundled-speex=off
+CMAKE_ARGS+=   -Dwarnings-as-errors=off
 
-CONFIG_OPTIONS+=       CONFIG+=no-bundled-opus
-CONFIG_OPTIONS+=       CONFIG+=no-bundled-speex
+# Compatibility.
+CXXFLAGS+=     -DCELT_SET_VBR_RATE=CELT_SET_BITRATE
 
-# appears to break the build
-CONFIG_OPTIONS+=       CONFIG+=no-embed-qt-translations
-CONFIG_OPTIONS+=       CONFIG+=no-pch
+# Architecture-specific due to nasty hacks...
+CMAKE_ARGS+=   -Doverlay=off
+
+# Not available in pkgsrc yet.
+CMAKE_ARGS+=   -Dpipewire=off
 
 # support for an old Logitech keyboard - requires missing library
-CONFIG_OPTIONS+=       CONFIG+=no-g15
+CMAKE_ARGS+=   -Dg15=off
 
 # requires missing ZeroC utilities
-CONFIG_OPTIONS+=       CONFIG+=no-ice
+CMAKE_ARGS+=   -Dice=off
 
 .include "../../mk/oss.buildlink3.mk"
 
 .if ${OSS_TYPE} != "none"
-SUBST_CLASSES+=                oss
-SUBST_STAGE.oss=       pre-configure
-SUBST_MESSAGE.oss=     Setting the OSS library.
-SUBST_FILES.oss+=      src/mumble/mumble.pro
-SUBST_VARS.oss+=       LIBOSSAUDIO
+LDFLAGS+=      ${LIBOSSAUDIO}
+CMAKE_ARGS+=   -Doss=on
+.else
+CMAKE_ARGS+=   -Doss=off
 .endif
 
-INSTALLATION_DIRS+=    bin lib/mumble
-INSTALLATION_DIRS+=    share/applications
-INSTALLATION_DIRS+=    share/icons/hicolor/128x128/apps
-INSTALLATION_DIRS+=    share/icons/hicolor/512x512/apps
-INSTALLATION_DIRS+=    share/icons/hicolor/scalable/apps
-INSTALLATION_DIRS+=    share/pixmaps
-INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
-
 CHECK_PORTABILITY_SKIP+=       3rdparty/opus-src/doc/build_draft.sh
 
-do-configure:
-       cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QTDIR}/bin/qmake -unix -recursive main.pro \
-           ${CONFIG_OPTIONS} ${MAKE_ENV} \
-           QMAKE_CFLAGS=${CFLAGS:Q} \
-           QMAKE_CXXFLAGS=${CXXFLAGS:Q} \
-           QMAKE_LFLAGS=${LDFLAGS:Q}
-
-do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/release/mumble \
-               ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd \
-               ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_LIB} ${WRKSRC}/release/libmumble* \
-               ${DESTDIR}${PREFIX}/lib/mumble
-       ${INSTALL_LIB} ${WRKSRC}/release/plugins/liblink* \
-               ${DESTDIR}${PREFIX}/lib/mumble
-       ${INSTALL_LIB} ${WRKSRC}/release/libcelt* \
-               ${DESTDIR}${PREFIX}/lib/mumble
-       ${INSTALL_DATA} ${WRKSRC}/scripts/mumble.desktop \
-               ${DESTDIR}${PREFIX}/share/applications
-       ${INSTALL_DATA} ${WRKSRC}/man/mumble.1 \
-               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_DATA} ${WRKSRC}/man/murmurd.1 \
-               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_DATA} ${WRKSRC}/icons/mumble.svg \
-               ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps
-       ${INSTALL_DATA} ${WRKSRC}/icons/mumble.xpm \
-               ${DESTDIR}${PREFIX}/share/pixmaps
-       ${INSTALL_DATA} ${WRKSRC}/themes/Mumble/mumble.png \
-               ${DESTDIR}${PREFIX}/share/icons/hicolor/512x512/apps/mumble.png
-       ${INSTALL_DATA} ${WRKSRC}/themes/Mumble/mumble.osx.png \
-               ${DESTDIR}${PREFIX}/share/icons/hicolor/128x128/apps/mumble.png
-
 .include "options.mk"
+.include "../../audio/celt/buildlink3.mk"
 .include "../../audio/libopus/buildlink3.mk"
 .include "../../audio/libsndfile/buildlink3.mk"
 .include "../../audio/speech-dispatcher/buildlink3.mk"
@@ -107,13 +68,14 @@
 .include "../../devel/boost-headers/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
 .include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/poco/buildlink3.mk"
 .include "../../devel/protobuf/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
-.include "../../lang/python/pyversion.mk"
 .include "../../net/mDNSResponder/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../x11/qt5-qtbase/buildlink3.mk"
 .include "../../x11/qt5-qtsvg/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libXi/buildlink3.mk"
 .include "../../mk/dlopen.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e447f3ce0cda -r 114562447336 chat/mumble/PLIST
--- a/chat/mumble/PLIST Fri Apr 01 11:44:41 2022 +0000
+++ b/chat/mumble/PLIST Fri Apr 01 11:53:28 2022 +0000
@@ -1,22 +1,10 @@
-@comment $NetBSD: PLIST,v 1.4 2021/03/05 09:57:20 nia Exp $
+@comment $NetBSD: PLIST,v 1.5 2022/04/01 11:53:28 nia Exp $
 bin/mumble
-bin/murmurd
-lib/mumble/libcelt0.so
-lib/mumble/libcelt0.so.0
-lib/mumble/libcelt0.so.0.11
-lib/mumble/libcelt0.so.0.11.0
-lib/mumble/libcelt0.so.0.7
-lib/mumble/libcelt0.so.0.7.0
-lib/mumble/liblink.so
-lib/mumble/libmumble.so
-lib/mumble/libmumble.so.1
-lib/mumble/libmumble.so.1.3
-lib/mumble/libmumble.so.1.3.3
-lib/mumble/libmumble_proto.a
+bin/mumble-server
 man/man1/mumble.1
+man/man1/murmur-user-wrapper.1
 man/man1/murmurd.1
-share/applications/mumble.desktop
-share/icons/hicolor/128x128/apps/mumble.png
-share/icons/hicolor/512x512/apps/mumble.png
+share/applications/org.mumble_voip.mumble.desktop
+share/icons/hicolor/256x256/apps/mumble.png
 share/icons/hicolor/scalable/apps/mumble.svg
-share/pixmaps/mumble.xpm
+share/metainfo/org.mumble_voip.mumble.appdata.xml
diff -r e447f3ce0cda -r 114562447336 chat/mumble/distinfo
--- a/chat/mumble/distinfo      Fri Apr 01 11:44:41 2022 +0000
+++ b/chat/mumble/distinfo      Fri Apr 01 11:53:28 2022 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:05:21 nia Exp $
+$NetBSD: distinfo,v 1.10 2022/04/01 11:53:28 nia Exp $
 
-BLAKE2s (mumble-1.3.4.tar.gz) = f5532d8db01b260f443b23c7da2af28b246c6c4d02cdf90d5073f36ac94f708c
-SHA512 (mumble-1.3.4.tar.gz) = e2dde5aad30d1a931e7acd8d7db0b8c785d3a268d0b8cf5626fa03953a51bcadb719c6682c440d02524e83beee13d73d8f5bb3fdf98ab1c82d3ecf824cc25f68
-Size (mumble-1.3.4.tar.gz) = 8592741 bytes
-SHA1 (patch-src_mumble_OSS.cpp) = cf441337a6284da7f87429610275ef14d084ddbf
-SHA1 (patch-src_mumble_mumble.pro) = a49c3263f6034b2ea7c8633e24823937f4c4d3f5
+BLAKE2s (mumble-1.4.230.tar.gz) = 71d12d9d94a06a3c57b8b2230040efe3dff77048cbc5c4da11d1762bd5378cc8
+SHA512 (mumble-1.4.230.tar.gz) = 6cffc7a95d88b33876f4093b99266468210f5c14f190fbd2fbe4991bef91a567e55296e7c8c6cc99e19c054853211085cc3cc08109e367e6776afb70766b3a53
+Size (mumble-1.4.230.tar.gz) = 9441667 bytes
+SHA1 (patch-overlay__gl_init__unix.c) = e8db446ee6b62af5c8e580a3927664c9b52bf4f7
+SHA1 (patch-src_ProcessResolver.cpp) = f75286127d01c2f44308d6483e2af5b5e7bc1304
+SHA1 (patch-src_mumble_CMakeLists.txt) = a171b707b8f5c8316f0c0c45bb0f8a38545f0f6a
+SHA1 (patch-src_mumble_OSS.cpp) = b0e38bade402998f7c5d0d71090a26fa4a77eb97
diff -r e447f3ce0cda -r 114562447336 chat/mumble/options.mk
--- a/chat/mumble/options.mk    Fri Apr 01 11:44:41 2022 +0000
+++ b/chat/mumble/options.mk    Fri Apr 01 11:53:28 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2020/10/16 07:42:48 nia Exp $
+# $NetBSD: options.mk,v 1.7 2022/04/01 11:53:28 nia Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.mumble
 PKG_SUPPORTED_OPTIONS=         alsa dbus jack pulseaudio portaudio
@@ -8,35 +8,35 @@
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Malsa)
-CONFIG_OPTIONS+=       CONFIG+=alsa
+CMAKE_ARGS+=   -Dalsa=on
 .include "../../audio/alsa-lib/buildlink3.mk"
 .else
-CONFIG_OPTIONS+=       CONFIG+=no-alsa
+CMAKE_ARGS+=   -Dalsa=off
 .endif
 
 .if !empty(PKG_OPTIONS:Mdbus)
-CONFIG_OPTIONS+=       CONFIG+=dbus
+CMAKE_ARGS+=   -Ddbus=on
 .else
-CONFIG_OPTIONS+=       CONFIG+=no-dbus
+CMAKE_ARGS+=   -Ddbus=off
 .endif
 
 .if !empty(PKG_OPTIONS:Mjack)
-CONFIG_OPTIONS+=       CONFIG+=jackaudio
+CMAKE_ARGS+=   -Djackaudio=on
 .include "../../audio/jack/buildlink3.mk"
 .else
-CONFIG_OPTIONS+=       CONFIG+=no-jackaudio
+CMAKE_ARGS+=   -Djackaudio=off
 .endif
 
 .if !empty(PKG_OPTIONS:Mpulseaudio)
-CONFIG_OPTIONS+=       CONFIG+=pulseaudio
+CMAKE_ARGS+=   -Dpulseaudio=on
 .include "../../audio/pulseaudio/buildlink3.mk"
 .else
-CONFIG_OPTIONS+=       CONFIG+=no-pulseaudio
+CMAKE_ARGS+=   -Dpulseaudio=off
 .endif
 
 .if !empty(PKG_OPTIONS:Mportaudio)
-CONFIG_OPTIONS+=       CONFIG+=portaudio
+CMAKE_ARGS+=   -Dportaudio=on
 .include "../../audio/portaudio/buildlink3.mk"
 .else
-CONFIG_OPTIONS+=       CONFIG+=no-portaudio
+CMAKE_ARGS+=   -Dportaudio=off
 .endif
diff -r e447f3ce0cda -r 114562447336 chat/mumble/patches/patch-overlay__gl_init__unix.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/patches/patch-overlay__gl_init__unix.c        Fri Apr 01 11:53:28 2022 +0000
@@ -0,0 +1,48 @@
+$NetBSD: patch-overlay__gl_init__unix.c,v 1.1 2022/04/01 11:53:28 nia Exp $
+
+NetBSD support.
+
+XXX hacky, verify correct
+
+--- overlay_gl/init_unix.c.orig        2022-01-18 01:00:00.330013500 +0000
++++ overlay_gl/init_unix.c
+@@ -161,6 +161,12 @@ __attribute__((visibility("default"))) v
+       return symbol;
+ }
+ 
++#ifdef __FreeBSD__
++#define LD_ELF_SO "/libexec/ld-elf.so.1"
++#else
++#define LD_ELF_SO "/libexec/ld.elf_so"
++#endif
++
+ static int find_odlsym() {
+ #if defined(__linux__)
+       void *dl = dlopen("libdl.so.2", RTLD_LAZY);
+@@ -170,7 +176,7 @@ static int find_odlsym() {
+       }
+ 
+       struct link_map *lm = dl;
+-#elif defined(__FreeBSD__)
++#else
+       struct link_map *lm = NULL;
+       if (dlinfo(RTLD_SELF, RTLD_DI_LINKMAP, &lm) == -1) {
+               ods("Unable to acquire link_map: %s", dlerror());
+@@ -178,7 +184,7 @@ static int find_odlsym() {
+       }
+ 
+       while (lm) {
+-              if (strcmp(lm->l_name, "/libexec/ld-elf.so.1") == 0) {
++              if (strcmp(lm->l_name, LD_ELF_SO) == 0) {
+                       break;
+               }
+ 
+@@ -186,7 +192,7 @@ static int find_odlsym() {
+       }



Home | Main Index | Thread Index | Old Index