freebsd-ports/audio/murmur/Makefile
Pawel Pekala 03551b1e24 Call pkginstall script with correct arguments and after murmur
user and group is created. This fixes creation of dirs needed
for running mumrmurd daemon for users building from port.

PR:		ports/171699
Reported by:	Michael Fausten <ports@michael-fausten.de>
Approved by:	maintainer timeout (2 months)
Feature safe:	yes
2012-11-13 21:56:08 +00:00

82 lines
2.2 KiB
Makefile

# Created by: Ayumi M <ayu@commun.jp>
# $FreeBSD$
PORTNAME= murmur
PORTVERSION= 1.2.3
PORTREVISION= 2
CATEGORIES= audio net
MASTER_SITES= SF/mumble/Mumble/${PORTVERSION}
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
LIB_DEPENDS= protobuf.7:${PORTSDIR}/devel/protobuf
USERS= ${PORTNAME}
GROUPS= ${USERS}
USE_QT4= qmake_build moc_build corelib network xml sql sql-sqlite3_run
CONFIG= no-client
MAN1= murmurd.1
USE_RC_SUBR= murmur
OPTIONS= ICE "Ice Support" on \
DBUS "D-Bus Support" off \
BONJOUR "Bonjour Support" on
.include <bsd.port.pre.mk>
.if defined(WITH_ICE)
LIB_DEPENDS+= Ice.34:${PORTSDIR}/devel/ice
.else
CONFIG+= no-ice
.endif
.if defined(WITH_DBUS)
USE_QT4+= dbus
.else
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} >= 800000
@${ECHO_CMD} 'QMAKE_LFLAGS += -fstack-protector' >> ${WRKSRC}/src/murmur/murmur.pro
.endif
do-configure:
@cd ${WRKSRC} && ${SETENV} QMAKESPEC=${QMAKESPEC} \
${QMAKE} -unix PREFIX=${PREFIX} ${QMAKEFLAGS} main.pro "CONFIG+=${CONFIG}"
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}/sbin
@${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
${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
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>