summaryrefslogtreecommitdiff
path: root/audio/moc/options.mk
blob: 99117d5ddd425b95ccd1234c02fb2e004bd79fad (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# $NetBSD: options.mk,v 1.7 2019/06/11 11:54:56 nia Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.moc

PKG_SUPPORTED_OPTIONS+=		curl faad flac mad sndfile vorbis
PKG_SUPPORTED_OPTIONS+=		alsa ffmpeg jack modplug samplerate
PKG_SUPPORTED_OPTIONS+=		sidplay speex wavpack wide-curses

PKG_SUGGESTED_OPTIONS+=		curl faad flac mad sndfile vorbis wide-curses
PKG_SUGGESTED_OPTIONS.Linux+=	alsa

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

PLIST_VARS+=	faad ffmpeg flac mad modplug sidplay sndfile
PLIST_VARS+=	speex vorbis wavpack

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

.if !empty(PKG_OPTIONS:Mcurl)
.  include "../../www/curl/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-curl
.endif

.if !empty(PKG_OPTIONS:Mfaad)
PLIST.faad=		yes
.  include "../../audio/faad2/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-aac
.endif

.if !empty(PKG_OPTIONS:Mffmpeg)
PLIST.ffmpeg=		yes
.  include "../../multimedia/ffmpeg3/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-ffmpeg
.endif

.if !empty(PKG_OPTIONS:Mflac)
PLIST.flac=		yes
.  include "../../audio/flac/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-flac
.endif

.if !empty(PKG_OPTIONS:Mjack)
###
### Resampling support is usually required with jack.
###
.  include "../../audio/jack/buildlink3.mk"
.  include "../../audio/libsamplerate/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-jack
.endif

.if !empty(PKG_OPTIONS:Mmad)
PLIST.mad=		yes
.  include "../../audio/libmad/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-mp3
.endif

.if !empty(PKG_OPTIONS:Mmodplug)
PLIST.modplug=		yes
.  include "../../audio/libmodplug/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-modplug
.endif

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

.if !empty(PKG_OPTIONS:Msidplay)
PLIST.sidplay=		yes
.  include "../../audio/libsidplay2/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-sidplay2
.endif

.if !empty(PKG_OPTIONS:Msndfile)
PLIST.sndfile=		yes
.  include "../../audio/libsndfile/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-sndfile
.endif

.if !empty(PKG_OPTIONS:Mspeex)
PLIST.speex=		yes
.  include "../../audio/speex/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-speex
.endif

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

.if !empty(PKG_OPTIONS:Mwavpack)
PLIST.wavpack=		yes
.  include "../../audio/wavpack/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-wavpack
.endif

.if !empty(PKG_OPTIONS:Mwide-curses)
# handled by curses.buildlink3.mk
# XXX i'm not sure why this is needed
FAKE_NCURSES=		yes
.endif