Lines 6-26
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME?= xmms2 |
8 |
PORTNAME?= xmms2 |
9 |
DISTVERSION= 0.5.d.0 |
9 |
PORTVERSION= 0.6 |
10 |
DISTVERSION= 0.5DrLecter |
10 |
DISTVERSIONSUFFIX=DrMattDestruction |
11 |
CATEGORIES?= audio |
11 |
CATEGORIES?= audio |
12 |
MASTER_SITES= SF |
12 |
MASTER_SITES= SF |
13 |
DISTNAME= ${PORTNAME}-${DISTVERSION} |
|
|
14 |
PORTREVISION?= 2 |
15 |
|
13 |
|
16 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
17 |
COMMENT?= Rewrite of xmms as a client/server system (developer release) |
15 |
COMMENT?= Rewrite of xmms as a client/server system (developer release) |
18 |
|
16 |
|
19 |
.if !defined(XMMS2_SLAVE) |
|
|
20 |
LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad \ |
21 |
vorbis.4:${PORTSDIR}/audio/libvorbis |
22 |
.endif |
23 |
|
24 |
USE_BZIP2= yes |
17 |
USE_BZIP2= yes |
25 |
USE_PYTHON_BUILD= yes |
18 |
USE_PYTHON_BUILD= yes |
26 |
|
19 |
|
Lines 29-135
USE_GNOME= glib20
Link Here
|
29 |
USE_SQLITE= 3 |
22 |
USE_SQLITE= 3 |
30 |
|
23 |
|
31 |
USE_LDCONFIG= yes |
24 |
USE_LDCONFIG= yes |
32 |
.endif |
|
|
33 |
|
25 |
|
34 |
.if !defined(XMMS2_SLAVE) |
26 |
MAN1= nyxmms2.1 xmms2.1 xmms2-et.1 xmms2d.1 xmms2-launcher.1 |
35 |
MAN1= xmms2.1 xmms2-et.1 xmms2d.1 xmms2-launcher.1 |
|
|
36 |
MANCOMPRESSED= yes |
27 |
MANCOMPRESSED= yes |
|
|
28 |
PLIST_SUB+= INCLUDEDIR="include/${PORTNAME}" LIBDIR="lib/${PORTNAME}" |
37 |
|
29 |
|
38 |
OPTIONS= FAAD "Support to playback AAC files" on \ |
30 |
OPTIONS= AIRPLAY "Support output via Airport Express" off \ |
39 |
FLAC "Support to playback FLAC files" on \ |
31 |
AO "Support to output via libao" off \ |
40 |
SPEEX "Support to playback SPEEX files" off \ |
32 |
APE "Support to playback Monkey's Audio files" off \ |
41 |
CDDA "Support to playback AudioCD" off \ |
33 |
AVCODEC "Support to playback files with avcodec" off \ |
42 |
MODPLUG "Support to playback MOD files" off \ |
34 |
CDDA "Support to playback AudioCD" off \ |
43 |
MUSEPACK "Support to playback MPC files" off \ |
35 |
CURL "Support to playback files via HTTP" on \ |
44 |
SID "Support to playback SID files" off \ |
36 |
FAAD "Support to playback AAC files" on \ |
45 |
AVCODEC "Support to playback files with avcodec" off \ |
37 |
FAM "Support to update Media Library on file change" off \ |
46 |
APE "Support to playback Monkey's Audio files" off \ |
38 |
FLAC "Support to playback FLAC files" on \ |
47 |
CURL "Support to playback files via HTTP" on \ |
39 |
GVFS "Support to playback files via GVFS" off \ |
48 |
LASTFM "Support to playback audio via Last.fm radio" on \ |
40 |
ICES "Support to playback files to an icecast server" off \ |
49 |
GVFS "Support to playback files via GVFS" off \ |
41 |
JACK "Support to output via the Jack output server" off \ |
50 |
MMS "Support to playback streams via MMS" off \ |
42 |
MAD "Support to playback MP3 files" on \ |
51 |
SAMBA "Support to playback files via SMB" off \ |
|
|
52 |
DAAP "Support to playback files via DAAP" on \ |
53 |
GME "Support to playback files via GME (SPC/NSF/GBS)" on \ |
54 |
OFA "Support to collect MusicDNS fingerprints" off \ |
55 |
XML "Support for XML based playlists (XSPF, RSS)" off \ |
56 |
FAM "Support to update Media Library on file change" off \ |
57 |
MDNS_AVAHI "Support to announce XMMS2d via mDNS (Avahi)" off \ |
58 |
MDNS_APPLE "Support to announce XMMS2d via mDNS (Apple)" on \ |
43 |
MDNS_APPLE "Support to announce XMMS2d via mDNS (Apple)" on \ |
59 |
ICES "Support to playback files to an icecast server" off \ |
44 |
MDNS_AVAHI "Support to announce XMMS2d via mDNS (Avahi)" off \ |
60 |
JACK "Support to output via the Jack output server" off \ |
45 |
MMS "Support to playback streams via MMS" off \ |
61 |
PULSE "Support to output via the PulseAudio" off \ |
46 |
MODPLUG "Support to playback MOD files" off \ |
62 |
AO "Support to output via libao" off \ |
47 |
MPG123 "Support to playback MP3 files" off \ |
63 |
KARAOKE "Karaoke plugin for voice removal from tracks" on \ |
48 |
MUSEPACK "Support to playback MPC files" off \ |
64 |
VOCODER "Phase Vocoder effect plugin" off #\ |
49 |
OFA "Support to collect MusicDNS fingerprints" off \ |
65 |
# SDL "Support for visualization" on |
50 |
PULSE "Support to output via the PulseAudio" off \ |
66 |
.endif |
51 |
SAMBA "Support to playback files via SMB" off \ |
|
|
52 |
SID "Support to playback SID files" off \ |
53 |
SPEEX "Support to playback SPEEX files" off \ |
54 |
VISUAL "Support for visualization plugins" off \ |
55 |
VOCODER "Phase Vocoder effect plugin" off \ |
56 |
VORBIS "Support to playback OGG files" on \ |
57 |
WAVPACK "Support to playback WV files" off \ |
58 |
XML "Support for XML based playlists (XSPF, RSS)" off |
59 |
.endif # !XMMS_SLAVE |
67 |
|
60 |
|
68 |
.include <bsd.port.pre.mk> |
61 |
.include <bsd.port.pre.mk> |
69 |
|
62 |
|
70 |
.if defined(XMMS2_SLAVE) |
63 |
.if defined(XMMS2_SLAVE) |
71 |
EXCLUDE+= --without-xmms2d=1 |
64 |
EXCLUDE+= --without-xmms2d |
72 |
.endif |
|
|
73 |
|
65 |
|
74 |
.if defined(XMMS2_SLAVE) && ${XMMS2_SLAVE} == "python" |
66 |
.if ${XMMS2_SLAVE} == "python" |
75 |
EXCLUDE+= --with-optionals="python" |
67 |
EXCLUDE+= --with-optionals="python" |
76 |
.elif defined(XMMS2_SLAVE) && ${XMMS2_SLAVE} == "ruby" |
68 |
.elif ${XMMS2_SLAVE} == "ruby" |
77 |
EXCLUDE+= --with-optionals="ruby" |
69 |
EXCLUDE+= --with-optionals="ruby" |
78 |
.elif defined(XMMS2_SLAVE) && ${XMMS2_SLAVE} == "perl" |
70 |
.elif ${XMMS2_SLAVE} == "perl" |
79 |
EXCLUDE+= --with-optionals="perl" |
71 |
EXCLUDE+= --with-optionals="perl" |
80 |
.elif defined(XMMS2_SLAVE) && ${XMMS2_SLAVE} == "ruby-ecore" |
72 |
.elif ${XMMS2_SLAVE} == "ruby-ecore" |
81 |
EXCLUDE+= --with-optionals="ruby" --with-optionals="xmmsclient-ecore" |
73 |
EXCLUDE+= --with-optionals="ruby" --with-optionals="xmmsclient-ecore" |
82 |
.elif defined(XMMS2_SLAVE) && ${XMMS2_SLAVE} == "cpp" |
74 |
.elif ${XMMS2_SLAVE} == "cpp" |
83 |
EXCLUDE+= --with-optionals="xmmsclient++" --with-optionals="xmmsclient++-glib" |
75 |
EXCLUDE+= --with-optionals="xmmsclient++" \ |
84 |
.elif !defined(XMMS2_SLAVE) |
76 |
--with-optionals="xmmsclient++-glib" |
85 |
EXCLUDE+= --without-optionals="python" --without-optionals="ruby" --without-optionals="xmmsclient-ecore" --without-optionals="xmmsclient++" --without-optionals="xmmsclient++-glib" --without-optionals="perl" |
|
|
86 |
.endif |
77 |
.endif |
87 |
|
78 |
|
88 |
.if !defined(XMMS2_SLAVE) |
79 |
.else # XMMS2_SLAVE |
|
|
80 |
EXCLUDE+= --without-optionals="python" \ |
81 |
--without-optionals="ruby" \ |
82 |
--without-optionals="xmmsclient-ecore" \ |
83 |
--without-optionals="xmmsclient++" \ |
84 |
--without-optionals="xmmsclient++-glib" \ |
85 |
--without-optionals="perl" |
86 |
.endif # XMMS2_SLAVE |
89 |
|
87 |
|
90 |
.if !defined(WITHOUT_CURL) |
88 |
.if !defined(XMMS2_SLAVE) |
91 |
LIB_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl |
|
|
92 |
PLIST_SUB+= CURL="" |
93 |
.else |
94 |
EXCLUDE+= --without-plugins="curl" --without-plugins="icymetaint" |
95 |
PLIST_SUB+= CURL="@comment " |
96 |
.endif |
97 |
|
89 |
|
98 |
.if !defined(WITHOUT_LASTFM) |
90 |
.if !defined(WITHOUT_AIRPLAY) |
99 |
.if defined(WITHOUT_CURL) |
91 |
USE_OPENSSL= yes |
100 |
LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl |
92 |
PLIST_SUB+= AIRPLAY="" |
101 |
.endif |
|
|
102 |
PLIST_SUB+= LASTFM="" |
103 |
.else |
93 |
.else |
104 |
EXCLUDE+= --without-plugins="lastfm" --without-plugins="lastfmeta" |
94 |
EXCLUDE+= --without-plugins="airplay" |
105 |
PLIST_SUB+= LASTFM="@comment " |
95 |
PLIST_SUB+= AIRPLAY="@comment " |
106 |
.endif |
96 |
.endif |
107 |
|
97 |
|
108 |
.if defined(WITH_SID) |
98 |
.if !defined(WITHOUT_AO) |
109 |
LIB_DEPENDS+= sidplay2.[0-9]:${PORTSDIR}/audio/libsidplay2 |
99 |
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao |
110 |
PLIST_SUB+= SID="" |
100 |
PLIST_SUB+= AO="" |
111 |
.else |
101 |
.else |
112 |
EXCLUDE+= --without-plugins="sid" |
102 |
EXCLUDE+= --without-plugins="ao" |
113 |
PLIST_SUB+= SID="@comment " |
103 |
PLIST_SUB+= AO="@comment " |
114 |
.endif |
104 |
.endif |
115 |
|
105 |
|
116 |
.if !defined(WITHOUT_FLAC) |
106 |
.if !defined(WITHOUT_APE) |
117 |
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac |
107 |
LIB_DEPENDS+= mac.2:${PORTSDIR}/audio/mac |
118 |
PLIST_SUB+= FLAC="" |
108 |
PLIST_SUB+= MAC="" |
119 |
.else |
109 |
.else |
120 |
EXCLUDE+= --without-plugins="flac" |
110 |
EXCLUDE+= --without-plugins="mac" |
121 |
PLIST_SUB+= FLAC="@comment " |
111 |
PLIST_SUB+= MAC="@comment " |
122 |
.endif |
112 |
.endif |
123 |
|
113 |
|
124 |
.if defined(WITH_SPEEX) |
114 |
.if !defined(WITHOUT_AVCODEC) |
125 |
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex |
115 |
LIB_DEPENDS+= avutil.1:${PORTSDIR}/multimedia/ffmpeg |
126 |
PLIST_SUB+= SPEEX="" |
116 |
PLIST_SUB+= AVCODEC="" |
127 |
.else |
117 |
.else |
128 |
EXCLUDE+= --without-plugins="speex" |
118 |
EXCLUDE+= --without-plugins="avcodec" |
129 |
PLIST_SUB+= SPEEX="@comment " |
119 |
PLIST_SUB+= AVCODEC="@comment " |
130 |
.endif |
120 |
.endif |
131 |
|
121 |
|
132 |
.if defined(WITH_CDDA) |
122 |
.if !defined(WITHOUT_CDDA) |
133 |
LIB_DEPENDS+= cdio.8:${PORTSDIR}/sysutils/libcdio \ |
123 |
LIB_DEPENDS+= cdio.8:${PORTSDIR}/sysutils/libcdio \ |
134 |
discid.2:${PORTSDIR}/audio/libdiscid |
124 |
discid.2:${PORTSDIR}/audio/libdiscid |
135 |
PLIST_SUB+= CDDA="" |
125 |
PLIST_SUB+= CDDA="" |
Lines 138-143
EXCLUDE+= --without-plugins="cdda"
Link Here
|
138 |
PLIST_SUB+= CDDA="@comment " |
128 |
PLIST_SUB+= CDDA="@comment " |
139 |
.endif |
129 |
.endif |
140 |
|
130 |
|
|
|
131 |
.if !defined(WITHOUT_CURL) |
132 |
LIB_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl |
133 |
PLIST_SUB+= CURL="" |
134 |
.else |
135 |
EXCLUDE+= --without-plugins="curl" --without-plugins="icymetaint" |
136 |
PLIST_SUB+= CURL="@comment " |
137 |
.endif |
138 |
|
141 |
.if !defined(WITHOUT_FAAD) |
139 |
.if !defined(WITHOUT_FAAD) |
142 |
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad |
140 |
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad |
143 |
PLIST_SUB+= FAAD="" |
141 |
PLIST_SUB+= FAAD="" |
Lines 146-185
EXCLUDE+= --without-plugins="faad" --wit
Link Here
|
146 |
PLIST_SUB+= FAAD="@comment " |
144 |
PLIST_SUB+= FAAD="@comment " |
147 |
.endif |
145 |
.endif |
148 |
|
146 |
|
149 |
.if defined(WITH_AVCODEC) |
147 |
.if !defined(WITHOUT_FAM) |
150 |
LIB_DEPENDS+= avutil.1:${PORTSDIR}/multimedia/ffmpeg |
148 |
USE_FAM= yes |
151 |
PLIST_SUB+= AVCODEC="" |
149 |
WANT_FAM_SYSTEM=gamin |
|
|
150 |
PLIST_SUB+= FAM="" |
152 |
.else |
151 |
.else |
153 |
EXCLUDE+= --without-plugins="avcodec" |
152 |
EXCLUDE+= --without-optionals="medialib-updater" |
154 |
PLIST_SUB+= AVCODEC="@comment " |
153 |
PLIST_SUB+= FAM="@comment " |
155 |
.endif |
154 |
.endif |
156 |
|
155 |
|
157 |
.if defined(WITH_APE) |
156 |
.if !defined(WITHOUT_FLAC) |
158 |
LIB_DEPENDS+= mac.2:${PORTSDIR}/audio/mac |
157 |
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac |
159 |
PLIST_SUB+= MAC="" |
158 |
PLIST_SUB+= FLAC="" |
160 |
.else |
159 |
.else |
161 |
EXCLUDE+= --without-plugins="mac" |
160 |
EXCLUDE+= --without-plugins="flac" |
162 |
PLIST_SUB+= MAC="@comment " |
161 |
PLIST_SUB+= FLAC="@comment " |
163 |
.endif |
162 |
.endif |
164 |
|
163 |
|
165 |
.if !defined(WITHOUT_SDL) && defined(UNDEFINED) |
164 |
.if !defined(WITHOUT_GVFS) |
166 |
IGNORE= visualization has not been updated to the Transforms API |
165 |
USE_GNOME+= gvfs |
167 |
USE_SDL= sdl ttf |
166 |
PLIST_SUB+= GVFS="" |
168 |
PLIST_SUB+= SDL="" |
|
|
169 |
#EXTRA_PATCHES+= ${FILESDIR}/extraPatch-src::clients::sdl-vis::Program |
170 |
.else |
167 |
.else |
171 |
PLIST_SUB+= SDL="@comment " |
168 |
EXCLUDE+= --without-plugins="gvfs" |
|
|
169 |
PLIST_SUB+= GVFS="@comment " |
172 |
.endif |
170 |
.endif |
173 |
|
171 |
|
174 |
.if defined(WITH_MUSEPACK) |
172 |
.if !defined(WITHOUT_ICES) |
175 |
LIB_DEPENDS+= mpcdec.5:${PORTSDIR}/audio/libmpcdec |
173 |
LIB_DEPENDS+= shout.5:${PORTSDIR}/audio/libshout2 |
176 |
PLIST_SUB+= MUSEPACK="" |
174 |
PLIST_SUB+= ICES="" |
177 |
.else |
175 |
.else |
178 |
EXCLUDE+= --without-plugins="musepack" |
176 |
EXCLUDE+= --without-plugins="ices" |
179 |
PLIST_SUB+= MUSEPACK="@comment " |
177 |
PLIST_SUB+= ICES="@comment " |
180 |
.endif |
178 |
.endif |
181 |
|
179 |
|
182 |
.if defined(WITH_JACK) |
180 |
.if !defined(WITHOUT_JACK) |
183 |
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack |
181 |
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack |
184 |
PLIST_SUB+= JACK="" |
182 |
PLIST_SUB+= JACK="" |
185 |
.else |
183 |
.else |
Lines 187-328
EXCLUDE+= --without-plugins="jack"
Link Here
|
187 |
PLIST_SUB+= JACK="@comment " |
185 |
PLIST_SUB+= JACK="@comment " |
188 |
.endif |
186 |
.endif |
189 |
|
187 |
|
190 |
.if defined(WITH_PULSE) |
188 |
.if !defined(WITHOUT_MAD) |
191 |
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio |
189 |
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad |
192 |
PLIST_SUB+= PULSE="" |
190 |
PLIST_SUB+= MAD="" |
193 |
.else |
191 |
.else |
194 |
EXCLUDE+= --without-plugins="pulse" |
192 |
EXCLUDE+= --without-plugins="mad" |
195 |
PLIST_SUB+= PULSE="@comment " |
193 |
PLIST_SUB+= MAD="@comment " |
196 |
.endif |
|
|
197 |
|
198 |
.if defined(WITH_MODPLUG) |
199 |
LIB_DEPENDS+= modplug.0:${PORTSDIR}/audio/libmodplug |
200 |
PLIST_SUB+= MODPLUG="" |
201 |
.else |
202 |
EXCLUDE+= --without-plugins="modplug" |
203 |
PLIST_SUB+= MODPLUG="@comment " |
204 |
.endif |
194 |
.endif |
205 |
|
195 |
|
206 |
.if defined(WITH_OFA) |
196 |
.if !defined(WITHOUT_MDNS_APPLE) && !defined(WITHOUT_MDNS_AVAHI) |
207 |
LIB_DEPENDS+= ofa.0:${PORTSDIR}/audio/libofa |
197 |
BROKEN= You may choose either MDNS_APPLE or MDNS_AVAHI, but not both |
208 |
PLIST_SUB+= OFA="" |
|
|
209 |
.else |
210 |
EXCLUDE+= --without-plugins="ofa" |
211 |
PLIST_SUB+= OFA="@comment " |
212 |
.endif |
198 |
.endif |
213 |
|
199 |
|
214 |
.if defined(WITH_XML) |
200 |
.if !defined(WITHOUT_MDNS_APPLE) |
215 |
USE_GNOME= libxml2 |
201 |
EXCLUDE+= --without-optionals="avahi" |
216 |
PLIST_SUB+= XML="" |
202 |
LIB_DEPENDS+= dns_sd:${PORTSDIR}/net/mDNSResponder |
|
|
203 |
PLIST_SUB+= MDNS_APPLE="" |
217 |
.else |
204 |
.else |
218 |
EXCLUDE+= --without-plugins="xml" --without-plugins="rss" --without-plugins="xspf" |
205 |
EXCLUDE+= --without-optionals="dns_sd" |
219 |
PLIST_SUB+= XML="@comment " |
206 |
PLIST_SUB+= MDNS_APPLE="@comment " |
220 |
.endif |
207 |
.endif |
221 |
|
208 |
|
222 |
.if defined(WITH_SAMBA) |
209 |
.if !defined(WITHOUT_MDNS_AVAHI) |
223 |
LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient |
210 |
EXCLUDE+= --without-optionals="dns_sd" |
224 |
PLIST_SUB+= SAMBA="" |
211 |
LIB_DEPENDS+= avahi-core:${PORTSDIR}/net/avahi-app |
|
|
212 |
PLIST_SUB+= MDNS_AVAHI="" |
213 |
MAN1+= xmms2-mdns-avahi.1 |
225 |
.else |
214 |
.else |
226 |
EXCLUDE+= --without-plugins="samba" |
215 |
EXCLUDE+= --without-optionals="avahi" |
227 |
PLIST_SUB+= SAMBA="@comment " |
216 |
PLIST_SUB+= MDNS_AVAHI="@comment " |
228 |
.endif |
217 |
.endif |
229 |
|
218 |
|
230 |
.if !defined(WITHOUT_DAAP) |
219 |
.if !defined(WITHOUT_MMS) |
231 |
PLIST_SUB+= DAAP="" |
220 |
LIB_DEPENDS+= mms.0:${PORTSDIR}/net/libmms |
|
|
221 |
PLIST_SUB+= MMS="" |
232 |
.else |
222 |
.else |
233 |
EXCLUDE+= --without-plugins="daap" |
223 |
EXCLUDE+= --without-plugins="mms" |
234 |
PLIST_SUB+= DAAP="@comment " |
224 |
PLIST_SUB+= MMS="@comment " |
235 |
.endif |
225 |
.endif |
236 |
|
226 |
|
237 |
.if !defined(WITHOUT_GME) |
227 |
.if !defined(WITHOUT_MODPLUG) |
238 |
PLIST_SUB+= GME="" |
228 |
LIB_DEPENDS+= modplug.0:${PORTSDIR}/audio/libmodplug |
|
|
229 |
PLIST_SUB+= MODPLUG="" |
239 |
.else |
230 |
.else |
240 |
EXCLUDE+= --without-plugins="gme" |
231 |
EXCLUDE+= --without-plugins="modplug" |
241 |
PLIST_SUB+= GME="@comment " |
232 |
PLIST_SUB+= MODPLUG="@comment " |
242 |
.endif |
233 |
.endif |
243 |
|
234 |
|
244 |
.if defined(WITH_GVFS) |
235 |
.if !defined(WITHOUT_MPG123) |
245 |
USE_GNOME+= gvfs |
236 |
LIB_DEPENDS+= mpg123.11:${PORTSDIR}/audio/mpg123 |
246 |
PLIST_SUB+= GVFS="" |
237 |
PLIST_SUB+= MPG123="" |
247 |
.else |
238 |
.else |
248 |
EXCLUDE+= --without-plugins="gvfs" |
239 |
EXCLUDE+= --without-plugins="mpg123" |
249 |
PLIST_SUB+= GVFS="@comment " |
240 |
PLIST_SUB+= MPG123="@comment " |
250 |
.endif |
241 |
.endif |
251 |
|
242 |
|
252 |
.if defined(WITH_MMS) |
243 |
.if !defined(WITHOUT_MUSEPACK) |
253 |
LIB_DEPENDS+= mms.0:${PORTSDIR}/net/libmms |
244 |
LIB_DEPENDS+= mpcdec.5:${PORTSDIR}/audio/libmpcdec |
254 |
PLIST_SUB+= MMS="" |
245 |
PLIST_SUB+= MUSEPACK="" |
255 |
.else |
246 |
.else |
256 |
EXCLUDE+= --without-plugins="mms" |
247 |
EXCLUDE+= --without-plugins="musepack" |
257 |
PLIST_SUB+= MMS="@comment " |
248 |
PLIST_SUB+= MUSEPACK="@comment " |
258 |
.endif |
249 |
.endif |
259 |
|
250 |
|
260 |
.if defined(WITH_FAM) |
251 |
.if !defined(WITHOUT_OFA) |
261 |
USE_FAM= yes |
252 |
LIB_DEPENDS+= ofa.0:${PORTSDIR}/audio/libofa |
262 |
WANT_FAM_SYSTEM=gamin |
253 |
PLIST_SUB+= OFA="" |
263 |
PLIST_SUB+= FAM="" |
|
|
264 |
.else |
254 |
.else |
265 |
EXCLUDE+= --without-optionals="medialib-updater" |
255 |
EXCLUDE+= --without-plugins="ofa" |
266 |
PLIST_SUB+= FAM="@comment " |
256 |
PLIST_SUB+= OFA="@comment " |
267 |
.endif |
257 |
.endif |
268 |
|
258 |
|
269 |
.if defined(WITH_ICES) |
259 |
.if !defined(WITHOUT_PULSE) |
270 |
LIB_DEPENDS+= shout.5:${PORTSDIR}/audio/libshout2 |
260 |
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio |
271 |
PLIST_SUB+= ICES="" |
261 |
PLIST_SUB+= PULSE="" |
272 |
.else |
262 |
.else |
273 |
EXCLUDE+= --without-plugins="ices" |
263 |
EXCLUDE+= --without-plugins="pulse" |
274 |
PLIST_SUB+= ICES="@comment " |
264 |
PLIST_SUB+= PULSE="@comment " |
275 |
.endif |
265 |
.endif |
276 |
|
266 |
|
277 |
# FIXME: requires pkg-config data of openssl |
267 |
.if !defined(WITHOUT_SAMBA) |
278 |
.if defined(WITH_AIRPLAY) |
268 |
LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient |
279 |
PLIST_SUB+= AIRPLAY="" |
269 |
PLIST_SUB+= SAMBA="" |
280 |
.else |
270 |
.else |
281 |
EXCLUDE+= --without-plugins="airplay" |
271 |
EXCLUDE+= --without-plugins="samba" |
282 |
PLIST_SUB+= AIRPLAY="@comment " |
272 |
PLIST_SUB+= SAMBA="@comment " |
283 |
.endif |
273 |
.endif |
284 |
|
274 |
|
285 |
.if defined(WITH_AO) |
275 |
.if !defined(WITHOUT_SID) |
286 |
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao |
276 |
LIB_DEPENDS+= sidplay2.[0-9]:${PORTSDIR}/audio/libsidplay2 |
287 |
PLIST_SUB+= AO="" |
277 |
PLIST_SUB+= SID="" |
288 |
.else |
278 |
.else |
289 |
EXCLUDE+= --without-plugins="ao" |
279 |
EXCLUDE+= --without-plugins="sid" |
290 |
PLIST_SUB+= AO="@comment " |
280 |
PLIST_SUB+= SID="@comment " |
291 |
.endif |
281 |
.endif |
292 |
|
282 |
|
293 |
.if defined(WITH_MDNS_AVAHI) |
283 |
.if !defined(WITHOUT_SPEEX) |
294 |
.if !defined(WITHOUT_MDNS_APPLE) |
284 |
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex |
295 |
BROKEN= You may choose either MDNS_APPLE or MDNS_AVAHI, but not both |
285 |
PLIST_SUB+= SPEEX="" |
296 |
.endif |
|
|
297 |
EXCLUDE+= --without-optionals="dns_sd" |
298 |
LIB_DEPENDS+= avahi-core:${PORTSDIR}/net/avahi-app |
299 |
PLIST_SUB+= MDNS_AVAHI="" |
300 |
MAN1+= xmms2-mdns-avahi.1 |
301 |
.else |
286 |
.else |
302 |
EXCLUDE+= --without-optionals="avahi" |
287 |
EXCLUDE+= --without-plugins="speex" |
303 |
PLIST_SUB+= MDNS_AVAHI="@comment " |
288 |
PLIST_SUB+= SPEEX="@comment " |
304 |
.endif |
289 |
.endif |
305 |
|
290 |
|
306 |
.if !defined (WITHOUT_MDNS_APPLE) |
291 |
# xmms2-ripper |
307 |
.if defined(WITH_MDNS_AVAHI) |
292 |
.if !defined(WITHOUT_VISUAL) && !defined(WITHOUT_VORBIS) |
308 |
BROKEN= You may choose either MDNS_APPLE or MDNS_AVAHI, but not both |
293 |
LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis |
309 |
.endif |
|
|
310 |
EXCLUDE+= --without-optionals="avahi" |
311 |
LIB_DEPENDS+= dns_sd:${PORTSDIR}/net/mDNSResponder |
312 |
PLIST_SUB+= MDNS_APPLE="" |
313 |
.else |
294 |
.else |
314 |
EXCLUDE+= --without-optionals="dns_sd" |
295 |
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src_clients_vistest_wscript |
315 |
PLIST_SUB+= MDNS_APPLE="@comment " |
|
|
316 |
.endif |
296 |
.endif |
317 |
|
297 |
|
318 |
.if !defined(WITHOUT_KARAOKE) |
298 |
# XXX: shm support requires semtimedop(2) |
319 |
PLIST_SUB+= KARAOKE="" |
299 |
.if !defined(WITHOUT_VISUAL) |
|
|
300 |
USE_SDL= yes |
301 |
LIB_DEPENDS+= visual-0.4.0:${PORTSDIR}/graphics/libvisual04 |
302 |
PLIST_SUB+= VISUAL="" |
320 |
.else |
303 |
.else |
321 |
EXCLUDE+= --without-plugins="karaoke" |
304 |
EXCLUDE+= --without-optionals="vistest" |
322 |
PLIST_SUB+= KARAOKE="@comment " |
305 |
PLIST_SUB+= VISUAL="@comment " |
323 |
.endif |
306 |
.endif |
324 |
|
307 |
|
325 |
.if defined(WITH_VOCODER) |
308 |
.if !defined(WITHOUT_VOCODER) |
326 |
LIB_DEPENDS+= fftw3f.5:${PORTSDIR}/math/fftw3-float |
309 |
LIB_DEPENDS+= fftw3f.5:${PORTSDIR}/math/fftw3-float |
327 |
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate |
310 |
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate |
328 |
PLIST_SUB+= VOCODER="" |
311 |
PLIST_SUB+= VOCODER="" |
Lines 330-339
PLIST_SUB+= VOCODER=""
Link Here
|
330 |
EXCLUDE+= --without-plugins="vocoder" |
313 |
EXCLUDE+= --without-plugins="vocoder" |
331 |
PLIST_SUB+= VOCODER="@comment " |
314 |
PLIST_SUB+= VOCODER="@comment " |
332 |
.endif |
315 |
.endif |
|
|
316 |
|
317 |
.if !defined(WITHOUT_VORBIS) |
318 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
319 |
PLIST_SUB+= VORBIS="" |
320 |
.else |
321 |
EXCLUDE+= --without-plugins="vorbis" |
322 |
PLIST_SUB+= VORBIS="@comment " |
323 |
.endif |
324 |
|
325 |
.if !defined(WITHOUT_WAVPACK) |
326 |
LIB_DEPENDS+= wavpack.1:${PORTSDIR}/audio/wavpack |
327 |
PLIST_SUB+= WAVPACK="" |
328 |
.else |
329 |
EXCLUDE+= --without-plugins="wavpack" |
330 |
PLIST_SUB+= WAVPACK="@comment " |
331 |
.endif |
332 |
|
333 |
.if !defined(WITHOUT_XML) |
334 |
USE_GNOME+= libxml2 |
335 |
PLIST_SUB+= XML="" |
336 |
.else |
337 |
EXCLUDE+= --without-plugins="xml" --without-plugins="rss" \ |
338 |
--without-plugins="xspf" |
339 |
PLIST_SUB+= XML="@comment " |
333 |
.endif |
340 |
.endif |
334 |
|
341 |
|
|
|
342 |
.endif # !XMMS2_SLAVE |
343 |
|
335 |
do-configure: |
344 |
do-configure: |
336 |
cd ${WRKSRC} && ./waf configure --conf-prefix=${LOCALBASE} --prefix=${PREFIX} --with-mandir=${PREFIX}/man ${EXCLUDE} |
345 |
cd ${WRKSRC} && ./waf configure --conf-prefix=${LOCALBASE} \ |
|
|
346 |
--prefix=${PREFIX} --with-mandir=${PREFIX}/man ${EXCLUDE} |
337 |
|
347 |
|
338 |
do-build: |
348 |
do-build: |
339 |
cd ${WRKSRC} && ./waf build |
349 |
cd ${WRKSRC} && ./waf build |