summaryrefslogtreecommitdiff
path: root/audio/speex/options.mk
blob: 43bc3f9b557a2187bee923d2203b7cb38077d2b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $NetBSD: options.mk,v 1.3 2011/07/07 12:26:45 obache 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_ARCH})
PKG_OPTIONS_OPTIONAL_GROUPS+=	${MACHINE_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=gpl-fftw3
.  include "../../math/fftwf/buildlink3.mk"
.endif