View | Details | Raw Unified | Return to bug 183919
Collapse All | Expand All

(-)multimedia/qmmp/Makefile (-438 / +183 lines)
Lines 17-26 Link Here
17
		qmake_build rcc_build uic_build moc_build linguist_build
17
		qmake_build rcc_build uic_build moc_build linguist_build
18
USE_LDCONFIG=	yes
18
USE_LDCONFIG=	yes
19
19
20
OPTIONS_SUB=	yes
20
OPTIONS_SINGLE=	MPLAYER
21
OPTIONS_SINGLE=	MPLAYER
21
OPTIONS_SINGLE_MPLAYER=	MPLAYER1 MPLAYER2
22
OPTIONS_SINGLE_MPLAYER=	MPLAYER1 MPLAYER2
22
OPTIONS_DEFINE=	ALSA ANALYZER APIDOC BS2B CDIO CONVERTER COPYPASTE \
23
OPTIONS_DEFINE=	ALSA ANALYZER BS2B CDIO CONVERTER COPYPASTE \
23
		COVER CROSSFADE CUE CURL DIR_ASSOC DOCS ENCA FAAD \
24
		COVER CROSSFADE CUE CURL DIR_ASSOC DOCS DOXYGEN ENCA FAAD \
24
		FFMPEG FILEOPS FLAC GME HAL HOTKEY JACK KDENOTIFY \
25
		FFMPEG FILEOPS FLAC GME HAL HOTKEY JACK KDENOTIFY \
25
		LADSPA LYRICS MAD MMS MODPLUG MPLAYER MPRIS MUSEPACK \
26
		LADSPA LYRICS MAD MMS MODPLUG MPLAYER MPRIS MUSEPACK \
26
		NOTIFIER NULLOUT OSS OSS4 PROJECTM PULSEAUDIO QMMP_DIALOG \
27
		NOTIFIER NULLOUT OSS OSS4 PROJECTM PULSEAUDIO QMMP_DIALOG \
Lines 33-528 Link Here
33
		NOTIFIER NULLOUT OSS4 PROJECTM PULSEAUDIO QMMP_DIALOG \
34
		NOTIFIER NULLOUT OSS4 PROJECTM PULSEAUDIO QMMP_DIALOG \
34
		SB SCROBBLER SKINNEDUI SNDFILE SRCONV STATICON STEREO \
35
		SB SCROBBLER SKINNEDUI SNDFILE SRCONV STATICON STEREO \
35
		TRACKCHANGE UDISKS2 VORBIS WAVPACK WILDMIDI
36
		TRACKCHANGE UDISKS2 VORBIS WAVPACK WILDMIDI
36
SKINNEDUI_DESC=	Skinned GUI
37
DIR_ASSOC_DESC=	inode/directory mime type association
38
APIDOC_DESC=	Doxygen generated doc (libqmmp libqmmpui)
39
OSS4_DESC=		Open Sound System (ver4) support
40
NULLOUT_DESC=	Support a null output
41
WILDMIDI_DESC=	Support to playback MIDI files
42
GME_DESC=		Support video game music files
43
CROSSFADE_DESC=	Support cross-fade effect
44
BS2B_DESC=		Support the Bauer stereophonic2binaural effect
45
STEREO_DESC=	Support stereo effect
46
SRCONV_DESC=	Support the sample rate converter
47
PROJECTM_DESC=	Support the projectM music visualiser
48
ANALYZER_DESC=	Supoort spectrum analyzer visualization
49
COPYPASTE_DESC=	Enable copy/paste track infos between playlists
50
ENCA_DESC=		Support automatic character set detection
51
#OPUS_DESC=		Enable reading opusfile tags
52
CONVERTER_DESC=	Support file type converter
53
MPRIS_DESC=	Support the Media Player Remote
54
SCROBBLER_DESC=	Support Libre.fm/Last.fm scrobbler feature
55
STATICON_DESC=	Support to show status icon
56
SB_DESC=	Browser for IceCast stream directory
57
TRACKCHANGE_DESC=	Enable to run external command each track switching
58
NOTIFIER_DESC=	Support to popup notifier
59
LYRICS_DESC=	Support to show lyrics using lyrics.wikia.com
60
HOTKEY_DESC=	Support to set shortcut keys
61
FILEOPS_DESC=	Support file operation
62
COVER_DESC=	Support to show cover images
63
KDENOTIFY_DESC=	Support to popup notifier for KDE
64
UDISKS_DESC=	Support removable disc detection (obsolete)
65
UDISKS2_DESC=	Support removable disc detection using UDisks
66
QMMP_DIALOG_DESC=	An original dialog
67
MPLAYER1_DESC=	mplayer-1.1.x (multimedia/mplayer)
68
MPLAYER2_DESC=	mplayer-2.0.x (multimedia/mplayer2)
69
37
70
.include <bsd.port.options.mk>
38
DOXYGEN_BUILD_DEPENDS=	doxygen:${PORTSDIR}/devel/doxygen
71
39
72
.if ${PORT_OPTIONS:MAPIDOC}
40
SKINNEDUI_DESC=	Skinned GUI
73
BUILD_DEPENDS+=	doxygen:${PORTSDIR}/devel/doxygen
41
SKINNEDUI_CMAKE_ON=	-DUSE_SKINNED:BOOL=TRUE
74
.endif
42
SKINNEDUI_CMAKE_OFF=	-DUSE_SKINNED:BOOL=FALSE
75
43
76
.if ${PORT_OPTIONS:MSKINNEDUI}
44
DIR_ASSOC_DESC=	inode/directory mime type association
77
PLIST_SUB+=	SKINNEDUI=""
45
DIR_ASSOC_CMAKE_ON=	-DUSE_DIR_ASSOC:BOOL=TRUE
78
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SKINNED:BOOL=TRUE
46
DIR_ASSOC_CMAKE_OFF=	-DUSE_DIR_ASSOC:BOOL=FALSE
79
.else
80
PLIST_SUB+=	SKINNEDUI="@comment "
81
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SKINNED:BOOL=FALSE
82
.endif
83
47
84
.if ${PORT_OPTIONS:MDIR_ASSOC}
48
JACK_LIB_DEPENDS=	libjack.so:${PORTSDIR}/audio/jack
85
PLIST_SUB+=	DIR_ASSOC=""
49
JACK_BUILD_DEPENDS=	jackit>=0.121.2:${PORTSDIR}/audio/jack
86
PLUGIN_OPTIONS_CMAKE+=	-DUSE_DIR_ASSOC:BOOL=TRUE
50
JACK_CMAKE_ON=	-DUSE_JACK:BOOL=TRUE
87
.else
51
JACK_CMAKE_OFF=	-DUSE_JACK:BOOL=FALSE
88
PLIST_SUB+=	DIR_ASSOC="@comment "
89
PLUGIN_OPTIONS_CMAKE+=	-DUSE_DIR_ASSOC:BOOL=FALSE
90
.endif
91
52
92
.if ${PORT_OPTIONS:MJACK}
53
ALSA_LIB_DEPENDS=	libasound.so:${PORTSDIR}/audio/alsa-lib
93
PLIST_SUB+=	JACK=""
54
ALSA_CMAKE_ON=	-DUSE_ALSA:BOOL=TRUE
94
LIB_DEPENDS+=	libjack.so:${PORTSDIR}/audio/jack
55
ALSA_CMAKE_OFF=	-DUSE_ALSA:BOOL=FALSE
95
BUILD_DEPENDS+=	jackit>=0.121.2:${PORTSDIR}/audio/jack
96
PLUGIN_OPTIONS_CMAKE+=	-DUSE_JACK:BOOL=TRUE
97
.else
98
PLIST_SUB+=	JACK="@comment "
99
PLUGIN_OPTIONS_CMAKE+=	-DUSE_JACK:BOOL=FALSE
100
.endif
101
56
102
.if ${PORT_OPTIONS:MALSA}
57
BS2B_DESC=		Support the Bauer stereophonic2binaural effect
103
PLIST_SUB+=	ALSA=""
58
BS2B_LIB_DEPENDS=	libbs2b.so:${PORTSDIR}/audio/libbs2b
104
LIB_DEPENDS+=	libasound.so:${PORTSDIR}/audio/alsa-lib
59
BS2B_CMAKE_ON=	-DUSE_BS2B:BOOL=TRUE
105
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ALSA:BOOL=TRUE
60
BS2B_CMAKE_OFF=	-DUSE_BS2B:BOOL=FALSE
106
.else
107
PLIST_SUB+=	ALSA="@comment "
108
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ALSA:BOOL=FALSE
109
.endif
110
61
111
.if ${PORT_OPTIONS:MBS2B}
62
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:${PORTSDIR}/audio/pulseaudio
112
PLIST_SUB+=	BS2B=""
63
PULSEAUDIO_CMAKE_ON=	-DUSE_PULSE:BOOL=TRUE
113
LIB_DEPENDS+=	libbs2b.so:${PORTSDIR}/audio/libbs2b
64
PULSEAUDIO_CMAKE_OFF=	-DUSE_PULSE:BOOL=FALSE
114
PLUGIN_OPTIONS_CMAKE+=	-DUSE_BS2B:BOOL=TRUE
115
.else
116
PLIST_SUB+=	BS2B="@comment "
117
PLUGIN_OPTIONS_CMAKE+=	-DUSE_BS2B:BOOL=FALSE
118
.endif
119
65
120
.if ${PORT_OPTIONS:MPULSEAUDIO}
66
FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac \
121
PLIST_SUB+=	PULSE_AUDIO=""
67
		libtag.so:${PORTSDIR}/audio/taglib
122
LIB_DEPENDS+=	libpulse.so:${PORTSDIR}/audio/pulseaudio
68
FLAC_CMAKE_ON=	-DUSE_FLAC:BOOL=TRUE
123
PLUGIN_OPTIONS_CMAKE+=	-DUSE_PULSE:BOOL=TRUE
69
FLAC_CMAKE_OFF=	-DUSE_FLAC:BOOL=FALSE
124
.else
125
PLIST_SUB+=	PULSE_AUDIO="@comment "
126
PLUGIN_OPTIONS_CMAKE+=	-DUSE_PULSE:BOOL=FALSE
127
.endif
128
70
129
.if ${PORT_OPTIONS:MFLAC}
71
MUSEPACK_LIB_DEPENDS=	libmpcdec.so:${PORTSDIR}/audio/musepack \
130
PLIST_SUB+=	FLAC=""
72
		libtag.so:${PORTSDIR}/audio/taglib
131
LIB_DEPENDS+=	libFLAC.so:${PORTSDIR}/audio/flac
73
MUSEPACK_CMAKE_ON=	-DUSE_MPC:BOOL=TRUE
132
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FLAC:BOOL=TRUE
74
MUSEPACK_CMAKE_OFF=	-DUSE_MPC:BOOL=FALSE
133
.else
134
PLIST_SUB+=	FLAC="@comment "
135
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FLAC:BOOL=FALSE
136
.endif
137
75
138
.if ${PORT_OPTIONS:MMUSEPACK}
76
GME_DESC=		Support video game music files
139
PLIST_SUB+=	MUSEPACK=""
77
GME_LIB_DEPENDS=	libgme.so:${PORTSDIR}/audio/libgme
140
LIB_DEPENDS+=	libmpcdec.so:${PORTSDIR}/audio/musepack
78
GME_CMAKE_ON=	-DUSE_GME:BOOL=TRUE
141
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPC:BOOL=TRUE
79
GME_CMAKE_OFF=	-DUSE_GME:BOOL=FALSE
142
.else
143
PLIST_SUB+=	MUSEPACK="@comment "
144
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPC:BOOL=FALSE
145
.endif
146
80
147
.if ${PORT_OPTIONS:MGME}
81
FFMPEG_LIB_DEPENDS=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
148
PLIST_SUB+=	GME=""
82
FFMPEG_CMAKE_ON=	-DUSE_FFMPEG:BOOL=TRUE
149
LIB_DEPENDS+=	libgme.so:${PORTSDIR}/audio/libgme
83
FFMPEG_CMAKE_OFF=	-DUSE_FFMPEG:BOOL=FALSE
150
PLUGIN_OPTIONS_CMAKE+=	-DUSE_GME:BOOL=TRUE
151
.else
152
PLIST_SUB+=	GME="@comment "
153
PLUGIN_OPTIONS_CMAKE+=	-DUSE_GME:BOOL=FALSE
154
.endif
155
84
156
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FFMPEG_LEGACY:BOOL=FALSE
85
MODPLUG_LIB_DEPENDS=	libmodplug.so:${PORTSDIR}/audio/libmodplug
86
MODPLUG_CMAKE_ON=	-DUSE_MODPLUG:BOOL=TRUE
87
MODPLUG_CMAKE_OFF=	-DUSE_MODPLUG:BOOL=FALSE
157
88
158
.if ${PORT_OPTIONS:MFFMPEG}
89
FAAD_LIB_DEPENDS=	libfaad.so:${PORTSDIR}/audio/faad \
159
LIB_DEPENDS+=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
90
		libtag.so:${PORTSDIR}/audio/taglib
160
PLIST_SUB+=	FFMPEG=""
91
FAAD_CMAKE_ON=	-DUSE_AAC:BOOL=TRUE
161
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FFMPEG:BOOL=TRUE
92
FAAD_CMAKE_OFF=	-DUSE_AAC:BOOL=FALSE
162
.else
163
PLIST_SUB+=	FFMPEG="@comment "
164
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FFMPEG:BOOL=FALSE
165
.endif
166
93
167
.if ${PORT_OPTIONS:MMODPLUG}
94
CDIO_LIB_DEPENDS=	libcdio.so:${PORTSDIR}/sysutils/libcdio
168
PLIST_SUB+=	MODPLUG=""
95
CDIO_CMAKE_ON=	-DUSE_CDA:BOOL=TRUE
169
LIB_DEPENDS+=	libmodplug.so:${PORTSDIR}/audio/libmodplug
96
CDIO_CMAKE_OFF=	-DUSE_CDA:BOOL=FALSE
170
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MODPLUG:BOOL=TRUE
171
.else
172
PLIST_SUB+=	MODPLUG="@comment "
173
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MODPLUG:BOOL=FALSE
174
.endif
175
97
176
.if ${PORT_OPTIONS:MFAAD}
98
ENCA_DESC=		Support automatic character set detection
177
PLIST_SUB+=	FAAD=""
99
ENCA_LIB_DEPENDS=	libenca.so:${PORTSDIR}/converters/enca
178
LIB_DEPENDS+=	libfaad.so:${PORTSDIR}/audio/faad
100
ENCA_CMAKE_ON=	-DUSE_ENCA:BOOL=TRUE
179
PLUGIN_OPTIONS_CMAKE+=	-DUSE_AAC:BOOL=TRUE
101
ENCA_CMAKE_OFF=	-DUSE_ENCA:BOOL=FALSE
180
.else
181
PLIST_SUB+=	FAAD="@comment "
182
PLUGIN_OPTIONS_CMAKE+=	-DUSE_AAC:BOOL=FALSE
183
.endif
184
102
185
.if ${PORT_OPTIONS:MCDIO}
103
MPLAYER1_DESC=	mplayer-1.1.x (multimedia/mplayer)
186
PLIST_SUB+=	CDIO=""
104
MPLAYER2_DESC=	mplayer-2.0.x (multimedia/mplayer2)
187
LIB_DEPENDS+=	libcdio.so:${PORTSDIR}/sysutils/libcdio
105
MPLAYER1_RUN_DEPENDS=	mplayer:${PORTSDIR}/multimedia/mplayer
188
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CDA:BOOL=TRUE
106
MPLAYER2_RUN_DEPENDS=	mplayer:${PORTSDIR}/multimedia/mplayer2
189
.else
107
MPLAYER_CMAKE_ON=	-DUSE_MPLAYER:BOOL=TRUE
190
PLIST_SUB+=	CDIO="@comment "
108
MPLAYER_CMAKE_OFF=	-DUSE_MPLAYER:BOOL=FALSE
191
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CDA:BOOL=FALSE
192
.endif
193
109
194
.if ${PORT_OPTIONS:MENCA} || \
110
PROJECTM_DESC=	Support the projectM music visualiser
195
	(exists(${LOCALBASE}/include/enca.h) && ${PORT_OPTIONS:MCUE})
111
PROJECTM_LIB_DEPENDS=	libprojectM.so.2:${PORTSDIR}/graphics/libprojectm
196
PLIST_SUB+=	ENCA=""
112
PROJECTM_USE=	QT4=opengl
197
LIB_DEPENDS+=	libenca.so:${PORTSDIR}/converters/enca
113
PROJECTM_CMAKE_ON=	-DUSE_PROJECTM:BOOL=TRUE
198
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ENCA:BOOL=TRUE
114
PROJECTM_CMAKE_OFF=	-DUSE_PROJECTM:BOOL=FALSE
199
.else
200
PLIST_SUB+=	ENCA="@comment "
201
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ENCA:BOOL=FALSE
202
.endif
203
115
204
.if ${PORT_OPTIONS:MMPLAYER}
116
OSS_CMAKE_ON=	-DUSE_OSS:BOOL=TRUE
205
. if ${PORT_OPTIONS:MMPLAYER2}
117
OSS_CMAKE_OFF=	-DUSE_OSS:BOOL=FALSE
206
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer2
207
. else
208
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
209
. endif
210
PLIST_SUB+=	MPLAYER=""
211
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPLAYER:BOOL=TRUE
212
.else
213
PLIST_SUB+=	MPLAYER="@comment "
214
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPLAYER:BOOL=FALSE
215
.endif
216
118
217
.if ${PORT_OPTIONS:MPROJECTM}
119
OSS4_DESC=		Open Sound System (ver4) support
218
PLIST_SUB+=	PROJECTM=""
120
OSS4_BUILD_DEPENDS=	${LOCALBASE}/lib/oss/include/sys/soundcard.h:${PORTSDIR}/audio/oss
219
LIB_DEPENDS+=	libprojectM.so.2:${PORTSDIR}/graphics/libprojectm
121
OSS4_CMAKE_ON=	-DUSE_OSS4:BOOL=TRUE
220
USE_QT4+=	opengl
122
OSS4_CMAKE_OFF=	-DUSE_OSS4:BOOL=FALSE
221
PLUGIN_OPTIONS_CMAKE+=	-DUSE_PROJECTM:BOOL=TRUE
222
.else
223
PLIST_SUB+=	PROJECTM="@comment "
224
PLUGIN_OPTIONS_CMAKE+=	-DUSE_PROJECTM:BOOL=FALSE
225
.endif
226
123
227
.if ${PORT_OPTIONS:MOSS}
124
LADSPA_RUN_DEPENDS=	analyseplugin:${PORTSDIR}/audio/ladspa
228
PLIST_SUB+=	OSS=""
125
LADSPA_CMAKE_ON=	-DUSE_LADSPA:BOOL=TRUE
229
PLUGIN_OPTIONS_CMAKE+=	-DUSE_OSS:BOOL=TRUE
126
LADSPA_CMAKE_OFF=	-DUSE_LADSPA:BOOL=FALSE
230
.else
231
PLIST_SUB+=	OSS="@comment "
232
PLUGIN_OPTIONS_CMAKE+=	-DUSE_OSS:BOOL=FALSE
233
.endif
234
127
235
.if ${PORT_OPTIONS:MOSS4}
128
WILDMIDI_DESC=	Support to playback MIDI files
236
PLIST_SUB+=	OSS4=""
129
WILDMIDI_LIB_DEPENDS=	libWildMidi.so:${PORTSDIR}/audio/wildmidi
237
BUILD_DEPENDS+=	${LOCALBASE}/lib/oss/include/sys/soundcard.h:${PORTSDIR}/audio/oss
130
WILDMIDI_CMAKE_ON=	-DUSE_MIDI:BOOL=TRUE
238
PLUGIN_OPTIONS_CMAKE+=	-DUSE_OSS4:BOOL=TRUE
131
WILDMIDI_CMAKE_OFF=	-DUSE_MIDI:BOOL=FALSE
239
.else
240
PLIST_SUB+=	OSS4="@comment "
241
PLUGIN_OPTIONS_CMAKE+=	-DUSE_OSS4:BOOL=FALSE
242
.endif
243
132
244
.if ${PORT_OPTIONS:MLADSPA}
133
MAD_LIB_DEPENDS=	libmad.so:${PORTSDIR}/audio/libmad \
245
PLIST_SUB+=	LADSPA=""
134
		libtag.so:${PORTSDIR}/audio/taglib
246
RUN_DEPENDS+=	analyseplugin:${PORTSDIR}/audio/ladspa
135
MAD_CMAKE_ON=	-DUSE_MAD:BOOL=TRUE
247
PLUGIN_OPTIONS_CMAKE+=	-DUSE_LADSPA:BOOL=TRUE
136
MAD_CMAKE_OFF=	-DUSE_MAD:BOOL=FALSE
248
.else
249
PLIST_SUB+=	LADSPA="@comment "
250
PLUGIN_OPTIONS_CMAKE+=	-DUSE_LADSPA:BOOL=FALSE
251
.endif
252
137
253
.if ${PORT_OPTIONS:MWILDMIDI}
138
#OPUS_DESC=		Enable reading opusfile tags
254
PLIST_SUB+=	WILDMIDI=""
139
#OPUS_LIB_DEPENDS=	libopusfile.so:${PORTSDIR}/audio/opusfile \
255
LIB_DEPENDS+=	libWildMidi.so:${PORTSDIR}/audio/wildmidi
140
#		libtag.so:${PORTSDIR}/audio/taglib
256
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MIDI:BOOL=TRUE
141
#OPUS_CMAKE_ON=	-DUSE_OPUS:BOOL=TRUE
257
.else
142
#OPUS_CMAKE_OFF=	-DUSE_OPUS:BOOL=FALSE
258
PLIST_SUB+=	WILDMIDI="@comment "
143
CMAKE_ARGS+=	-DUSE_OPUS:BOOL=FALSE
259
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MIDI:BOOL=FALSE
260
.endif
261
262
.if ${PORT_OPTIONS:MMAD}
263
PLIST_SUB+=	MAD=""
264
LIB_DEPENDS+=	libmad.so:${PORTSDIR}/audio/libmad
265
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MAD:BOOL=TRUE
266
.else
267
PLIST_SUB+=	MAD="@comment "
268
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MAD:BOOL=FALSE
269
.endif
270
271
#.if ${PORT_OPTIONS:MOPUS}
272
#PLIST_SUB+=	OPUS=""
273
#LIB_DEPENDS+=	libopusfile.so:${PORTSDIR}/audio/opusfile
274
#PLUGIN_OPTIONS_CMAKE+=	-DUSE_OPUS:BOOL=TRUE
275
#.else
276
PLIST_SUB+=	OPUS="@comment "
144
PLIST_SUB+=	OPUS="@comment "
277
PLUGIN_OPTIONS_CMAKE+=	-DUSE_OPUS:BOOL=FALSE
278
#.endif
279
145
280
.if ${PORT_OPTIONS:MSNDFILE}
146
SNDFILE_LIB_DEPENDS=	libsndfile.so:${PORTSDIR}/audio/libsndfile
281
PLIST_SUB+=	SNDFILE=""
147
SNDFILE_CMAKE_ON=	-DUSE_SNDFILE:BOOL=TRUE
282
LIB_DEPENDS+=	libsndfile.so:${PORTSDIR}/audio/libsndfile
148
SNDFILE_CMAKE_OFF=	-DUSE_SNDFILE:BOOL=FALSE
283
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SNDFILE:BOOL=TRUE
284
.else
285
PLIST_SUB+=	SNDFILE="@comment "
286
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SNDFILE:BOOL=FALSE
287
.endif
288
149
289
.if ${PORT_OPTIONS:MVORBIS}
150
VORBIS_LIB_DEPENDS=	libvorbis.so:${PORTSDIR}/audio/libvorbis \
290
PLIST_SUB+=	VORBIS=""
151
		libtag.so:${PORTSDIR}/audio/taglib
291
LIB_DEPENDS+=	libvorbis.so:${PORTSDIR}/audio/libvorbis
152
VORBIS_CMAKE_ON=	-DUSE_VORBIS:BOOL=TRUE
292
PLUGIN_OPTIONS_CMAKE+=	-DUSE_VORBIS:BOOL=TRUE
153
VORBIS_CMAKE_OFF=	-DUSE_VORBIS:BOOL=FALSE
293
.else
294
PLIST_SUB+=	VORBIS="@comment "
295
PLUGIN_OPTIONS_CMAKE+=	-DUSE_VORBIS:BOOL=FALSE
296
.endif
297
154
298
.if ${PORT_OPTIONS:MWAVPACK}
155
WAVPACK_LIB_DEPENDS=	libwavpack.so:${PORTSDIR}/audio/wavpack
299
PLIST_SUB+=	WAVPACK=""
156
WAVPACK_CMAKE_ON=	-DUSE_WAVPACK:BOOL=TRUE
300
LIB_DEPENDS+=	libwavpack.so:${PORTSDIR}/audio/wavpack
157
WAVPACK_CMAKE_OFF=	-DUSE_WAVPACK:BOOL=FALSE
301
PLUGIN_OPTIONS_CMAKE+=	-DUSE_WAVPACK:BOOL=TRUE
302
.else
303
PLIST_SUB+=	WAVPACK="@comment "
304
PLUGIN_OPTIONS_CMAKE+=	-DUSE_WAVPACK:BOOL=FALSE
305
.endif
306
158
307
.if ${PORT_OPTIONS:MCURL}
159
CURL_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
308
PLIST_SUB+=	CURL=""
160
CURL_CMAKE_ON=	-DUSE_CURL:BOOL=TRUE
309
LIB_DEPENDS+=	libcurl.so:${PORTSDIR}/ftp/curl
161
CURL_CMAKE_OFF=	-DUSE_CURL:BOOL=FALSE
310
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CURL:BOOL=TRUE
311
.else
312
PLIST_SUB+=	CURL="@comment "
313
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CURL:BOOL=FALSE
314
.endif
315
162
316
.if ${PORT_OPTIONS:MMMS}
163
MMS_LIB_DEPENDS=	libmms.so:${PORTSDIR}/net/libmms
317
PLIST_SUB+=	MMS=""
164
MMS_CMAKE_ON=	-DUSE_MMS:BOOL=TRUE
318
LIB_DEPENDS+=	libmms.so:${PORTSDIR}/net/libmms
165
MMS_CMAKE_OFF=	-DUSE_MMS:BOOL=FALSE
319
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MMS:BOOL=TRUE
320
.else
321
PLIST_SUB+=	MMS="@comment "
322
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MMS:BOOL=FALSE
323
.endif
324
166
325
.if ${PORT_OPTIONS:MCUE}
167
CUE_CMAKE_ON=	-DUSE_CUE:BOOL=TRUE
326
PLIST_SUB+=	CUE=""
168
CUE_CMAKE_OFF=	-DUSE_CUE:BOOL=FALSE
327
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CUE:BOOL=TRUE
328
.else
329
PLIST_SUB+=	CUE="@comment "
330
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CUE:BOOL=FALSE
331
.endif
332
169
333
.if ${PORT_OPTIONS:MNULLOUT}
170
NULLOUT_DESC=	Support a null output
334
PLIST_SUB+=	NULLOUT=""
171
NULLOUT_CMAKE_ON=	-DUSE_NULL:BOOL=TRUE
335
PLUGIN_OPTIONS_CMAKE+=	-DUSE_NULL:BOOL=TRUE
172
NULLOUT_CMAKE_OFF=	-DUSE_NULL:BOOL=FALSE
336
.else
337
PLIST_SUB+=	NULLOUT="@comment "
338
PLUGIN_OPTIONS_CMAKE+=	-DUSE_NULL:BOOL=FALSE
339
.endif
340
173
341
.if ${PORT_OPTIONS:MSRCONV}
174
SRCONV_DESC=	Support the sample rate converter
342
PLIST_SUB+=	SRCONV=""
175
SRCONV_CMAKE_ON=	-DUSE_SRC:BOOL=TRUE
343
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SRC:BOOL=TRUE
176
SRCONV_CMAKE_OFF=	-DUSE_SRC:BOOL=FALSE
344
.else
345
PLIST_SUB+=	SRCONV="@comment "
346
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SRC:BOOL=FALSE
347
.endif
348
177
349
.if ${PORT_OPTIONS:MCROSSFADE}
178
CROSSFADE_DESC=	Support cross-fade effect
350
PLIST_SUB+=	CROSSFADE=""
179
CROSSFADE_CMAKE_ON=	-DUSE_CROSSFADE:BOOL=TRUE
351
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CROSSFADE:BOOL=TRUE
180
CROSSFADE_CMAKE_OFF=	-DUSE_CROSSFADE:BOOL=FALSE
352
.else
353
PLIST_SUB+=	CROSSFADE="@comment "
354
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CROSSFADE:BOOL=FALSE
355
.endif
356
181
357
.if ${PORT_OPTIONS:MSTEREO}
182
STEREO_DESC=	Support stereo effect
358
PLIST_SUB+=	STEREO=""
183
STEREO_CMAKE_ON=	-DUSE_STEREO:BOOL=TRUE
359
PLUGIN_OPTIONS_CMAKE+=	-DUSE_STEREO:BOOL=TRUE
184
STEREO_CMAKE_OFF=	-DUSE_STEREO:BOOL=FALSE
360
.else
361
PLIST_SUB+=	STEREO="@comment "
362
PLUGIN_OPTIONS_CMAKE+=	-DUSE_STEREO:BOOL=FALSE
363
.endif
364
185
365
.if ${PORT_OPTIONS:MANALYZER}
186
ANALYZER_DESC=	Supoort spectrum analyzer visualization
366
PLIST_SUB+=	ANALYZER=""
187
ANALYZER_CMAKE_ON=	-DUSE_ANALYZER:BOOL=TRUE
367
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ANALYZER:BOOL=TRUE
188
ANALYZER_CMAKE_OFF=	-DUSE_ANALYZER:BOOL=FALSE
368
.else
369
PLIST_SUB+=	ANALYZER="@comment "
370
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ANALYZER:BOOL=FALSE
371
.endif
372
189
373
.if ${PORT_OPTIONS:MCONVERTER}
190
CONVERTER_DESC=	Support file type converter
374
PLIST_SUB+=	CONVERTER=""
191
CONVERTER_LIB_DEPENDS=	libtag.so:${PORTSDIR}/audio/taglib
375
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CONVERTER:BOOL=TRUE
192
CONVERTER_CMAKE_ON=	-DUSE_CONVERTER:BOOL=TRUE
376
.else
193
CONVERTER_CMAKE_OFF=	-DUSE_CONVERTER:BOOL=FALSE
377
PLIST_SUB+=	CONVERTER="@comment "
378
PLUGIN_OPTIONS_CMAKE+=	-DUSE_CONVERTER:BOOL=FALSE
379
.endif
380
194
381
.if ${PORT_OPTIONS:MCOPYPASTE}
195
COPYPASTE_DESC=	Enable copy/paste track infos between playlists
382
PLIST_SUB+=	COPYPASTE=""
196
COPYPASTE_CMAKE_ON=	-DUSE_COPYPASTE:BOOL=TRUE
383
PLUGIN_OPTIONS_CMAKE+=	-DUSE_COPYPASTE:BOOL=TRUE
197
COPYPASTE_CMAKE_OFF=	-DUSE_COPYPASTE:BOOL=FALSE
384
.else
385
PLIST_SUB+=	COPYPASTE="@comment "
386
PLUGIN_OPTIONS_CMAKE+=	-DUSE_COPYPASTE:BOOL=FALSE
387
.endif
388
198
389
.if ${PORT_OPTIONS:MMPRIS}
199
MPRIS_DESC=	Support the Media Player Remote
390
PLIST_SUB+=	MPRIS=""
200
MPRIS_USE=	QT4=dbus
391
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPRIS:BOOL=TRUE
201
MPRIS_CMAKE_ON=	-DUSE_MPRIS:BOOL=TRUE
392
.else
202
MPRIS_CMAKE_OFF=	-DUSE_MPRIS:BOOL=FALSE
393
PLIST_SUB+=	MPRIS="@comment "
394
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPRIS:BOOL=FALSE
395
.endif
396
203
397
.if ${PORT_OPTIONS:MSCROBBLER}
204
SCROBBLER_DESC=	Support Libre.fm/Last.fm scrobbler feature
398
PLIST_SUB+=	SCROBBLER=""
205
SCROBBLER_CMAKE_ON=	-DUSE_SCROBBLER:BOOL=TRUE
399
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SCROBBLER:BOOL=TRUE
206
SCROBBLER_CMAKE_OFF=	-DUSE_SCROBBLER:BOOL=FALSE
400
.else
401
PLIST_SUB+=	SCROBBLER="@comment "
402
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SCROBBLER:BOOL=FALSE
403
.endif
404
207
405
.if ${PORT_OPTIONS:MSTATICON}
208
STATICON_DESC=	Support to show status icon
406
PLIST_SUB+=	STATICON=""
209
STATICON_CMAKE_ON=	-DUSE_STATICON:BOOL=TRUE
407
PLUGIN_OPTIONS_CMAKE+=	-DUSE_STATICON:BOOL=TRUE
210
STATICON_CMAKE_OFF=	-DUSE_STATICON:BOOL=FALSE
408
.else
409
PLIST_SUB+=	STATICON="@comment "
410
PLUGIN_OPTIONS_CMAKE+=	-DUSE_STATICON:BOOL=FALSE
411
.endif
412
211
413
.if ${PORT_OPTIONS:MSB}
212
SB_DESC=	Browser for IceCast stream directory
414
PLIST_SUB+=	SB=""
213
SB_CMAKE_ON=	-DUSE_SB:BOOL=TRUE
415
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SB:BOOL=TRUE
214
SB_CMAKE_OFF=	-DUSE_SB:BOOL=FALSE
416
.else
417
PLIST_SUB+=	SB="@comment "
418
PLUGIN_OPTIONS_CMAKE+=	-DUSE_SB:BOOL=FALSE
419
.endif
420
215
421
.if ${PORT_OPTIONS:MNOTIFIER}
216
NOTIFIER_DESC=	Support to popup notifier
422
PLIST_SUB+=	NOTIFIER=""
217
NOTIFIER_CMAKE_ON=	-DUSE_NOTIFIER:BOOL=TRUE
423
PLUGIN_OPTIONS_CMAKE+=	-DUSE_NOTIFIER:BOOL=TRUE
218
NOTIFIER_CMAKE_OFF=	-DUSE_NOTIFIER:BOOL=FALSE
424
.else
425
PLIST_SUB+=	NOTIFIER="@comment "
426
PLUGIN_OPTIONS_CMAKE+=	-DUSE_NOTIFIER:BOOL=FALSE
427
.endif
428
219
429
.if ${PORT_OPTIONS:MLYRICS}
220
LYRICS_DESC=	Support to show lyrics using lyrics.wikia.com
430
PLIST_SUB+=	LYRICS=""
221
LYRICS_CMAKE_ON=	-DUSE_LYRICS:BOOL=TRUE
431
PLUGIN_OPTIONS_CMAKE+=	-DUSE_LYRICS:BOOL=TRUE
222
LYRICS_CMAKE_OFF=	-DUSE_LYRICS:BOOL=FALSE
432
.else
433
PLIST_SUB+=	LYRICS="@comment "
434
PLUGIN_OPTIONS_CMAKE+=	-DUSE_LYRICS:BOOL=FALSE
435
.endif
436
223
437
.if ${PORT_OPTIONS:MHAL}
224
HAL_USE=	QT4=dbus
438
PLIST_SUB+=	HAL=""
225
HAL_CMAKE_ON=	-DUSE_HAL:BOOL=TRUE
439
PLUGIN_OPTIONS_CMAKE+=	-DUSE_HAL:BOOL=TRUE
226
HAL_CMAKE_OFF=	-DUSE_HAL:BOOL=FALSE
440
.else
441
PLIST_SUB+=	HAL="@comment "
442
PLUGIN_OPTIONS_CMAKE+=	-DUSE_HAL:BOOL=FALSE
443
.endif
444
227
445
.if ${PORT_OPTIONS:MHOTKEY}
228
HOTKEY_DESC=	Support to set shortcut keys
446
PLIST_SUB+=	HOTKEY=""
229
HOTKEY_CMAKE_ON=	-DUSE_HOTKEY:BOOL=TRUE
447
PLUGIN_OPTIONS_CMAKE+=	-DUSE_HOTKEY:BOOL=TRUE
230
HOTKEY_CMAKE_OFF=	-DUSE_HOTKEY:BOOL=FALSE
448
.else
449
PLIST_SUB+=	HOTKEY="@comment "
450
PLUGIN_OPTIONS_CMAKE+=	-DUSE_HOTKEY:BOOL=FALSE
451
.endif
452
231
453
.if ${PORT_OPTIONS:MFILEOPS}
232
FILEOPS_DESC=	Support file operation
454
PLIST_SUB+=	FILEOPS=""
233
FILEOPS_CMAKE_ON=	-DUSE_FILEOPS:BOOL=TRUE
455
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FILEOPS:BOOL=TRUE
234
FILEOPS_CMAKE_OFF=	-DUSE_FILEOPS:BOOL=FALSE
456
.else
457
PLIST_SUB+=	FILEOPS="@comment "
458
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FILEOPS:BOOL=FALSE
459
.endif
460
235
461
.if ${PORT_OPTIONS:MCOVER}
236
COVER_DESC=	Support to show cover images
462
PLIST_SUB+=	COVER=""
237
COVER_CMAKE_ON=	-DUSE_COVER:BOOL=TRUE
463
PLUGIN_OPTIONS_CMAKE+=	-DUSE_COVER:BOOL=TRUE
238
COVER_CMAKE_OFF=	-DUSE_COVER:BOOL=FALSE
464
.else
465
PLIST_SUB+=	COVER="@comment "
466
PLUGIN_OPTIONS_CMAKE+=	-DUSE_COVER:BOOL=FALSE
467
.endif
468
239
469
.if ${PORT_OPTIONS:MKDENOTIFY}
240
KDENOTIFY_DESC=	Support to popup notifier for KDE
470
PLIST_SUB+=	KDENOTIFY=""
241
KDENOTIFY_USE=	QT4=dbus
471
PLUGIN_OPTIONS_CMAKE+=	-DUSE_KDENOTIFY:BOOL=TRUE
242
KDENOTIFY_CMAKE_ON=	-DUSE_KDENOTIFY:BOOL=TRUE
472
.else
243
KDENOTIFY_CMAKE_OFF=	-DUSE_KDENOTIFY:BOOL=FALSE
473
PLIST_SUB+=	KDENOTIFY="@comment "
474
PLUGIN_OPTIONS_CMAKE+=	-DUSE_KDENOTIFY:BOOL=FALSE
475
.endif
476
244
477
.if ${PORT_OPTIONS:MTRACKCHANGE}
245
TRACKCHANGE_DESC=	Enable to run external command each track switching
478
PLIST_SUB+=	TRACKCHANGE=""
246
TRACKCHANGE_CMAKE_ON=	-DUSE_TRACKCHANGE:BOOL=TRUE
479
PLUGIN_OPTIONS_CMAKE+=	-DUSE_TRACKCHANGE:BOOL=TRUE
247
TRACKCHANGE_CMAKE_OFF=	-DUSE_TRACKCHANGE:BOOL=FALSE
480
.else
481
PLIST_SUB+=	TRACKCHANGE="@comment "
482
PLUGIN_OPTIONS_CMAKE+=	-DUSE_TRACKCHANGE:BOOL=FALSE
483
.endif
484
248
485
.if ${PORT_OPTIONS:MUDISKS}
249
UDISKS_DESC=	Support removable disc detection (obsolete)
486
PLIST_SUB+=	UDISKS=""
250
UDISKS2_DESC=	Support removable disc detection using UDisks
487
PLUGIN_OPTIONS_CMAKE+=	-DUSE_UDISKS:BOOL=TRUE
251
UDISKS_USE=	QT4=dbus
488
.else
252
UDISKS2_USE=	QT4=dbus
489
PLIST_SUB+=	UDISKS="@comment "
253
UDISKS_CMAKE_ON=	-DUSE_UDISKS:BOOL=TRUE
490
PLUGIN_OPTIONS_CMAKE+=	-DUSE_UDISKS:BOOL=FALSE
254
UDISKS_CMAKE_OFF=	-DUSE_UDISKS:BOOL=FALSE
491
.endif
255
UDISKS2_CMAKE_ON=	-DUSE_UDISKS2:BOOL=TRUE
256
UDISKS2_CMAKE_OFF=	-DUSE_UDISKS2:BOOL=FALSE
492
257
493
.if ${PORT_OPTIONS:MUDISKS2}
258
QMMP_DIALOG_DESC=	An original dialog
494
PLIST_SUB+=	UDISKS2=""
259
QMMP_DIALOG_CMAKE_ON=	-DUSE_QMMP_DIALOG:BOOL=TRUE
495
PLUGIN_OPTIONS_CMAKE+=	-DUSE_UDISKS2:BOOL=TRUE
260
QMMP_DIALOG_CMAKE_OFF=	-DUSE_QMMP_DIALOG:BOOL=FALSE
496
.else
497
PLIST_SUB+=	UDISKS2="@comment "
498
PLUGIN_OPTIONS_CMAKE+=	-DUSE_UDISKS2:BOOL=FALSE
499
.endif
500
261
501
.if ${PORT_OPTIONS:MQMMP_DIALOG}
262
.include <bsd.port.pre.mk>
502
PLIST_SUB+=	QMMP_DIALOG=""
503
PLUGIN_OPTIONS_CMAKE+=	-DUSE_QMMP_DIALOG:BOOL=TRUE
504
.else
505
PLIST_SUB+=	QMMP_DIALOG="@comment "
506
PLUGIN_OPTIONS_CMAKE+=	-DUSE_QMMP_DIALOG:BOOL=FALSE
507
.endif
508
263
509
.if ${PORT_OPTIONS:MFAAD} || ${PORT_OPTIONS:MMAD} \
510
	|| ${PORT_OPTIONS:MMUSEPACK} || ${PORT_OPTIONS:MFLAC} \
511
	|| ${PORT_OPTIONS:MVORBIS} || ${PORT_OPTIONS:MCONVERTER}
512
LIB_DEPENDS+=	libtag.so:${PORTSDIR}/audio/taglib
513
.endif
514
.if ${PORT_OPTIONS:MKDENOTIFY} \
515
	|| ${PORT_OPTIONS:MUDISKS} || ${PORT_OPTIONS:MUDISKS2} \
516
	|| ${PORT_OPTIONS:MHAL}  || ${PORT_OPTIONS:MMPRIS}
517
USE_QT4+=	dbus
518
.endif
519
520
PLIST_SUB+=	SHLIB_VER=${PORTVERSION:C/-.*//}
264
PLIST_SUB+=	SHLIB_VER=${PORTVERSION:C/-.*//}
521
265
522
PORTDOCS=	README README.RUS AUTHORS
266
PORTDOCS=	README README.RUS AUTHORS
523
INSTALLS_ICONS=	yes
267
INSTALLS_ICONS=	yes
524
268
525
CMAKE_ARGS+=	${PLUGIN_OPTIONS_CMAKE} -DUSE_RPATH:BOOL=TRUE \
269
CMAKE_ARGS+=	-DUSE_RPATH:BOOL=TRUE \
270
	-DUSE_FFMPEG_LEGACY:BOOL=FALSE \
526
	-DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
271
	-DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
527
CFLAGS+=	-I${LOCALBASE}/include
272
CFLAGS+=	-I${LOCALBASE}/include
528
LDFLAGS+=	-L${LOCALBASE}/lib
273
LDFLAGS+=	-L${LOCALBASE}/lib
Lines 535-544 Link Here
535
		${WRKSRC}/src/qmmpui/CMakeLists.txt
280
		${WRKSRC}/src/qmmpui/CMakeLists.txt
536
281
537
pre-configure:
282
pre-configure:
538
	${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
283
	@${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
539
284
540
post-build:
285
post-build:
541
.if ${PORT_OPTIONS:MAPIDOC}
286
.if ${PORT_OPTIONS:MDOXYGEN}
542
	cd ${WRKSRC}/doc && doxygen Doxyfile
287
	cd ${WRKSRC}/doc && doxygen Doxyfile
543
.endif
288
.endif
544
289
Lines 547-553 Link Here
547
	@${MKDIR} ${STAGEDIR}${DOCSDIR}; \
292
	@${MKDIR} ${STAGEDIR}${DOCSDIR}; \
548
	cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
293
	cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
549
.endif
294
.endif
550
.if ${PORT_OPTIONS:MAPIDOC}
295
.if ${PORT_OPTIONS:MDOXYGEN}
551
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/html/search ; \
296
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/html/search ; \
552
	cd ${WRKSRC}/doc/html && \
297
	cd ${WRKSRC}/doc/html && \
553
		${INSTALL_MAN} *.html *.png *.css ${STAGEDIR}${DOCSDIR}/html ; \
298
		${INSTALL_MAN} *.html *.png *.css ${STAGEDIR}${DOCSDIR}/html ; \
Lines 563-566 Link Here
563
	cd ${WRKDIR} ; ${SED} -i -e '/PLIST.doc/ r PLIST.doc' ${TMPPLIST}
308
	cd ${WRKDIR} ; ${SED} -i -e '/PLIST.doc/ r PLIST.doc' ${TMPPLIST}
564
.endif
309
.endif
565
310
566
.include <bsd.port.mk>
311
.include <bsd.port.post.mk>
(-)multimedia/qmmp/pkg-plist (-1 / +1 lines)
Lines 96-102 Link Here
96
%%NULLOUT%%lib/qmmp/Output/libnull.so
96
%%NULLOUT%%lib/qmmp/Output/libnull.so
97
%%OSS%%lib/qmmp/Output/liboss.so
97
%%OSS%%lib/qmmp/Output/liboss.so
98
%%OSS4%%lib/qmmp/Output/liboss4.so
98
%%OSS4%%lib/qmmp/Output/liboss4.so
99
%%PULSE_AUDIO%%lib/qmmp/Output/libpulseaudio.so
99
%%PULSEAUDIO%%lib/qmmp/Output/libpulseaudio.so
100
lib/qmmp/PlayListFormats/libm3uplaylistformat.so
100
lib/qmmp/PlayListFormats/libm3uplaylistformat.so
101
lib/qmmp/PlayListFormats/libplsplaylistformat.so
101
lib/qmmp/PlayListFormats/libplsplaylistformat.so
102
lib/qmmp/PlayListFormats/libxspfplaylistformat.so
102
lib/qmmp/PlayListFormats/libxspfplaylistformat.so
(-)multimedia/qmmp-plugin-pack/Makefile (-44 / +19 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	qmmp-plugin-pack
3
PORTNAME=	qmmp-plugin-pack
4
PORTVERSION=	0.7.2
4
PORTVERSION=	0.7.3
5
CATEGORIES=	multimedia
5
CATEGORIES=	multimedia
6
MASTER_SITES=	http://qmmp.ylsoftware.com/files/plugins/ \
6
MASTER_SITES=	http://qmmp.ylsoftware.com/files/plugins/ \
7
		http://qmmp.googlecode.com/files/
7
		http://qmmp.googlecode.com/files/
Lines 19-83 Link Here
19
USE_QT4=	corelib gui qmake_build rcc_build moc_build linguist_build
19
USE_QT4=	corelib gui qmake_build rcc_build moc_build linguist_build
20
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
21
21
22
OPTIONS_SUB=	yes
22
OPTIONS_DEFINE=	FFAP MPG123 QSUI
23
OPTIONS_DEFINE=	FFAP MPG123 QSUI
23
OPTIONS_DEFAULT=	FFAP MPG123 QSUI
24
OPTIONS_DEFAULT=	FFAP MPG123 QSUI
25
24
FFAP_DESC=		Support APE sound file
26
FFAP_DESC=		Support APE sound file
25
MPG123_DESC=	Support libmpg123 (MPEG v1/2 layer1/2/3)
27
FFAP_LIB_DEPENDS=	libtag.so:${PORTSDIR}/audio/taglib
26
QSUI_DESC=		Simple UI based on standard widgets set
28
FFAP_CMAKE_ON=	-DUSE_FFAP:BOOL=TRUE
29
FFAP_CMAKE_OFF=	-DUSE_FFAP:BOOL=FALSE
27
OPTIONS_DEFINE_i386=	FFAPASM
30
OPTIONS_DEFINE_i386=	FFAPASM
28
OPTIONS_DEFAULT_i386=	FFAPASM
31
OPTIONS_DEFAULT_i386=	FFAPASM
29
OPTIONS_DEFINE_amd64=	FFAPASM
32
OPTIONS_DEFINE_amd64=	FFAPASM
30
OPTIONS_DEFAULT_amd64=	FFAPASM
33
OPTIONS_DEFAULT_amd64=	FFAPASM
31
FFAPASM_DESC=	Optimize FFap decoder using devel/yasm
34
FFAPASM_DESC=	Optimize FFap decoder using devel/yasm
35
FFAPASM_BUILD_DEPENDS=	yasm:${PORTSDIR}/devel/yasm
36
FFAPASM_CMAKE_ON=	-DUSE_ASM:BOOL=TRUE
37
FFAPASM_CMAKE_OFF=	-DUSE_ASM:BOOL=FALSE
32
38
33
NO_STAGE=	yes
39
MPG123_LIB_DEPENDS=	libmpg123.so:${PORTSDIR}/audio/mpg123
34
.include <bsd.port.options.mk>
40
MPG123_USE=	QT4=uic_build
41
MPG123_CMAKE_ON=	-DUSE_MPG123:BOOL=TRUE
42
MPG123_CMAKE_OFF=	-DUSE_MPG123:BOOL=FALSE
35
43
36
.if ${PORT_OPTIONS:MQSUI}
44
QSUI_DESC=		Simple UI based on standard widgets set
37
USE_QT4+=	network
45
QSUI_USE=	QT4=network,uic_build
38
PLIST_SUB+=	QSUI=""
46
QSUI_CMAKE_ON=	-DUSE_QSUI:BOOL=TRUE
39
PLUGIN_OPTIONS_CMAKE+=	-DUSE_QSUI:BOOL=TRUE
47
QSUI_CMAKE_OFF=	-DUSE_QSUI:BOOL=FALSE
40
.else
41
PLIST_SUB+=	QSUI="@comment "
42
PLUGIN_OPTIONS_CMAKE+=	-DUSE_QSUI:BOOL=FALSE
43
.endif
44
48
45
.if ${PORT_OPTIONS:MMPG123}
46
PLIST_SUB+=	MPG123=""
47
LIB_DEPENDS+=	libmpg123.so:${PORTSDIR}/audio/mpg123
48
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPG123:BOOL=TRUE
49
.else
50
PLIST_SUB+=	MPG123="@comment "
51
PLUGIN_OPTIONS_CMAKE+=	-DUSE_MPG123:BOOL=FALSE
52
.endif
53
54
.include <bsd.port.pre.mk>
49
.include <bsd.port.pre.mk>
55
50
56
.if ${PORT_OPTIONS:MFFAP}
51
CMAKE_ARGS+=	-DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
57
PLIST_SUB+=	FFAP=""
58
. if (${ARCH} == i386 || ${ARCH} == amd64) && ${PORT_OPTIONS:MFFAPASM}
59
BUILD_DEPENDS+=	yasm:${PORTSDIR}/devel/yasm
60
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ASM:BOOL=TRUE
61
. else
62
PLUGIN_OPTIONS_CMAKE+=	-DUSE_ASM:BOOL=FALSE
63
. endif
64
LIB_DEPENDS+=	libtag.so:${PORTSDIR}/audio/taglib
65
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FFAP:BOOL=TRUE
66
.else
67
PLIST_SUB+=	FFAP="@comment "
68
PLUGIN_OPTIONS_CMAKE+=	-DUSE_FFAP:BOOL=FALSE
69
.endif
70
71
.if ${PORT_OPTIONS:MQSUI} || ${PORT_OPTIONS:MMPG123}
72
USE_QT4+=	uic_build
73
.endif
74
75
CMAKE_ARGS+=	${PLUGIN_OPTIONS_CMAKE} \
76
	-DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
77
CFLAGS+=	-I${LOCALBASE}/include
52
CFLAGS+=	-I${LOCALBASE}/include
78
LDFLAGS+=	-L${LOCALBASE}/lib
53
LDFLAGS+=	-L${LOCALBASE}/lib
79
54
80
pre-configure:
55
pre-configure:
81
	${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
56
	@${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
82
57
83
.include <bsd.port.post.mk>
58
.include <bsd.port.post.mk>
(-)multimedia/qmmp-plugin-pack/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (qmmp-plugin-pack-0.7.2.tar.bz2) = ff35e1576aa91082496433c4ea22984469eb7810ec0ab7a1d99a7510066cad2d
1
SHA256 (qmmp-plugin-pack-0.7.3.tar.bz2) = fd07f480a5b1affdd4c82a49c27a00c3cddfa58f7cc8e9081b8e35c4518ae4b2
2
SIZE (qmmp-plugin-pack-0.7.2.tar.bz2) = 135630
2
SIZE (qmmp-plugin-pack-0.7.3.tar.bz2) = 135705

Return to bug 183919