summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authoradrianp <adrianp>2008-12-20 14:12:28 +0000
committeradrianp <adrianp>2008-12-20 14:12:28 +0000
commitfd64de5ee8492abe1fb3687bcf8932c0b07e6653 (patch)
treec87184de652242307b477f677fd816d4ccf5d390 /audio
parentaa0a4739b6b826f6bd750bfcf6ab2721dd6ad361 (diff)
downloadpkgsrc-fd64de5ee8492abe1fb3687bcf8932c0b07e6653.tar.gz
Add howl support from Daniel Hagerty in PR#40196
Take joerg@'s example on how to add in support and as a result we don't need the change suggested in PR#40194 No change to the default build
Diffstat (limited to 'audio')
-rw-r--r--audio/mt-daapd/Makefile4
-rw-r--r--audio/mt-daapd/options.mk13
2 files changed, 16 insertions, 1 deletions
diff --git a/audio/mt-daapd/Makefile b/audio/mt-daapd/Makefile
index e6a770bf1ff..04da4e1f394 100644
--- a/audio/mt-daapd/Makefile
+++ b/audio/mt-daapd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/11/23 22:57:05 tron Exp $
+# $NetBSD: Makefile,v 1.8 2008/12/20 14:12:28 adrianp Exp $
DISTNAME= mt-daapd-0.2.4.2
PKGREVISION= 1
@@ -33,6 +33,8 @@ CONF_FILES_PERMS= ${EGDIR}/mt-daapd.conf ${PKG_SYSCONFDIR}/mt-daapd.conf \
OWN_DIRS_PERMS= ${VARBASE}/cache/mt-daapd \
${MTDAAPD_USER} ${MTDAAPD_GROUP} 0750
+.include "options.mk"
+
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= contrib/mt-daapd.conf
diff --git a/audio/mt-daapd/options.mk b/audio/mt-daapd/options.mk
new file mode 100644
index 00000000000..6e865bb8839
--- /dev/null
+++ b/audio/mt-daapd/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2008/12/20 14:12:28 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.mt-daapd
+PKG_SUPPORTED_OPTIONS= howl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mhowl)
+.include "../../net/howl/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-howl
+CFLAGS+= -I${PREFIX}/include/howl
+.else
+.endif