summaryrefslogtreecommitdiff
path: root/audio/audacity/options.mk
blob: 183da39452d3956ae8de3e92ee94b4d733295762 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
# $NetBSD: options.mk,v 1.4 2019/06/04 23:09:51 nia Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.audacity
PKG_SUPPORTED_OPTIONS=		debug jack ladspa mad nls
PKG_SUGGESTED_OPTIONS+=		ladspa nls
PLIST_VARS+=			nls

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+=		--enable-debug=yes
.else
CONFIGURE_ARGS+=		--enable-debug=no
.endif

# for internal portaudio...
.if !empty(PKG_OPTIONS:Mjack)
CONFIGURE_ARGS+=		--with-jack
.include "../../audio/jack/buildlink3.mk"
.else
CONFIGURE_ARGS+=		--without-jack
.endif

# libmad is disabled by default because it's been unmaintained
# since 2004 and is a pile of CVEs.
.if !empty(PKG_OPTIONS:Mmad)
CONFIGURE_ARGS+=		--with-libmad
.include "../../audio/libmad/buildlink3.mk"
.else
CONFIGURE_ARGS+=		--with-libmad=no
.endif

.if !empty(PKG_OPTIONS:Mladspa)
.include "../../audio/ladspa/buildlink3.mk"
CONFIGURE_ARGS+=		--enable-ladspa=yes
.else
CONFIGURE_ARGS+=		--enable-ladspa=no
.endif

.if !empty(PKG_OPTIONS:Mnls)
.include "../../devel/gettext-lib/buildlink3.mk"
PLIST.nls=			yes
.else
CONFIGURE_ARGS+=		--disable-nls
.endif