Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / musicpd / options.mk
blobea604e5ea41996cfeb950700e8beba300b134254
1 # $NetBSD: options.mk,v 1.18 2011/11/30 13:53:19 wiz Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.musicpd
4 PKG_SUPPORTED_OPTIONS= audiofile bzip2 curl faad ffmpeg flac fluidsynth id3 inet6 libao lame jack libmms libwildmidi mikmod modplug musepack musicpd-lastfm ogg shout sqlite3 wavpack zziplib
5 PKG_SUGGESTED_OPTIONS= audiofile curl faad flac id3 inet6 libao musepack ogg
7 PKG_OPTIONS_LEGACY_OPTS= libmikmod:mikmod
8 PKG_OPTIONS_LEGACY_OPTS= aac:faad
10 .include "../../mk/bsd.options.mk"
12 .if !empty(PKG_OPTIONS:Maudiofile)
13 . include "../../audio/libaudiofile/buildlink3.mk"
14 CONFIGURE_ARGS+= --enable-audiofile
15 .else
16 CONFIGURE_ARGS+= --disable-audiofile
17 .endif
19 .if !empty(PKG_OPTIONS:Mbzip2)
20 . include "../../archivers/bzip2/buildlink3.mk"
21 CONFIGURE_ARGS+= --enable-bzip2
22 .else
23 CONFIGURE_ARGS+= --disable-bzip2
24 .endif
26 .if !empty(PKG_OPTIONS:Mcurl)
27 . include "../../www/curl/buildlink3.mk"
28 CONFIGURE_ARGS+= --enable-curl
29 .else
30 CONFIGURE_ARGS+= --disable-curl
31 .endif
33 .if !empty(PKG_OPTIONS:Mfaad)
34 . include "../../audio/faad2/buildlink3.mk"
35 CONFIGURE_ARGS+= --with-faad=${BUILDLINK_PREFIX.faad2}
36 .else
37 CONFIGURE_ARGS+= --disable-aac
38 .endif
40 .if !empty(PKG_OPTIONS:Mffmpeg)
41 . include "../../multimedia/ffmpeg/buildlink3.mk"
42 CONFIGURE_ARGS+= --enable-ffmpeg
43 .else
44 CONFIGURE_ARGS+= --disable-ffmpeg
45 .endif
47 .if !empty(PKG_OPTIONS:Mflac)
48 . include "../../audio/flac/buildlink3.mk"
49 # XXX whole album flac files can appearently be parsed without libcue,
50 # so I've yet to find out what libcue is good for
51 #. include "../../audio/libcue/buildlink3.mk"
52 CONFIGURE_ARGS+= --enable-flac
53 .else
54 CONFIGURE_ARGS+= --disable-flac
55 .endif
57 .if !empty(PKG_OPTIONS:Mfluidsynth)
58 . include "../../audio/fluidsynth/buildlink3.mk"
59 CONFIGURE_ARGS+= --enable-fluidsynth
60 .else
61 CONFIGURE_ARGS+= --disable-fluidsynth
62 .endif
64 # needs to be imported from wip first
65 #.if !empty(PKG_OPTIONS:Mgme)
66 #. include "../../wip/libgme/buildlink3.mk"
67 #CONFIGURE_ARGS+= --enable-gme
68 #.else
69 #CONFIGURE_ARGS+= --disable-gme
70 #.endif
72 .if !empty(PKG_OPTIONS:Mid3)
73 . include "../../audio/libid3tag/buildlink3.mk"
74 CONFIGURE_ARGS+= --enable-id3
75 .else
76 CONFIGURE_ARGS+= --disable-id3
77 .endif
79 .if !empty(PKG_OPTIONS:Minet6)
80 CONFIGURE_ARGS+= --enable-ipv6
81 .else
82 CONFIGURE_ARGS+= --disable-ipv6
83 .endif
85 .if !empty(PKG_OPTIONS:Mjack)
86 . include "../../audio/jack/buildlink3.mk"
87 CONFIGURE_ARGS+= --enable-jack
88 .else
89 CONFIGURE_ARGS+= --disable-jack
90 .endif
92 .if !empty(PKG_OPTIONS:Mlame)
93 . include "../../audio/lame/buildlink3.mk"
94 CONFIGURE_ARGS+= --enable-lame-encoder
95 .else
96 CONFIGURE_ARGS+= --disable-lame-encoder
97 .endif
99 .if !empty(PKG_OPTIONS:Mlibao)
100 . include "../../audio/libao/buildlink3.mk"
101 CONFIGURE_ARGS+= --enable-ao
102 .else
103 CONFIGURE_ARGS+= --disable-ao
104 .endif
106 .if !empty(PKG_OPTIONS:Mlibmms)
107 . include "../../net/libmms/buildlink3.mk"
108 CONFIGURE_ARGS+= --enable-mms
109 .else
110 CONFIGURE_ARGS+= --disable-mms
111 .endif
113 .if !empty(PKG_OPTIONS:Mlibwildmidi)
114 . include "../../audio/libwildmidi/buildlink3.mk"
115 CONFIGURE_ARGS+= --enable-wildmidi
116 .else
117 CONFIGURE_ARGS+= --disable-wildmidi
118 .endif
120 .if !empty(PKG_OPTIONS:Mmikmod)
121 . include "../../audio/libmikmod/buildlink3.mk"
122 CONFIGURE_ARGS+= --enable-mikmod
123 .else
124 CONFIGURE_ARGS+= --disable-mikmod
125 .endif
127 .if !empty(PKG_OPTIONS:Mmodplug)
128 . include "../../audio/libmodplug/buildlink3.mk"
129 CONFIGURE_ARGS+= --enable-modplug
130 .else
131 CONFIGURE_ARGS+= --disable-modplug
132 .endif
134 .if !empty(PKG_OPTIONS:Mmusepack)
135 . include "../../audio/libmpcdec/buildlink3.mk"
136 CONFIGURE_ENV+= mpcdec_prefix=${BUILDLINK_PREFIX.libmpcdec}
137 CONFIGURE_ARGS+= --enable-mpc
138 .else
139 CONFIGURE_ARGS+= --disable-mpc
140 .endif
142 .if !empty(PKG_OPTIONS:Mmusicpd-lastfm)
143 CONFIGURE_ARGS+= --enable-lastfm
144 .else
145 CONFIGURE_ARGS+= --disable-lastfm
146 .endif
148 .if !empty(PKG_OPTIONS:Mogg)
149 . include "../../audio/libvorbis/buildlink3.mk"
150 CONFIGURE_ARGS+= --enable-vorbis
151 .else
152 CONFIGURE_ARGS+= --disable-vorbis
153 .endif
155 .if !empty(PKG_OPTIONS:Mshout)
156 . include "../../audio/libshout/buildlink3.mk"
157 . include "../../audio/lame/buildlink3.mk"
158 CONFIGURE_ARGS+= --enable-shout
159 .else
160 CONFIGURE_ARGS+= --disable-shout
161 .endif
163 # needs libresid-builder or libsidutils, both not packaged yet
164 #.if !empty(PKG_OPTIONS:Msidplay)
165 #. include "../../audio/libsidplay2/buildlink3.mk"
166 #CONFIGURE_ARGS+= --enable-sidplay
167 #.else
168 #CONFIGURE_ARGS+= --disable-sidplay
169 #.endif
171 .if !empty(PKG_OPTIONS:Msqlite3)
172 . include "../../databases/sqlite3/buildlink3.mk"
173 CONFIGURE_ARGS+= --enable-sqlite
174 .else
175 CONFIGURE_ARGS+= --disable-sqlite
176 .endif
178 .if !empty(PKG_OPTIONS:Mwavpack)
179 . include "../../audio/wavpack/buildlink3.mk"
180 CONFIGURE_ARGS+= --enable-wavpack
181 .else
182 CONFIGURE_ARGS+= --disable-wavpack
183 .endif
185 .if !empty(PKG_OPTIONS:Mzziplib)
186 . include "../../archivers/zziplib/buildlink3.mk"
187 CONFIGURE_ARGS+= --enable-zzip
188 .else
189 CONFIGURE_ARGS+= --disable-zzip
190 .endif