diff options
author | miwi <miwi@FreeBSD.org> | 2013-03-06 01:07:43 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-03-06 01:07:43 +0800 |
commit | b5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7 (patch) | |
tree | 268d74f9d8738f78b0c895672044611aa6343387 /audio/snack | |
parent | 4c148339a17778393b116c6e7051a9bc484e786a (diff) | |
download | freebsd-ports-gnome-b5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7.tar.gz freebsd-ports-gnome-b5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7.tar.zst freebsd-ports-gnome-b5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7.zip |
- Convert to OptionsNG
- Trim header
Reviewed by: beat, bapt, kwm
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 d6998ad73690..d536f8bdbac8 100644 --- a/audio/snack/Makefile +++ b/audio/snack/Makefile @@ -1,10 +1,5 @@ -# ex:ts=8 -# New ports collection makefile for: snack -# Date created: Nov 24, 2001 -# Whom: ijliao -# +# Created by: ijliao # $FreeBSD$ -# PORTNAME= snack PORTVERSION= 2.2.10 @@ -20,17 +15,18 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/unix USE_TK= 84+ -OPTIONS= VORBIS "Support for OGG/Vorbis Audio" off +OPTIONS_DEFINE= VORBIS DOCS GNU_CONFIGURE= yes -.if !defined(NOPORTDOCS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= * .endif PLIST_SUB= SNACK_VER=${PORTVERSION:R} -.include <bsd.port.pre.mk> CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \ --with-tk=${TK_LIBDIR} MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX} @@ -38,7 +34,7 @@ MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX} CFLAGS+= -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} \ -I${LOCALBASE}/include -.if defined(WITH_VORBIS) +.if ${PORT_OPTIONS:MVORBIS} LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis CONFIGURE_ARGS+= --with-ogg-include=${LOCALBASE}/include \ --with-ogg-lib=${LOCALBASE}/lib @@ -49,9 +45,9 @@ PLIST_SUB+= VORBIS="@comment " .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |