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
16 CONFIGURE_ARGS
+= --disable-audiofile
19 .if
!empty
(PKG_OPTIONS
:Mbzip2
)
20 .
include "../../archivers/bzip2/buildlink3.mk"
21 CONFIGURE_ARGS
+= --enable-bzip2
23 CONFIGURE_ARGS
+= --disable-bzip2
26 .if
!empty
(PKG_OPTIONS
:Mcurl
)
27 .
include "../../www/curl/buildlink3.mk"
28 CONFIGURE_ARGS
+= --enable-curl
30 CONFIGURE_ARGS
+= --disable-curl
33 .if
!empty
(PKG_OPTIONS
:Mfaad
)
34 .
include "../../audio/faad2/buildlink3.mk"
35 CONFIGURE_ARGS
+= --with-faad
=${BUILDLINK_PREFIX.faad2
}
37 CONFIGURE_ARGS
+= --disable-aac
40 .if
!empty
(PKG_OPTIONS
:Mffmpeg
)
41 .
include "../../multimedia/ffmpeg/buildlink3.mk"
42 CONFIGURE_ARGS
+= --enable-ffmpeg
44 CONFIGURE_ARGS
+= --disable-ffmpeg
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
54 CONFIGURE_ARGS
+= --disable-flac
57 .if
!empty
(PKG_OPTIONS
:Mfluidsynth
)
58 .
include "../../audio/fluidsynth/buildlink3.mk"
59 CONFIGURE_ARGS
+= --enable-fluidsynth
61 CONFIGURE_ARGS
+= --disable-fluidsynth
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
69 #CONFIGURE_ARGS+= --disable-gme
72 .if
!empty
(PKG_OPTIONS
:Mid3
)
73 .
include "../../audio/libid3tag/buildlink3.mk"
74 CONFIGURE_ARGS
+= --enable-id3
76 CONFIGURE_ARGS
+= --disable-id3
79 .if
!empty
(PKG_OPTIONS
:Minet6
)
80 CONFIGURE_ARGS
+= --enable-ipv6
82 CONFIGURE_ARGS
+= --disable-ipv6
85 .if
!empty
(PKG_OPTIONS
:Mjack
)
86 .
include "../../audio/jack/buildlink3.mk"
87 CONFIGURE_ARGS
+= --enable-jack
89 CONFIGURE_ARGS
+= --disable-jack
92 .if
!empty
(PKG_OPTIONS
:Mlame
)
93 .
include "../../audio/lame/buildlink3.mk"
94 CONFIGURE_ARGS
+= --enable-lame-encoder
96 CONFIGURE_ARGS
+= --disable-lame-encoder
99 .if
!empty
(PKG_OPTIONS
:Mlibao
)
100 .
include "../../audio/libao/buildlink3.mk"
101 CONFIGURE_ARGS
+= --enable-ao
103 CONFIGURE_ARGS
+= --disable-ao
106 .if
!empty
(PKG_OPTIONS
:Mlibmms
)
107 .
include "../../net/libmms/buildlink3.mk"
108 CONFIGURE_ARGS
+= --enable-mms
110 CONFIGURE_ARGS
+= --disable-mms
113 .if
!empty
(PKG_OPTIONS
:Mlibwildmidi
)
114 .
include "../../audio/libwildmidi/buildlink3.mk"
115 CONFIGURE_ARGS
+= --enable-wildmidi
117 CONFIGURE_ARGS
+= --disable-wildmidi
120 .if
!empty
(PKG_OPTIONS
:Mmikmod
)
121 .
include "../../audio/libmikmod/buildlink3.mk"
122 CONFIGURE_ARGS
+= --enable-mikmod
124 CONFIGURE_ARGS
+= --disable-mikmod
127 .if
!empty
(PKG_OPTIONS
:Mmodplug
)
128 .
include "../../audio/libmodplug/buildlink3.mk"
129 CONFIGURE_ARGS
+= --enable-modplug
131 CONFIGURE_ARGS
+= --disable-modplug
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
139 CONFIGURE_ARGS
+= --disable-mpc
142 .if
!empty
(PKG_OPTIONS
:Mmusicpd-lastfm
)
143 CONFIGURE_ARGS
+= --enable-lastfm
145 CONFIGURE_ARGS
+= --disable-lastfm
148 .if
!empty
(PKG_OPTIONS
:Mogg
)
149 .
include "../../audio/libvorbis/buildlink3.mk"
150 CONFIGURE_ARGS
+= --enable-vorbis
152 CONFIGURE_ARGS
+= --disable-vorbis
155 .if
!empty
(PKG_OPTIONS
:Mshout
)
156 .
include "../../audio/libshout/buildlink3.mk"
157 .
include "../../audio/lame/buildlink3.mk"
158 CONFIGURE_ARGS
+= --enable-shout
160 CONFIGURE_ARGS
+= --disable-shout
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
168 #CONFIGURE_ARGS+= --disable-sidplay
171 .if
!empty
(PKG_OPTIONS
:Msqlite3
)
172 .
include "../../databases/sqlite3/buildlink3.mk"
173 CONFIGURE_ARGS
+= --enable-sqlite
175 CONFIGURE_ARGS
+= --disable-sqlite
178 .if
!empty
(PKG_OPTIONS
:Mwavpack
)
179 .
include "../../audio/wavpack/buildlink3.mk"
180 CONFIGURE_ARGS
+= --enable-wavpack
182 CONFIGURE_ARGS
+= --disable-wavpack
185 .if
!empty
(PKG_OPTIONS
:Mzziplib
)
186 .
include "../../archivers/zziplib/buildlink3.mk"
187 CONFIGURE_ARGS
+= --enable-zzip
189 CONFIGURE_ARGS
+= --disable-zzip