- Convert to USES=tk

- STAGE-clean
This commit is contained in:
Pietro Cerutti 2014-01-23 11:15:00 +00:00
parent 7db26d9385
commit 22a31d086c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340823

View file

@ -13,42 +13,30 @@ COMMENT= A sound toolkit for scripting languages
WRKSRC= ${WRKDIR}/${DISTNAME}/unix WRKSRC= ${WRKDIR}/${DISTNAME}/unix
USE_TK= 84+
NO_STAGE= yes
OPTIONS_DEFINE= VORBIS DOCS OPTIONS_DEFINE= VORBIS DOCS
OPTIONS_SUB= yes
USES= tk
USE_LDCONFIG= ${PREFIX}/lib/snack${PORTVERSION:R}
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
.endif
PLIST_SUB= SNACK_VER=${PORTVERSION:R}
CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \ CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
--with-tk=${TK_LIBDIR} --with-tk=${TK_LIBDIR}
MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX} MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX}
CFLAGS+= -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} \ PLIST_SUB= SNACK_VER=${PORTVERSION:R}
-I${LOCALBASE}/include PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVORBIS} .if ${PORT_OPTIONS:MVORBIS}
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+= --with-ogg-include=${LOCALBASE}/include \ CONFIGURE_ARGS+=--with-ogg-include=${LOCALBASE}/include \
--with-ogg-lib=${LOCALBASE}/lib --with-ogg-lib=${LOCALBASE}/lib
ALL_TARGET= all libsnackogg.so ALL_TARGET= all libsnackogg.so
PLIST_SUB+= VORBIS=""
.else
PLIST_SUB+= VORBIS="@comment "
.endif .endif
post-install: post-install:
.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/../doc/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR}
.endif
.include <bsd.port.mk> .include <bsd.port.mk>