aboutsummaryrefslogtreecommitdiff
path: root/audio/libsamplerate
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-05-30 11:42:38 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-05-30 11:42:38 +0000
commitc43626e81519694d9d6ebd92255cbdd08cc46d35 (patch)
tree9206a1ec7d9146943a3eb442fb6415272a539240 /audio/libsamplerate
parentcc3c3f6015883df8f37e5a5713045aa1b1912ab1 (diff)
downloadports-c43626e81519694d9d6ebd92255cbdd08cc46d35.tar.gz
ports-c43626e81519694d9d6ebd92255cbdd08cc46d35.zip
Notes
Diffstat (limited to 'audio/libsamplerate')
-rw-r--r--audio/libsamplerate/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/audio/libsamplerate/Makefile b/audio/libsamplerate/Makefile
index e1ca0c74c3a4..77b53086057c 100644
--- a/audio/libsamplerate/Makefile
+++ b/audio/libsamplerate/Makefile
@@ -21,16 +21,17 @@ USE_GNOME= gnomehack pkgconfig
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
-OPTIONS= CPU_CLIP "Allow machine-dependent clipping" off
+OPTIONS_DEFINE= CPU_CLIP DOCS EXAMPLES
+CPU_CLIP_DESC= Allow machine-dependent clipping
.include <bsd.port.options.mk>
MAKE_ARGS+= htmldocdir=${PREFIX}/share/doc/libsamplerate
-.if !defined(WITH_CPU_CLIP)
-CONFIGURE_ARGS+= --disable-cpu-clip
+.if ${PORT_OPTIONS:MCPU_CLIP}
+MANUAL_PACKAGE_BUILD= CPU_CLIP may customize the package for the build machine
.else
-MANUAL_PACKAGE_BUILD= WITH_CPU_CLIP may customize the package for the build machine
+CONFIGURE_ARGS+= --disable-cpu-clip
.endif
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
@@ -39,7 +40,7 @@ BUILD_DEPENDS += ${LOCALBASE}/lib/libfftw3.so:${PORTSDIR}/math/fftw3
CONFIGURE_ARGS+= --disable-fftw
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile
.elif defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS += ${LOCALBASE}/lib/libsndfile.so:${PORTSDIR}/audio/libsndfile
@@ -48,10 +49,10 @@ CONFIGURE_ARGS+= --disable-sndfile
.endif
post-patch:
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e '/SUBDIRS =/s/doc //' ${WRKSRC}/Makefile.in
.endif
-.if defined(NOPORTEXAMPLES)
+.if empty(PORT_OPTIONS:MEXAMPLES)
@${REINPLACE_CMD} -e '/SUBDIRS =/s/examples //' ${WRKSRC}/Makefile.in
.endif