summaryrefslogtreecommitdiff
path: root/audio/rplay/Makefile
diff options
context:
space:
mode:
authorMichael Scheidell <scheidell@FreeBSD.org>2012-04-25 22:08:28 +0000
committerMichael Scheidell <scheidell@FreeBSD.org>2012-04-25 22:08:28 +0000
commit43ad5a6b5fe4e2c0c6c21f5d89d31fdef77999db (patch)
tree50edfbbc0e5c59598266bf570d0059da6be4f56e /audio/rplay/Makefile
parent- Add missing BUILD_DEPENDS (diff)
- Fix crash on amd64 when rplayd parses the rplay.hosts file (extra-patch for amd64 only) [1]
- Channel dougb and re-write the rc script [2] - Bump PORTREVISION PR: ports/166658 [1] Submitted by: Callum Gibson <callumgibson@optusnet.com.au> [1] Reviewed by: scheidell@ [2]
Notes
Notes: svn path=/head/; revision=295526
Diffstat (limited to 'audio/rplay/Makefile')
-rw-r--r--audio/rplay/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/audio/rplay/Makefile b/audio/rplay/Makefile
index 926ef506c6cd..95724f59904b 100644
--- a/audio/rplay/Makefile
+++ b/audio/rplay/Makefile
@@ -7,7 +7,7 @@
PORTNAME= rplay
PORTVERSION= 3.3.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://rplay.doit.org/dist/
@@ -27,13 +27,22 @@ MAN8= rplayd.8
INFO= RPLAY RPTP librplay rplayd
+.include <bsd.port.pre.mk>
+
+USE_RC_SUBR= rplay
+
+.if ${ARCH} == "amd64"
+# pr ports/166658 mentions a problem with amd64. if it happens on i386, you can delete this conditional
+# and rename to patch-ao
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-ao
+.endif
+
post-extract:
@${CP} ${WRKSRC}/doc/rplay.texi ${WRKSRC}/doc/rplayd.texi
post-install:
- @${ECHO_MSG} "===> Installing ${PREFIX}/etc/rc.d/rplayd.sh"
- @${ECHO_MSG} "===> startup file as ${PREFIX}/etc/rc.d/rplayd.sh.sample"
- @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/rplayd.sh ${PREFIX}/etc/rc.d/rplayd.sh.sample
+ @${ECHO_MSG} "===> startup file as ${PREFIX}/etc/rc.d/rplayd"
+ @${MKDIR} ${PREFIX}/etc/
for na in rplay.conf rplay.helpers rplay.servers rplay.hosts; do \
${CP} ${WRKSRC}/etc/$$na ${PREFIX}/etc/$$na.sample; \
if [ ! -f ${PREFIX}/etc/$$na ]; then \
@@ -45,4 +54,4 @@ post-install:
.endif
@${ECHO_CMD} localhost > ${PREFIX}/etc/rplay.hosts.sample
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>