aboutsummaryrefslogtreecommitdiff
path: root/audio/daapd/Makefile
diff options
context:
space:
mode:
authorSergei Kolobov <sergei@FreeBSD.org>2003-10-23 20:24:42 +0000
committerSergei Kolobov <sergei@FreeBSD.org>2003-10-23 20:24:42 +0000
commit50642a2603d4a17b5339c69905fcfdec9b029f16 (patch)
tree947975aa0255fb11b2b00eac8cb82956ec50d866 /audio/daapd/Makefile
parent9e4870a5d6532b1cb9b38ac066d328a59a038265 (diff)
downloadports-50642a2603d4a17b5339c69905fcfdec9b029f16.tar.gz
ports-50642a2603d4a17b5339c69905fcfdec9b029f16.zip
Notes
Diffstat (limited to 'audio/daapd/Makefile')
-rw-r--r--audio/daapd/Makefile65
1 files changed, 65 insertions, 0 deletions
diff --git a/audio/daapd/Makefile b/audio/daapd/Makefile
new file mode 100644
index 000000000000..d91355771ab1
--- /dev/null
+++ b/audio/daapd/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: daapd
+# Date created: 19 October 2003
+# Whom: Lars Thegler <lars@thegler.dk>
+#
+# $FreeBSD$
+#
+
+PORTNAME= daapd
+PORTVERSION= 0.2.1c
+CATEGORIES= audio
+MASTER_SITES= http://www.deleet.de/projekte/daap/daapd/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= lars@thegler.dk
+COMMENT= Server for Digital Audio Access Protocol
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libid3tag.a:${PORTSDIR}/audio/mad \
+ ${LOCALBASE}/lib/libdaaplib.a:${PORTSDIR}/audio/daaplib \
+ ${LOCALBASE}/lib/libhttpd.a:${PORTSDIR}/www/libhttpd-persistent
+
+USE_GMAKE= yes
+USE_REINPLACE= yes
+MAKEFILE= makefile
+ALL_TARGET= daapd
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+
+DAAPD_USER= daapd
+DAAPD_GROUP= daapd
+
+LOGDIR= ${DATADIR}
+FILES_SUB= USER=${DAAPD_USER} GROUP=${DAAPD_GROUP} \
+ PREFIX=${PREFIX} LOGDIR=${LOGDIR} DOCSDIR=${DOCSDIR} \
+ LOCALBASE=${LOCALBASE}
+
+post-patch:
+ @${REINPLACE_CMD} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${WRKSRC}/${MAKEFILE}
+
+pre-install:
+ @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${PKGDIR}/pkg-install > ${PKGINSTALL}
+ @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+post-install:
+ @${INSTALL_DATA} ${WRKSRC}/daapd-example.conf ${PREFIX}/etc/daapd.conf.sample
+ @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${FILESDIR}/daapd.sh > ${WRKDIR}/daapd.sh
+ @${INSTALL_SCRIPT} ${WRKDIR}/daapd.sh ${PREFIX}/etc/rc.d/daapd.sh
+ @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${PKGDIR}/pkg-deinstall > ${PKGDEINSTALL}
+ @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${PKGDIR}/pkg-message > ${PKGMESSAGE}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.if !defined(BATCH)
+ @${CAT} ${PKGMESSAGE}
+.endif
+
+.include <bsd.port.mk>