aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gnupod
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-01 14:57:16 +0800
committerbapt <bapt@FreeBSD.org>2012-06-01 14:57:16 +0800
commitb557076221bc64a31bd5b376790cb714f486c893 (patch)
treeba92db0751c943ce993ff1ab39dfac9c225c1981 /audio/gnupod
parent8033973ca84c7935f11bc3068cf3a5d5f6287da8 (diff)
downloadfreebsd-ports-gnome-b557076221bc64a31bd5b376790cb714f486c893.tar.gz
freebsd-ports-gnome-b557076221bc64a31bd5b376790cb714f486c893.tar.zst
freebsd-ports-gnome-b557076221bc64a31bd5b376790cb714f486c893.zip
Convert to new options framework
Diffstat (limited to 'audio/gnupod')
-rw-r--r--audio/gnupod/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/audio/gnupod/Makefile b/audio/gnupod/Makefile
index da08ba2f24fe..0ecfa5f857b6 100644
--- a/audio/gnupod/Makefile
+++ b/audio/gnupod/Makefile
@@ -37,21 +37,20 @@ NO_BUILD= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
CONFIGURE_ENV= ac_cv_path_PERL=${PERL}
-OPTIONS= FLAC "Enable FLAC support" off \
- VORBIS "Enable Ogg Vorbis support" off
+OPTIONS_DEFINE= FLAC VORBIS DOCS
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_FLAC) || exists(${SITE_PERL}/${PERL_ARCH}/Audio/FLAC/Header.pm)
+.if ${PORT_OPTIONS:MFLAC} || exists(${SITE_PERL}/${PERL_ARCH}/Audio/FLAC/Header.pm)
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Audio/FLAC/Header.pm:${PORTSDIR}/audio/p5-Audio-FLAC-Header
.endif
-.if defined(WITH_VORBIS) || exists(${SITE_PERL}/Ogg/Vorbis/Header/PurePerl.pm)
+.if ${PORT_OPTIONS:MVORBIS} || exists(${SITE_PERL}/Ogg/Vorbis/Header/PurePerl.pm)
BUILD_DEPENDS+= ${SITE_PERL}/Ogg/Vorbis/Header/PurePerl.pm:${PORTSDIR}/audio/p5-Ogg-Vorbis-Header-PurePerl
BUILD_DEPENDS+= oggdec:${PORTSDIR}/audio/vorbis-tools
.endif
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
@@ -65,4 +64,4 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/doc/ipod.svg ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>