2009-08-27 20:22:13 +00:00
|
|
|
# New ports collection makefile for: murmur
|
|
|
|
# Date created: 2009-08-03
|
|
|
|
# Whom: Ayumi M <ayu@commun.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= murmur
|
2010-03-30 14:09:20 +00:00
|
|
|
PORTVERSION= 1.2.2
|
2010-08-15 12:04:51 +00:00
|
|
|
PORTREVISION= 2
|
2009-08-27 20:22:13 +00:00
|
|
|
CATEGORIES= audio net
|
2009-09-09 09:29:11 +00:00
|
|
|
MASTER_SITES= SF/mumble/Mumble/${PORTVERSION}
|
2009-08-27 20:22:13 +00:00
|
|
|
DISTNAME= mumble-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ayu@commun.jp
|
|
|
|
COMMENT= Murmur is the server component of Mumble
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs
|
2010-01-17 05:07:37 +00:00
|
|
|
LIB_DEPENDS= protobuf.6:${PORTSDIR}/devel/protobuf
|
2009-08-27 20:22:13 +00:00
|
|
|
|
|
|
|
USE_QT_VER= 4
|
2010-06-19 21:45:49 +00:00
|
|
|
QT_COMPONENTS= qmake_build moc_build corelib network xml sql sql-sqlite3_run
|
2009-08-27 20:22:13 +00:00
|
|
|
|
|
|
|
CONFIG= no-client
|
|
|
|
|
|
|
|
MAN1= murmurd.1
|
|
|
|
USE_RC_SUBR= murmur
|
|
|
|
|
|
|
|
OPTIONS= ICE "Ice Support" on \
|
2010-01-12 18:26:26 +00:00
|
|
|
DBUS "D-Bus Support" off \
|
|
|
|
BONJOUR "Bonjour Support" on
|
2009-08-27 20:22:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_ICE)
|
2010-08-15 12:04:51 +00:00
|
|
|
LIB_DEPENDS+= Ice.34:${PORTSDIR}/devel/ice
|
2009-08-27 20:22:13 +00:00
|
|
|
.else
|
|
|
|
CONFIG+= no-ice
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DBUS)
|
|
|
|
QT_COMPONENTS+= dbus
|
|
|
|
.else
|
|
|
|
CONFIG+= no-dbus
|
|
|
|
.endif
|
|
|
|
|
2010-01-12 18:26:26 +00:00
|
|
|
.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
|
|
|
|
|
2009-08-27 20:22:13 +00:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} QMAKESPEC=${QMAKESPEC} \
|
2010-01-12 18:26:26 +00:00
|
|
|
${QMAKE} -unix PREFIX=${PREFIX} ${QMAKEFLAGS} main.pro "CONFIG+=${CONFIG}"
|
2009-08-27 20:22:13 +00:00
|
|
|
|
|
|
|
pre-su-install:
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
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
|
2010-01-12 18:26:26 +00:00
|
|
|
@${SED} -i '' -e 's|#host=.*|host=0.0.0.0|' ${WRKSRC}/scripts/murmur.ini
|
2009-08-27 20:22:13 +00:00
|
|
|
|
|
|
|
do-install:
|
2010-01-12 18:26:26 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd ${PREFIX}/sbin
|
2010-06-19 21:45:49 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/scripts/murmur.ini ${PREFIX}/etc/murmur.ini.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/murmur.ini ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/murmur.ini.sample ${PREFIX}/etc/murmur.ini; \
|
|
|
|
fi
|
2009-08-27 20:22:13 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/murmurd.1 ${MANPREFIX}/man/man1
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in CHANGES INSTALL LICENSE README README.Linux
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|