summaryrefslogtreecommitdiff
path: root/audio/snack
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-10-07 01:36:58 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-10-07 01:36:58 +0000
commit43bb62bdc76aca3e7262146a57b64ce040fd897c (patch)
tree01ebe3b20b623f67b077757d7f73fbbfc36776ba /audio/snack
parent- Switch to options helpers (diff)
- Switch to options helpers
Notes
Notes: svn path=/head/; revision=398736
Diffstat (limited to 'audio/snack')
-rw-r--r--audio/snack/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/audio/snack/Makefile b/audio/snack/Makefile
index 0827a075d0a6..fe54b679d8aa 100644
--- a/audio/snack/Makefile
+++ b/audio/snack/Makefile
@@ -11,11 +11,6 @@ DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Sound toolkit for scripting languages
-WRKSRC= ${WRKDIR}/${DISTNAME}/unix
-
-OPTIONS_DEFINE= VORBIS DOCS
-OPTIONS_SUB= yes
-
USES= tk
USE_LDCONFIG= ${PREFIX}/lib/snack${PORTVERSION:R}
GNU_CONFIGURE= yes
@@ -23,17 +18,18 @@ CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
--with-tk=${TK_LIBDIR}
MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX}
+WRKSRC= ${WRKDIR}/${DISTNAME}/unix
+
PLIST_SUB= SNACK_VER=${PORTVERSION:R}
PORTDOCS= *
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= VORBIS DOCS
+OPTIONS_SUB= yes
-.if ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
-CONFIGURE_ARGS+=--with-ogg-include=${LOCALBASE}/include \
- --with-ogg-lib=${LOCALBASE}/lib
-ALL_TARGET= all libsnackogg.so
-.endif
+VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
+VORBIS_CONFIGURE_ON= --with-ogg-include=${LOCALBASE}/include \
+ --with-ogg-lib=${LOCALBASE}/lib
+VORBIS_ALL_TARGET= all libsnackogg.so
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/snack${PORTVERSION:R}/*.so