pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/speex Add forgotten options.mk.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b68b0240d66f
branches:  trunk
changeset: 549785:b68b0240d66f
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Sat Nov 08 21:12:16 2008 +0000

description:
Add forgotten options.mk.

diffstat:

 audio/speex/options.mk |  32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diffs (36 lines):

diff -r 2b3115610595 -r b68b0240d66f audio/speex/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/speex/options.mk    Sat Nov 08 21:12:16 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index