summaryrefslogtreecommitdiff
path: root/audio/darkice/options.mk
blob: 3ca0b2e4aac896b4faf8e2f2bc87f5fb52bfd4c8 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $NetBSD: options.mk,v 1.1 2021/04/17 09:10:38 nia Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.darkice

# Audio codec options
PKG_SUPPORTED_OPTIONS+=		faac lame opus twolame vorbis
# Audio input options
PKG_SUPPORTED_OPTIONS+=		alsa jack pulseaudio
# Misc options
PKG_SUPPORTED_OPTIONS+=		samplerate

PKG_SUGGESTED_OPTIONS+=		faac lame opus twolame vorbis
PKG_SUGGESTED_OPTIONS+=		samplerate
PKG_SUGGESTED_OPTIONS.Linux=	alsa

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

.if !empty(PKG_OPTIONS:Malsa)
CONFIGURE_ARGS+=	--with-alsa
.include "../../audio/alsa-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-alsa
.endif

.if !empty(PKG_OPTIONS:Mfaac)
CONFIGURE_ARGS+=	--with-faac-prefix=${BUILDLINK_PREFIX.faac}
.include "../../audio/faac/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-faac
.endif

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

.if !empty(PKG_OPTIONS:Mlame)
CONFIGURE_ARGS+=	--with-lame-prefix=${BUILDLINK_PREFIX.lame}
.include "../../audio/lame/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-lame
.endif

.if !empty(PKG_OPTIONS:Mopus)
CONFIGURE_ARGS+=	--with-opus
.include "../../audio/libopus/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-opus
.endif

.if !empty(PKG_OPTIONS:Mpulseaudio)
CONFIGURE_ARGS+=	--with-pulseaudio
.include "../../audio/pulseaudio/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-pulseaudio
.endif

.if !empty(PKG_OPTIONS:Msamplerate)
CONFIGURE_ARGS+=	--with-samplerate
.include "../../audio/libsamplerate/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-samplerate
.endif

.if !empty(PKG_OPTIONS:Mtwolame)
CONFIGURE_ARGS+=	--with-twolame
.include "../../audio/twolame/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-twolame
.endif

.if !empty(PKG_OPTIONS:Mvorbis)
CONFIGURE_ARGS+=	--with-vorbis
.include "../../audio/libvorbis/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-vorbis
.endif