pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat chat/mumble: Import version 1.2.19. Based partial...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a2fccd2cdf0
branches:  trunk
changeset: 316963:8a2fccd2cdf0
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Dec 22 18:17:39 2018 +0000

description:
chat/mumble: Import version 1.2.19. Based partially on work in pkgsrc-wip.

Mumble is an open source, low-latency, high quality voice chat software
primarily intended for use while gaming.

This package contains the client and server software.

diffstat:

 chat/Makefile                                        |   3 +-
 chat/mumble/DESCR                                    |   4 +
 chat/mumble/Makefile                                 |  95 ++++++++++++++++++++
 chat/mumble/PLIST                                    |  10 ++
 chat/mumble/distinfo                                 |  10 ++
 chat/mumble/options.mk                               |  33 ++++++
 chat/mumble/patches/patch-main.pro                   |  16 +++
 chat/mumble/patches/patch-src_mumble_AudioOutput.cpp |  15 +++
 chat/mumble/patches/patch-src_mumble_mumble.pro      |  43 +++++++++
 chat/mumble/patches/patch-src_mumble_mumble__pch.hpp |  15 +++
 10 files changed, 243 insertions(+), 1 deletions(-)

diffs (294 lines):

diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/Makefile
--- a/chat/Makefile     Sat Dec 22 17:32:54 2018 +0000
+++ b/chat/Makefile     Sat Dec 22 18:17:39 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.210 2018/12/16 02:05:23 nia Exp $
+# $NetBSD: Makefile,v 1.211 2018/12/22 18:17:39 nia Exp $
 #
 
 COMMENT=       Communication programs
@@ -83,6 +83,7 @@
 SUBDIR+=       matterircd
 SUBDIR+=       mcabber
 SUBDIR+=       meanwhile
+SUBDIR+=       mumble
 SUBDIR+=       ninja
 SUBDIR+=       p5-IRC-Utils
 SUBDIR+=       p5-Net-AIM
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/DESCR Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,4 @@
+Mumble is an open source, low-latency, high quality voice chat software
+primarily intended for use while gaming.
+
+This package contains the client and server software.
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/Makefile      Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,95 @@
+# $NetBSD: Makefile,v 1.1 2018/12/22 18:17:39 nia Exp $
+
+DISTNAME=      mumble-1.2.19
+CATEGORIES=    chat audio
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mumble-voip/}
+GITHUB_PROJECT=        mumble
+GITHUB_RELEASE=        ${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://wiki.mumble.info/wiki/Main_Page
+COMMENT=       Low latency VOIP software
+LICENSE=       modified-bsd
+
+USE_TOOLS+=    pkg-config
+USE_LANGUAGES= c c++11
+USE_LIBTOOL=   yes
+
+BUILD_DEPENDS+=        boost-headers-[0-9]*:../../devel/boost-headers
+DEPENDS+=      qt4-sqlite3-[0-9]*:../../x11/qt4-sqlite3
+
+# cut down on excessive noise from headers to attempt to make it easier to
+# find problems
+CXXFLAGS+=     -Wno-deprecated-declarations
+CXXFLAGS+=     -Wno-float-conversion
+CXXFLAGS+=     -Wno-unused-parameter
+
+BUILDLINK_TRANSFORM+=  rm:-Wconversion
+BUILDLINK_TRANSFORM+=  rm:-Wold-style-cast
+
+CONFIG_OPTIONS+=       CONFIG+=no-bundled-opus
+CONFIG_OPTIONS+=       CONFIG+=no-bundled-speex
+
+# appears to break the build
+CONFIG_OPTIONS+=       CONFIG+=no-embed-qt-translations
+
+# support for an old Logitech keyboard - requires missing library
+CONFIG_OPTIONS+=       CONFIG+=no-g15
+
+# requires missing ZeroC utilities
+CONFIG_OPTIONS+=       CONFIG+=no-ice
+
+# required by protobuf
+CONFIG_OPTIONS+=       CONFIG+=c++11
+
+.include "../../mk/oss.buildlink3.mk"
+
+.if ${OSS_TYPE} != "none"
+SUBST_CLASSES+=                oss
+SUBST_STAGE.oss=       pre-configure
+SUBST_MESSAGE.oss=     Correct path to OSS device.
+SUBST_FILES.oss+=      src/mumble/OSS.cpp
+SUBST_SED.oss=         -e "s,\"/dev/dsp\",\"${DEVOSSAUDIO}\",g"
+.endif
+
+INSTALLATION_DIRS+=    bin lib
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/icons/hicolor/128x128/apps
+INSTALLATION_DIRS+=    share/icons/hicolor/scalable/apps
+INSTALLATION_DIRS+=    share/pixmaps
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+
+do-configure:
+       cd ${WRKSRC} && ${QTDIR}/bin/qmake -unix -recursive main.pro \
+           ${CONFIG_OPTIONS} ${MAKE_ENV} \
+           QMAKE_CFLAGS=${CFLAGS:Q} QMAKE_CXXFLAGS=${CXXFLAGS:Q}
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/release/mumble ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_LIB} ${WRKSRC}/release/.libs/libcelt0.so.0.11.0 ${DESTDIR}${PREFIX}/lib/libcelt-mumble.so.0.7.0
+       ${INSTALL_LIB} ${WRKSRC}/release/.libs/libmumble.so.${PKGVERSION_NOREV} ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_DATA} ${WRKSRC}/scripts/mumble.desktop ${DESTDIR}${PREFIX}/share/applications
+       ${INSTALL_DATA} ${WRKSRC}/icons/mumble.xpm ${DESTDIR}${PREFIX}/share/pixmaps
+       ${INSTALL_DATA} ${WRKSRC}/icons/mumble.osx.png ${DESTDIR}${PREFIX}/share/icons/hicolor/128x128/apps
+       ${MV} ${DESTDIR}${PREFIX}/share/icons/hicolor/128x128/apps/mumble.osx.png ${DESTDIR}${PREFIX}/share/icons/hicolor/128x128/apps/mumble.png
+       ${INSTALL_DATA} ${WRKSRC}/icons/mumble.svg ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+       ${INSTALL_MAN} ${WRKSRC}/man/mumble.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "options.mk"
+.include "../../audio/libopus/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
+.include "../../audio/speech-dispatcher/buildlink3.mk"
+.include "../../audio/speexdsp/buildlink3.mk"
+.include "../../audio/speex/buildlink3.mk"
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/protobuf/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/qt4-libs/buildlink3.mk"
+.include "../../x11/qt4-tools/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/PLIST Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2018/12/22 18:17:39 nia Exp $
+bin/mumble
+bin/murmurd
+lib/libcelt-mumble.so.0.7.0
+lib/libmumble.so.${PKGVERSION}
+man/man1/mumble.1
+share/applications/mumble.desktop
+share/icons/hicolor/128x128/apps/mumble.png
+share/icons/hicolor/scalable/apps/mumble.svg
+share/pixmaps/mumble.xpm
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/distinfo      Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2018/12/22 18:17:39 nia Exp $
+
+SHA1 (mumble-1.2.19.tar.gz) = 8ea9dafad14e6c730da72ae9b4625778e499d94f
+RMD160 (mumble-1.2.19.tar.gz) = 9c24e5348c4ae5689d1fc0759c17d547a9b83eaf
+SHA512 (mumble-1.2.19.tar.gz) = f91111194a899149b500a94afcf7cc5b9691c7ce8669f07fca2c66adbb3916ddb863bf703d04fb8387133fb75f3c8edb52974d1acf3febfafa1f73da19946de4
+Size (mumble-1.2.19.tar.gz) = 3210865 bytes
+SHA1 (patch-main.pro) = af7e2dcdc803dc9c81ce1d8bff06fdbee30c9bfa
+SHA1 (patch-src_mumble_AudioOutput.cpp) = 63ad8a2545af3c83daca8a953cc96030397869e8
+SHA1 (patch-src_mumble_mumble.pro) = 478325bf97a716da84374e16943b6e99b7ad4d78
+SHA1 (patch-src_mumble_mumble__pch.hpp) = aeb4e255e92e2f8cd7314241c81efdf63006e235
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/options.mk    Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: options.mk,v 1.1 2018/12/22 18:17:39 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.mumble
+PKG_SUPPORTED_OPTIONS=         alsa dbus pulseaudio portaudio
+PKG_SUGGESTED_OPTIONS=         dbus
+PKG_SUGGESTED_OPTIONS.Linux=   alsa
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Malsa)
+CONFIG_OPTIONS+=       CONFIG+=alsa
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIG_OPTIONS+=       CONFIG+=no-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mdbus)
+.include "../../x11/qt4-qdbus/buildlink3.mk"
+.else
+CONFIG_OPTIONS+=       CONFIG+=no-dbus
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CONFIG_OPTIONS+=       CONFIG+=no-pulseaudio
+.endif
+
+.if !empty(PKG_OPTIONS:Mportaudio)
+.include "../../audio/portaudio/buildlink3.mk"
+.else
+CONFIG_OPTIONS+=       CONFIG+=no-portaudio
+.endif
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/patches/patch-main.pro
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/patches/patch-main.pro        Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-main.pro,v 1.1 2018/12/22 18:17:39 nia Exp $
+
+Always use the builtin version of celt to avoid API incompatibilities.
+
+--- main.pro.orig      2017-01-27 06:48:33.000000000 +0000
++++ main.pro
+@@ -12,9 +12,6 @@ CONFIG *= ordered debug_and_release
+   CONFIG(sbcelt) {
+     SUBDIRS *= celt-0.7.0-build sbcelt-lib-build sbcelt-helper-build
+   } else {
+-    unix:!CONFIG(bundled-celt):system(pkg-config --atleast-version=0.7.0 celt) {
+-      CONFIG *= no-bundled-celt
+-    }
+     !CONFIG(no-bundled-celt) {
+       SUBDIRS *= celt-0.7.0-build celt-0.11.0-build
+     }
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/patches/patch-src_mumble_AudioOutput.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/patches/patch-src_mumble_AudioOutput.cpp      Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_mumble_AudioOutput.cpp,v 1.1 2018/12/22 18:17:39 nia Exp $
+
+https://github.com/mumble-voip/mumble/pull/3287
+
+--- src/mumble/AudioOutput.cpp.orig    2017-01-27 06:48:33.000000000 +0000
++++ src/mumble/AudioOutput.cpp
+@@ -431,7 +431,7 @@ bool AudioOutput::mix(void *outbuff, uns
+                                       top[2] = 0.0f;
+                               }
+ 
+-                              if (std::abs<float>(front[0] * top[0] + front[1] * top[1] + front[2] * top[2]) > 0.01f) {
++                              if (std::abs(front[0] * top[0] + front[1] * top[1] + front[2] * top[2]) > 0.01f) {
+                                       // Not perpendicular. Assume Y up and rotate 90 degrees.
+ 
+                                       float azimuth = 0.0f;
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/patches/patch-src_mumble_mumble.pro
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/patches/patch-src_mumble_mumble.pro   Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-src_mumble_mumble.pro,v 1.1 2018/12/22 18:17:39 nia Exp $
+
+Always use the builtin version of celt to avoid API incompatibilities.
+
+Use ${LIBOSSAUDIO}.
+
+Find speech-dispatcher's include directory with pkgconf.
+
+--- src/mumble/mumble.pro.orig 2017-01-27 06:48:33.000000000 +0000
++++ src/mumble/mumble.pro
+@@ -67,15 +67,7 @@ CONFIG(sbcelt) {
+   LIBS *= -lcelt -lsbcelt
+   DEFINES *= SBCELT_PREFIX_API SBCELT_COMPAT_API USE_SBCELT
+ } else {
+-  unix:!CONFIG(bundled-celt):system(pkg-config --atleast-version=0.7.0 celt) {
+-    CONFIG    *= no-bundled-celt
+-  }
+-  CONFIG(no-bundled-celt) {
+-    INCLUDEPATH       *= /usr/include/celt
+-  }
+-  !CONFIG(no-bundled-celt) {
+-    INCLUDEPATH       *= ../../celt-0.7.0-src/libcelt
+-  }
++  INCLUDEPATH *= ../../celt-0.7.0-src/libcelt
+ }
+ 
+ !win32 {
+@@ -240,6 +232,7 @@ oss {
+       HEADERS *= OSS.h
+       SOURCES *= OSS.cpp
+       INCLUDEPATH *= /usr/lib/oss/include
++      LIBS *= "$$LIBOSSAUDIO"
+ }
+ 
+ pulseaudio {
+@@ -292,6 +285,7 @@ dbus {
+ 
+ speechd {
+       DEFINES *= USE_SPEECHD
++      PKGCONFIG *= speech-dispatcher
+       LIBS *= -lspeechd
+ }
+ 
diff -r 49519d8807c5 -r 8a2fccd2cdf0 chat/mumble/patches/patch-src_mumble_mumble__pch.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/mumble/patches/patch-src_mumble_mumble__pch.hpp      Sat Dec 22 18:17:39 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_mumble_mumble__pch.hpp,v 1.1 2018/12/22 18:17:39 nia Exp $
+
+https://github.com/mumble-voip/mumble/pull/3287
+
+--- src/mumble/mumble_pch.hpp.orig     2017-01-27 06:48:33.000000000 +0000
++++ src/mumble/mumble_pch.hpp
+@@ -71,6 +71,8 @@
+ #include <boost/typeof/typeof.hpp>
+ #include <boost/weak_ptr.hpp>
+ 
++#include <cmath>
++
+ #ifdef Q_OS_WIN
+ #include <shellapi.h>
+ #include <winsock2.h>



Home | Main Index | Thread Index | Old Index