aboutsummaryrefslogtreecommitdiff
path: root/audio/sphinxbase
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-08-19 13:29:59 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-08-19 13:29:59 +0000
commitbb271f0bf7b513a23a31da4ec8819b113ebf4587 (patch)
treeac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /audio/sphinxbase
parent29879aded766da253313579a3503ff5e15026355 (diff)
downloadports-bb271f0bf7b513a23a31da4ec8819b113ebf4587.tar.gz
ports-bb271f0bf7b513a23a31da4ec8819b113ebf4587.zip
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
Notes
Notes: svn path=/head/; revision=394778
Diffstat (limited to 'audio/sphinxbase')
-rw-r--r--audio/sphinxbase/Makefile21
1 files changed, 6 insertions, 15 deletions
diff --git a/audio/sphinxbase/Makefile b/audio/sphinxbase/Makefile
index 2b240996d993..3f83b74391bf 100644
--- a/audio/sphinxbase/Makefile
+++ b/audio/sphinxbase/Makefile
@@ -28,21 +28,12 @@ OPTIONS_DEFAULT= THREADS
SNDFILE_DESC= libsndfile support
THREADS_DESC= Build with thread safety support
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSNDFILE}
-USES+= pkgconfig
-LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile
-.else
-CONFIGURE_ENV+= HAVE_PKGCONFIG=no
-.endif
-
-.if ${PORT_OPTIONS:MTHREADS}
-LDFLAGS+= -lpthread
-CONFIGURE_ARGS+= --enable-threads
-.else
-CONFIGURE_ARGS+= --disable-threads
-.endif
+SNDFILE_USES= pkgconfig
+SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
+SNDFILE_CONFIGURE_ENV_OFF= HAVE_PKGCONFIG=no
+
+THREADS_LDFLAGS= -lpthread
+THREADS_CONFIGURE_ENABLE= threads
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsphinx*.so