diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-07 09:36:58 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-07 09:36:58 +0800 |
commit | 76716b2aad63ba08410c21e0c25eabf66c3f69bd (patch) | |
tree | 01ebe3b20b623f67b077757d7f73fbbfc36776ba /audio/snack | |
parent | 5c321885a2c36b6f55029a3ce83ca7f62dc8f8a4 (diff) | |
download | freebsd-ports-gnome-76716b2aad63ba08410c21e0c25eabf66c3f69bd.tar.gz freebsd-ports-gnome-76716b2aad63ba08410c21e0c25eabf66c3f69bd.tar.zst freebsd-ports-gnome-76716b2aad63ba08410c21e0c25eabf66c3f69bd.zip |
- Switch to options helpers
Diffstat (limited to 'audio/snack')
-rw-r--r-- | audio/snack/Makefile | 20 |
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 |