From 3c86e0297d1e2a493bed0e08b42f95dd8d97d228 Mon Sep 17 00:00:00 2001 From: gahr Date: Thu, 23 Jan 2014 11:15:00 +0000 Subject: - Convert to USES=tk - STAGE-clean --- audio/snack/Makefile | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) (limited to 'audio/snack') diff --git a/audio/snack/Makefile b/audio/snack/Makefile index 5ec9a29a4722..10edfd1c1f60 100644 --- a/audio/snack/Makefile +++ b/audio/snack/Makefile @@ -13,42 +13,30 @@ COMMENT= A sound toolkit for scripting languages WRKSRC= ${WRKDIR}/${DISTNAME}/unix -USE_TK= 84+ -NO_STAGE= yes - OPTIONS_DEFINE= VORBIS DOCS +OPTIONS_SUB= yes +USES= tk +USE_LDCONFIG= ${PREFIX}/lib/snack${PORTVERSION:R} GNU_CONFIGURE= yes - -.include - -.if ${PORT_OPTIONS:MDOCS} -PORTDOCS= * -.endif - -PLIST_SUB= SNACK_VER=${PORTVERSION:R} - CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \ --with-tk=${TK_LIBDIR} MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX} -CFLAGS+= -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} \ - -I${LOCALBASE}/include +PLIST_SUB= SNACK_VER=${PORTVERSION:R} +PORTDOCS= * + +.include .if ${PORT_OPTIONS:MVORBIS} LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis -CONFIGURE_ARGS+= --with-ogg-include=${LOCALBASE}/include \ - --with-ogg-lib=${LOCALBASE}/lib +CONFIGURE_ARGS+=--with-ogg-include=${LOCALBASE}/include \ + --with-ogg-lib=${LOCALBASE}/lib ALL_TARGET= all libsnackogg.so -PLIST_SUB+= VORBIS="" -.else -PLIST_SUB+= VORBIS="@comment " .endif post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/../doc/* ${STAGEDIR}${DOCSDIR} .include -- cgit