summaryrefslogtreecommitdiff
path: root/audio/speex
diff options
context:
space:
mode:
authorbjs <bjs>2008-11-08 21:12:16 +0000
committerbjs <bjs>2008-11-08 21:12:16 +0000
commit493c14e8a65a451e1efd91499d939c95c8877235 (patch)
treee952834651892465829810eeee0e6919f2dda90e /audio/speex
parent4a920a5f29f8708aff181ca03347b93c5f6c9099 (diff)
downloadpkgsrc-493c14e8a65a451e1efd91499d939c95c8877235.tar.gz
Add forgotten options.mk.
Diffstat (limited to 'audio/speex')
-rw-r--r--audio/speex/options.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/audio/speex/options.mk b/audio/speex/options.mk
new file mode 100644
index 00000000000..a7347843e14
--- /dev/null
+++ b/audio/speex/options.mk
@@ -0,0 +1,32 @@
+# $NetBSD: options.mk,v 1.1 2008/11/08 21:12:16 bjs Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.speex
+PKG_SUPPORTED_OPTIONS= fftw
+PKG_OPTIONS_GROUP.i386= simd
+###
+### XXX TODO: add logic for enabling arm, fixed point, and alternate fft
+### implementations, etc.
+###
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if defined(PKG_OPTIONS_GROUP.${MACHINE_GNU_ARCH})
+PKG_OPTIONS_OPTIONAL_GROUPS+= ${MACHINE_GNU_ARCH}
+.endif
+
+.include "../../mk/bsd.options.mk"
+###
+### XXX The configure script seems to detect sse based upon user-supplied
+### CFLAGS. If this is indeed OK, then we should not explicitly
+### disable it, as people might be using devel/cpuflags, etc.
+###
+.if !empty(PKG_OPTIONS:Msimd)
+CONFIGURE_ARGS+= --enable-sse
+#.else
+#CONFIGURE_ARGS+= --disable-sse
+.endif
+
+.if !empty(PKG_OPTIONS:Mfftw)
+CONFIGURE_ARGS+= --with-fft=fftw3
+. include "../../math/fftw/buildlink3.mk"
+.endif