aboutsummaryrefslogtreecommitdiff
path: root/audio/murmur/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2010-01-12 18:26:26 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2010-01-12 18:26:26 +0000
commit04aadba0db366a3cba11645da5a67c48c3dbf2c4 (patch)
treedf27f2ba54a2ced0becd793199fa38e487388a8d /audio/murmur/Makefile
parenta44f4c111219c50c6d1c33030927fd1e99405249 (diff)
downloadports-04aadba0db366a3cba11645da5a67c48c3dbf2c4.tar.gz
ports-04aadba0db366a3cba11645da5a67c48c3dbf2c4.zip
Notes
Diffstat (limited to 'audio/murmur/Makefile')
-rw-r--r--audio/murmur/Makefile27
1 files changed, 21 insertions, 6 deletions
diff --git a/audio/murmur/Makefile b/audio/murmur/Makefile
index ece82e1f427a..2c2bf822eba2 100644
--- a/audio/murmur/Makefile
+++ b/audio/murmur/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= murmur
-PORTVERSION= 1.1.8
-PORTREVISION= 1
+PORTVERSION= 1.2.0
CATEGORIES= audio net
MASTER_SITES= SF/mumble/Mumble/${PORTVERSION}
DISTNAME= mumble-${PORTVERSION}
@@ -17,10 +16,10 @@ COMMENT= Murmur is the server component of Mumble
BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/sqldrivers/libqsqlite.so:${PORTSDIR}/databases/qt4-sqlite3-plugin
+LIB_DEPENDS= protobuf.4:${PORTSDIR}/devel/protobuf
USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build corelib network xml sql
-HAS_CONFIGURE= yes
CONFIG= no-client
@@ -28,7 +27,8 @@ MAN1= murmurd.1
USE_RC_SUBR= murmur
OPTIONS= ICE "Ice Support" on \
- DBUS "D-Bus Support" off
+ DBUS "D-Bus Support" off \
+ BONJOUR "Bonjour Support" on
.include <bsd.port.pre.mk>
@@ -44,9 +44,23 @@ QT_COMPONENTS+= dbus
CONFIG+= no-dbus
.endif
+.if defined(WITH_BONJOUR)
+LIB_DEPENDS+= dns_sd.1:${PORTSDIR}/net/mDNSResponder
+.else
+CONFIG+= no-bonjour
+.endif
+
+post-patch:
+.if ${OSVERSION} < 700000
+ @cd ${WRKSRC} && ${PATCH} -sp < ${PATCHDIR}/freebsd6-patch-compiler.pri
+.endif
+.if ${OSVERSION} >= 800000
+ @${ECHO_CMD} 'QMAKE_LFLAGS += -fstack-protector' >> ${WRKSRC}/src/murmur/murmur.pro
+.endif
+
do-configure:
@cd ${WRKSRC} && ${SETENV} QMAKESPEC=${QMAKESPEC} \
- ${QMAKE} -unix PREFIX=${PREFIX} main.pro "CONFIG+=${CONFIG}"
+ ${QMAKE} -unix PREFIX=${PREFIX} ${QMAKEFLAGS} main.pro "CONFIG+=${CONFIG}"
pre-su-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@@ -55,9 +69,10 @@ 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 ${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd ${PREFIX}/sbin
@${INSTALL_DATA} ${WRKSRC}/scripts/murmur.ini ${PREFIX}/etc
${INSTALL_MAN} ${WRKSRC}/man/murmurd.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)