diff options
Diffstat (limited to 'audio/daapd/Makefile')
-rw-r--r-- | audio/daapd/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/audio/daapd/Makefile b/audio/daapd/Makefile index 4d1d15b173b..f84600c0760 100644 --- a/audio/daapd/Makefile +++ b/audio/daapd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2006/01/01 18:32:01 tron Exp $ +# $NetBSD: Makefile,v 1.15 2006/01/24 15:18:38 tonio Exp $ DISTNAME= daapd-0.2.4a CATEGORIES= audio @@ -18,12 +18,23 @@ EGDIR= ${PREFIX}/share/examples/${PKGBASE} CONF_FILES= ${EGDIR}/daapd.conf ${PKG_SYSCONFDIR}/daapd.conf +PKG_OPTIONS_VAR=PKG_OPTIONS.daapd +PKG_SUPPORTED_OPTIONS=faad +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mfaad) +.include "../../audio/faad2/buildlink3.mk" +MAKE_ENV+= WITH_FAAD=1 +.else +MAKE_ENV+= WITH_FAAD=0 +.endif + MAKE_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} SUBST_CLASSES+= paths -SUBST_MESSAGE.paths= "Fixing hardcoded paths." +SUBST_MESSAGE.paths= Fixing hardcoded paths. SUBST_STAGE.paths= post-patch SUBST_FILES.paths= daapd.8 daapd.cc SUBST_SED.paths= -e 's,/etc/,${PKG_SYSCONFDIR}/,g' |