2019-03-20 19:06:00 +00:00
|
|
|
PORTNAME= murmur
|
2024-01-19 16:15:14 +00:00
|
|
|
PORTVERSION= 1.3.4
|
2019-03-20 19:06:00 +00:00
|
|
|
CATEGORIES= audio net
|
|
|
|
|
2024-01-19 16:15:14 +00:00
|
|
|
MAINTAINER= vvd@FreeBSD.org
|
2020-05-27 11:59:13 +00:00
|
|
|
COMMENT= Server component of Mumble
|
2023-08-13 18:38:42 +00:00
|
|
|
WWW= https://www.mumble.info/
|
2019-03-20 19:06:00 +00:00
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:devel/boost-libs
|
2024-01-19 16:15:14 +00:00
|
|
|
LIB_DEPENDS= libabsl_base.so:devel/abseil \
|
|
|
|
libprotobuf.so:devel/protobuf
|
2019-03-20 19:06:00 +00:00
|
|
|
|
2019-10-21 21:50:05 +00:00
|
|
|
USES= compiler:c++11-lang qmake pkgconfig python:build qt:5 ssl
|
2023-10-15 11:09:40 +00:00
|
|
|
BROKEN_SSL= openssl openssl31
|
2023-04-30 17:57:34 +00:00
|
|
|
BROKEN_SSL_REASON= Requires OpenSSL 3.0.0 deprecated CRYPTO_MEM_CHECK_ON
|
2019-03-20 19:06:00 +00:00
|
|
|
USE_CXXSTD= c++11
|
2022-09-11 10:20:14 +00:00
|
|
|
USE_QT= buildtools:build core network sql xml
|
2019-03-20 19:06:00 +00:00
|
|
|
|
|
|
|
USE_GITHUB= YES
|
|
|
|
GH_ACCOUNT= mumble-voip
|
|
|
|
GH_PROJECT= mumble
|
|
|
|
|
|
|
|
CONFIG= no-client
|
|
|
|
QMAKE_ARGS= "CONFIG+=${CONFIG}"
|
2019-10-21 21:50:05 +00:00
|
|
|
QMAKE_ENV+= "MUMBLE_PYTHON=${PYTHON_CMD}"
|
2019-03-20 19:06:00 +00:00
|
|
|
|
|
|
|
USE_RC_SUBR= murmur
|
|
|
|
SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}"
|
|
|
|
|
2024-03-01 10:38:41 +00:00
|
|
|
PORTSCOUT= limit:^1\.3\.
|
|
|
|
|
2019-10-21 21:50:05 +00:00
|
|
|
OPTIONS_DEFINE= BONJOUR DBUS DOCS ICE
|
2019-03-20 19:06:00 +00:00
|
|
|
OPTIONS_DEFAULT= BONJOUR MYSQL SQLITE
|
2019-10-21 21:50:05 +00:00
|
|
|
OPTIONS_MULTI= SQL
|
2019-03-20 19:06:00 +00:00
|
|
|
OPTIONS_MULTI_SQL= MYSQL SQLITE
|
2019-10-21 21:50:05 +00:00
|
|
|
|
|
|
|
BONJOUR_DESC= Bonjour Support
|
|
|
|
BONJOUR_VARS_OFF= CONFIG+=no-bonjour
|
|
|
|
BONJOUR_LIB_DEPENDS= libdns_sd.so:net/mDNSResponder
|
|
|
|
|
|
|
|
DBUS_VARS_OFF= CONFIG+=no-dbus
|
|
|
|
DBUS_USE= QT=dbus
|
|
|
|
|
|
|
|
ICE_DESC= Ice Support
|
|
|
|
ICE_VARS_OFF= CONFIG+=no-ice
|
|
|
|
ICE_LIB_DEPENDS= libIce.so:devel/ice
|
|
|
|
|
|
|
|
MYSQL_VARS_OFF= CONFIG+=no-sql-mysql
|
|
|
|
MYSQL_USE= QT=sql-mysql
|
|
|
|
|
|
|
|
SQLITE_VARS_OFF= CONFIG+=no-sqlite3_run
|
2022-09-11 10:20:14 +00:00
|
|
|
SQLITE_USE= QT=sql-sqlite3:run
|
2019-10-21 21:50:05 +00:00
|
|
|
|
|
|
|
USERS= murmur
|
|
|
|
GROUPS= murmur
|
2019-03-20 19:06:00 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# PCH is broken on GCC
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
|
|
CONFIG+= no-pch
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
audio/mumble audio/murmur: fix build with lld 14
During an exp-run for llvm 14 (see bug 261742), it turned out that
audio/mumble and audio/murmur fail to build with lld 14:
c++ -fstack-protector-strong -pie -Wl,--no-add-needed -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libcelt0.so.0 -o libcelt0.so.0.7.0 ../../debug/.obj/celt-0.7.0-build/bands.o ../../debug/.obj/celt-0.7.0-build/celt.o ../../debug/.obj/celt-0.7.0-build/cwrs.o ../../debug/.obj/celt-0.7.0-build/entcode.o ../../debug/.obj/celt-0.7.0-build/entdec.o ../../debug/.obj/celt-0.7.0-build/entenc.o ../../debug/.obj/celt-0.7.0-build/header.o ../../debug/.obj/celt-0.7.0-build/kiss_fft.o ../../debug/.obj/celt-0.7.0-build/kiss_fftr.o ../../debug/.obj/celt-0.7.0-build/laplace.o ../../debug/.obj/celt-0.7.0-build/mdct.o ../../debug/.obj/celt-0.7.0-build/modes.o ../../debug/.obj/celt-0.7.0-build/pitch.o ../../debug/.obj/celt-0.7.0-build/psy.o ../../debug/.obj/celt-0.7.0-build/quant_bands.o ../../debug/.obj/celt-0.7.0-build/rangedec.o ../../debug/.obj/celt-0.7.0-build/rangeenc.o ../../debug/.obj/celt-0.7.0-build/rate.o ../../debug/.obj/celt-0.7.0-build/vq.o -L/usr/lib/x86_64-unknown-freebsd14.0/c++11 -L/usr/lib -L/usr/local/lib
c++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
ld: error: unknown argument '--no-add-needed'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
This is because lld upstream removed the deprecated --no-add-needed
option, which should be replaced with --no-copy-dt-needed-entries
instead.
(Note that BFD ld still accepts the --no-add-needed option, but is also
deprecated there, so it might go away.)
PR: 263071
Approved by: maintainer timeout (2 weeks)
MFH: 2022Q2
2022-04-05 19:41:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|--no-add-needed|--no-copy-dt-needed-entries|' ${WRKSRC}/qmake/compiler.pri
|
2019-03-20 19:06:00 +00:00
|
|
|
@${ECHO_CMD} 'QMAKE_LFLAGS += -fstack-protector' >> ${WRKSRC}/src/murmur/murmur.pro
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${SED} -i '' -e 's|database=.*|database=/var/db/murmur/murmur.sqlite|' ${WRKSRC}/scripts/murmur.ini
|
|
|
|
${SED} -i '' -e 's|#pidfile=.*|pidfile=/var/run/murmur/murmur.pid|' ${WRKSRC}/scripts/murmur.ini
|
|
|
|
${SED} -i '' -e 's|#logfile=.*|logfile=/var/log/murmur/murmur.log|' ${WRKSRC}/scripts/murmur.ini
|
|
|
|
${SED} -i '' -e 's|#host=.*|host=0.0.0.0|' ${WRKSRC}/scripts/murmur.ini
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/murmur.ini ${STAGEDIR}${PREFIX}/etc/murmur.ini.sample
|
2020-01-16 09:34:42 +00:00
|
|
|
${CP} ${WRKSRC}/man/murmurd.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
2019-03-20 19:06:00 +00:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for f in CHANGES INSTALL README README.Linux
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|