svn commit: r398736 - head/audio/snack
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Oct 7 01:37:00 UTC 2015
Author: amdmi3
Date: Wed Oct 7 01:36:58 2015
New Revision: 398736
URL: https://svnweb.freebsd.org/changeset/ports/398736
Log:
- Switch to options helpers
Modified:
head/audio/snack/Makefile
Modified: head/audio/snack/Makefile
==============================================================================
--- head/audio/snack/Makefile Wed Oct 7 01:36:53 2015 (r398735)
+++ head/audio/snack/Makefile Wed Oct 7 01:36:58 2015 (r398736)
@@ -11,11 +11,6 @@ DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports at 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
More information about the svn-ports-all
mailing list