aboutsummaryrefslogtreecommitdiff
path: root/audio/shairport/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/shairport/Makefile')
-rw-r--r--audio/shairport/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/shairport/Makefile b/audio/shairport/Makefile
index 7e1635d76e3f..a4df021a90fa 100644
--- a/audio/shairport/Makefile
+++ b/audio/shairport/Makefile
@@ -33,6 +33,8 @@ PORTDOCS= README.md
REV= b1cb9ea
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|avahi-|${LOCALBASE}/bin/avahi-|g' \
-e 's|$$FindBin.*|"${PREFIX}/bin/hairtunes";|' \
@@ -44,7 +46,7 @@ do-install:
.for file in ${PORTNAME} hairtunes
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} -p ${WRKSRC}/${i} ${DOCSDIR}