Update editors/libreoffice-sq to version 5.2.5
[dports.git] / Mk / bsd.gstreamer.mk
1 #-*- tab-width: 4; -*-
2 # ex:ts=4
3 #
4 # bsd.gstreamer.mk - Support for gstreamer-plugins-based ports.
5 #
6 # Created by: Michael Johnson <ahze@FreeBSD.org>
7 #
8 # $FreeBSD$
9 #    $MCom: ports/Mk/bsd.gstreamer.mk,v 1.56 2013/01/15 21:43:45 kwm Exp $
10
11 .if !defined(_POSTMKINCLUDED) && !defined(Gstreamer_Pre_Include)
12
13 Gstreamer_Include_MAINTAINER=   multimedia@FreeBSD.org
14 Gstreamer_Pre_Include=          bsd.gstreamer.mk
15
16 .endif
17
18 # Ports can use the following:
19 #
20 # For Gstreamer 0.10:
21 #   USE_GSTREAMER=      lame faac ffmpeg
22 #
23 # For Gstreamer 1.x the same rules apply but instead of 
24 #   USE_GSTREAMER=, USE_GSTREAMER1= is used.
25 #
26 # If you want to use USE_GSTREAMER after <bsd.port.pre.mk>
27 # you must follow one of the examples listed below
28 #
29 #       .include <bsd.port.options.mk>
30 #       .if defined(WITH_VORBIS)
31 #       USE_GSTREAMER=  vorbis
32 #       .endif
33 #
34 # or
35 #       USE_GSTREAMER=  yes
36 #       .include <bsd.port.options.mk>
37 #       .if defined(WITH_FAAD)
38 #       USE_GSTREAMER+= faad
39 #       .endif
40 #       .include <bsd.port.pre.mk>
41 #
42 #       USE_GSTREAMER=yes will always add a dependency to
43 #               gstreamer-plugins
44 #
45 #       The use of WANT_GSTREAMER=yes should be discouraged.
46 #
47 # "Normal" dependencies and variables
48 #
49
50 GSTREAMER_PORT=         ${PORTSDIR}/multimedia/gstreamer-plugins
51 _GST_LIB_BASE=          ${LOCALBASE}/lib/gstreamer-${GST_VERSION}
52 GST_VERSION=            0.10
53 GST_MINOR_VERSION=      .0
54 GST_SHLIB_VERSION=      1
55
56 GSTREAMER1_PORT=        ${PORTSDIR}/multimedia/gstreamer1-plugins
57 _GST1_LIB_BASE=         ${LOCALBASE}/lib/gstreamer-${GST1_VERSION}
58 GST1_VERSION=           1.4
59 GST1_MINOR_VERSION=     .0
60 GST1_SHLIB_VERSION=     0
61 GST1_MINIMAL_VERSION=   .0
62
63 #
64 # missing base: alsa ivorbisdec
65 # missing good: -
66 # missing ugly: -
67 # missing bad: openal
68
69 # These are the current supported gstreamer-plugins modules:
70 # Supported plugins by both 0.10 and 1.0.
71 _GSTREAMER_PLUGINS= \
72                 a52dec aalib amrnb amrwbdec cairo cdio \
73                 cdparanoia dts dv faac faad flac flite \
74                 gdkpixbuf gl gme gnonlin gsm jack jpeg lame libcaca \
75                 libmms libvisual mad mpeg2dec mpeg2enc neon ogg \
76                 opencv opus pango resindvd schroedinger \
77                 shout2 sidplay soundtouch soup speex taglib \
78                 theora twolame v4l2 vorbis wavpack x264
79
80 # plugins only in 0.10
81 .if defined(USE_GSTREAMER)
82 _GSTREAMER_PLUGINS+= \
83                 annodex bz2 cdaudio dvd esound ffmpeg fluendo-mp3 \
84                 fluendo-mpegdemux gconf gio gnomevfs hal \
85                 ladspa libpng mm mp3 musepack nas python qt4 \
86                 sdl sndfile spc vdpau vp8 xvid
87 .endif
88
89 # plugins only in 1.0
90 .if defined(USE_GSTREAMER1)
91 _GSTREAMER_PLUGINS+= \
92                 assrender bs2b chromaprint curl dtls dvdread editing-services \
93                 gtksink hls kate libav libde265 modplug mpg123 openh264 openjpeg \
94                 png rsvg rtmp spandsp vpx webp x x265 ximagesrc zbar
95 # vaapi?
96 .endif
97
98 # other plugins
99 _USE_GSTREAMER_ALL=     bad core good ugly yes ${_GSTREAMER_PLUGINS}
100
101 #--------------------------------------------------------------------------#
102
103 core_DEPENDS=   multimedia/gstreamer-plugins-core
104
105 yes_DEPENDS=    multimedia/gstreamer-plugins
106 yes_NAME=       gstreamer-plugins
107 yes_NAME10=     gstreamer1-plugins
108 yes_GST_PREFIX= # empty
109
110 #-- audio plugins section -------------------------------------------------#
111
112 # Audio Plugins Section
113 a52dec_DEPENDS= audio/gstreamer-plugins-a52dec
114
115 amrnb_DEPENDS=  audio/gstreamer-plugins-amrnb
116
117 amrwbdec_DEPENDS=       audio/gstreamer-plugins-amrwbdec
118
119 artsd_DEPENDS=  audio/gstreamer-plugins-artsd
120
121 audiofile_DEPENDS=      audio/gstreamer-plugins-audiofile
122
123 bs2b_DEPENDS=   audio/gstreamer-plugins-bs2b
124
125 cdaudio_DEPENDS=        audio/gstreamer-plugins-cdaudio
126
127 cdparanoia_DEPENDS=     audio/gstreamer-plugins-cdparanoia
128
129 chromaprint_DEPENDS=    audio/gstreamer-plugins-chromaprint
130
131 esound_DEPENDS= audio/gstreamer-plugins-esound
132
133 faac_DEPENDS=   audio/gstreamer-plugins-faac
134
135 faad_DEPENDS=   audio/gstreamer-plugins-faad
136
137 flac_DEPENDS=   audio/gstreamer-plugins-flac
138
139 flite_DEPENDS=  audio/gstreamer-plugins-flite
140
141 fluendo-mp3_DEPENDS=    audio/gstreamer-plugins-fluendo-mp3
142
143 gme_DEPENDS=    audio/gstreamer-plugins-gme
144
145 gsm_DEPENDS=    audio/gstreamer-plugins-gsm
146
147 hal_DEPENDS=    sysutils/gstreamer-plugins-hal
148
149 jack_DEPENDS=   audio/gstreamer-plugins-jack
150
151 ladspa_DEPENDS= audio/gstreamer-plugins-ladspa
152
153 lame_DEPENDS=   audio/gstreamer-plugins-lame
154
155 mad_DEPENDS=    audio/gstreamer-plugins-mad
156
157 mikmod_DEPENDS= audio/gstreamer-plugins-mikmod
158
159 modplug_DEPENDS=        audio/gstreamer-plugins-modplug
160
161 mp3_DEPENDS=    audio/gstreamer-plugins-mp3
162
163 mpg123_DEPENDS= audio/gstreamer-plugins-mpg123
164
165 musepack_DEPENDS=       audio/gstreamer-plugins-musepack
166
167 nas_DEPENDS=    audio/gstreamer-plugins-nas
168
169 neon_DEPENDS=   www/gstreamer-plugins-neon
170
171 ogg_DEPENDS=    audio/gstreamer-plugins-ogg
172
173 opus_DEPENDS=   audio/gstreamer-plugins-opus
174
175 polyp_DEPENDS=  audio/gstreamer-plugins-polyp
176
177 pulse_DEPENDS=  audio/gstreamer-plugins-pulse
178
179 shout_DEPENDS=  audio/gstreamer-plugins-shout
180
181 shout2_DEPENDS= audio/gstreamer-plugins-shout2
182
183 sidplay_DEPENDS=        audio/gstreamer-plugins-sidplay
184
185 smoothwave_DEPENDS=     audio/gstreamer-plugins-smoothwave
186
187 sndfile_DEPENDS=        audio/gstreamer-plugins-sndfile
188
189 soundtouch_DEPENDS=     audio/gstreamer-plugins-soundtouch
190
191 spc_DEPENDS=    audio/gstreamer-plugins-spc
192
193 speex_DEPENDS=  audio/gstreamer-plugins-speex
194
195 taglib_DEPENDS= audio/gstreamer-plugins-taglib
196
197 twolame_DEPENDS=        audio/gstreamer-plugins-twolame
198
199 vorbis_DEPENDS= audio/gstreamer-plugins-vorbis
200
201 wavpack_DEPENDS=        audio/gstreamer-plugins-wavpack
202
203 #-- comms plugin section --------------------------------------------------#
204
205 spandsp_DEPENDS=        comms/gstreamer-plugins-spandsp
206
207 #-- devel plugin section --------------------------------------------------#
208
209 gconf_DEPENDS=  devel/gstreamer-plugins-gconf
210
211 gio_DEPENDS=    devel/gstreamer-plugins-gio
212
213 gnomevfs_DEPENDS=       devel/gstreamer-plugins-gnomevfs
214
215 sdl_DEPENDS=    devel/gstreamer-plugins-sdl
216
217 soup_DEPENDS=   devel/gstreamer-plugins-soup
218
219 #-- ftp plugin section ----------------------------------------------------#
220
221 curl_DEPENDS=   ftp/gstreamer-plugins-curl
222
223 #-- graphics plugin section -----------------------------------------------#
224
225 aalib_DEPENDS=  graphics/gstreamer-plugins-aalib
226
227 annodex_DEPENDS=        multimedia/gstreamer-plugins-annodex
228
229 assrender_DEPENDS=      multimedia/gstreamer-plugins-assrender
230
231 cairo_DEPENDS=  graphics/gstreamer-plugins-cairo
232
233 gdkpixbuf_DEPENDS=      graphics/gstreamer-plugins-gdkpixbuf
234
235 gl_DEPENDS=             graphics/gstreamer-plugins-gl
236
237 hermes_DEPENDS= graphics/gstreamer-plugins-hermes
238
239 jpeg_DEPENDS=   graphics/gstreamer-plugins-jpeg
240
241 libcaca_DEPENDS=        graphics/gstreamer-plugins-libcaca
242
243 libmng_DEPENDS= graphics/gstreamer-plugins-libmng
244
245 libpng_DEPENDS= graphics/gstreamer-plugins-libpng
246
247 libvisual_DEPENDS=      graphics/gstreamer-plugins-libvisual
248
249 opencv_DEPENDS= graphics/gstreamer-plugins-opencv
250
251 openjpeg_DEPENDS=       graphics/gstreamer-plugins-openjpeg
252
253 png_DEPENDS=    graphics/gstreamer-plugins-png
254
255 rsvg_DEPENDS=   graphics/gstreamer-plugins-rsvg
256
257 webp_DEPENDS=   graphics/gstreamer-plugins-webp
258
259 zbar_DEPENDS=   graphics/gstreamer-plugins-zbar
260
261 #-- multimedia plugins section --------------------------------------------#
262
263 bad_DEPENDS=    multimedia/gstreamer-plugins-bad
264
265 bz2_DEPENDS=    multimedia/gstreamer-plugins-bz2
266
267 dvdread_DEPENDS=        multimedia/gstreamer-plugins-dvdread
268
269 editing-services_DEPENDS=       multimedia/gstreamer-editing-services
270 editing-services_GST_PREFIX=    gstreamer1-
271 editing-services_GST_SUFX=      # empty
272 editing-services_GST_VERSION=   1.0.0
273
274 ffmpeg_DEPENDS= multimedia/gstreamer-ffmpeg
275 ffmpeg_GST_PREFIX=      gstreamer-
276 ffmpeg_GST_SUFX=        # empty
277 ffmpeg_GST_VERSION=     0.10.0
278
279 fluendo-mpegdemux_DEPENDS=      multimedia/gstreamer-plugins-fluendo-mpegdemux
280
281 dts_DEPENDS=    multimedia/gstreamer-plugins-dts
282
283 dv_DEPENDS=     multimedia/gstreamer-plugins-dv
284
285 dvd_DEPENDS=    multimedia/gstreamer-plugins-dvd
286
287 good_DEPENDS=   multimedia/gstreamer-plugins-good
288
289 gnonlin_DEPENDS=        multimedia/gstreamer-plugins-gnonlin
290
291 hls_DEPENDS=    multimedia/gstreamer-plugins-hls
292
293 kate_DEPENDS=           multimedia/gstreamer-plugins-kate
294
295 libav_DEPENDS=          multimedia/gstreamer-libav
296 libav_GST_PREFIX=       gstreamer1-
297 libav_GST_SUFX=         # empty
298 libav_GST_VERSION=      1.0.0
299
300 libde265_DEPENDS=       multimedia/gstreamer-plugins-libde265
301
302 libfame_DEPENDS=        multimedia/gstreamer-plugins-libfame
303
304 mm_DEPENDS=     multimedia/gstreamermm
305 mm_GST_PREFIX=  gstreamer
306 mm_GST_SUFX=    # empty
307 mm_GST_VERSION= 0.9.4
308
309 mpeg2dec_DEPENDS=       multimedia/gstreamer-plugins-mpeg2dec
310
311 mpeg2enc_DEPENDS=       multimedia/gstreamer-plugins-mpeg2enc
312
313 mplex_DEPENDS=  multimedia/gstreamer-plugins-mplex
314
315 openh264_DEPENDS=       multimedia/gstreamer-plugins-openh264
316
317 qt4_DEPENDS=    multimedia/gstreamer-qt4
318 qt4_GST_PREFIX= gstreamer-
319
320 rtmp_DEPENDS=   multimedia/gstreamer1-plugins-rtmp
321
322 v4l2_DEPENDS=   multimedia/gstreamer-plugins-v4l2
323
324 vaapi_DEPENDS=  multimedia/gstreamer-plugins-vaapi
325
326 vp8_DEPENDS=    multimedia/gstreamer-plugins-vp8
327
328 vpx_DEPENDS=    multimedia/gstreamer-plugins-vpx
329
330 # XXX: This is a quick solution for ports with USE_GSTREAMER=python
331 #      but without USE_PYTHON.
332 PYTHON_PKGNAMEPREFIX?=  py*-
333
334 python_DEPENDS= multimedia/py-gstreamer
335 python_NAME=    gstreamer
336 python_GST_PREFIX=      ${PYTHON_PKGNAMEPREFIX}
337 python_GST_SUFX=        # empty
338 python_GST_VERSION=     0.10.4
339
340 resindvd_DEPENDS=       multimedia/gstreamer-plugins-resindvd
341
342 schroedinger_DEPENDS=   multimedia/gstreamer-plugins-schroedinger
343
344 theora_DEPENDS= multimedia/gstreamer-plugins-theora
345
346 ugly_DEPENDS=   multimedia/gstreamer-plugins-ugly
347
348 vdpau_DEPENDS=  multimedia/gstreamer-plugins-vdpau
349
350 x264_DEPENDS=   multimedia/gstreamer-plugins-x264
351
352 x265_DEPENDS=   multimedia/gstreamer-plugins-x265
353
354 xvid_DEPENDS=   multimedia/gstreamer-plugins-xvid
355
356
357 #-- Net Plugins Section ---------------------------------------------------#
358
359 libmms_DEPENDS= net/gstreamer-plugins-libmms
360
361 #-- security plugins section ----------------------------------------------#
362
363 dtls_DEPENDS=   security/gstreamer-plugins-dtls
364
365 #-- sysutils plugins section ----------------------------------------------#
366
367 cdio_DEPENDS=   sysutils/gstreamer-plugins-cdio
368
369 #-- x11 plugins section ---------------------------------------------------#
370
371 x_DEPENDS=      x11/gstreamer-plugins-x
372
373 ximagesrc_DEPENDS=      x11/gstreamer-plugins-ximagesrc
374
375 #-- x11-toolkits plugins section ------------------------------------------#
376
377 gtksink_DEPENDS=        x11-toolkits/gstreamer-plugins-gtksink
378
379 pango_DEPENDS=  x11-toolkits/gstreamer-plugins-pango
380
381 #--------------------------------------------------------------------------#
382
383 .if defined(_POSTMKINCLUDED) && !defined(Gstreamer_Post_Include)
384 Gstreamer_Post_Include= bsd.gstreamer.mk
385
386 .if (defined (USE_GSTREAMER) && defined(USE_GSTREAMER1))
387 IGNORE= USE_GSTREAMER and USE_GSTREAMER1 can't be used together
388 .endif
389
390 .if defined(USE_GSTREAMER)
391 .for ext in ${USE_GSTREAMER}
392 ${ext}_GST_PREFIX?=     gstreamer-plugins-
393 ${ext}_GST_VERSION?=    ${GST_VERSION}${GST_MINOR_VERSION}
394 ${ext}_NAME?=           ${ext}
395 . if ${_USE_GSTREAMER_ALL:M${ext}}!= "" && exists(${PORTSDIR}/${${ext}_DEPENDS})
396 BUILD_DEPENDS+= ${${ext}_GST_PREFIX}${${ext}_NAME}>=${${ext}_GST_VERSION}:${${ext}_DEPENDS}
397 RUN_DEPENDS+=   ${${ext}_GST_PREFIX}${${ext}_NAME}>=${${ext}_GST_VERSION}:${${ext}_DEPENDS}
398 . else
399 IGNORE= cannot install: unknown gstreamer ${GST_VERSION} plugin -- ${ext}
400 . endif
401 .endfor
402 .endif
403
404 .if defined(USE_GSTREAMER1)
405 .for ext in ${USE_GSTREAMER1}
406 ${ext}_GST_PREFIX?=     gstreamer1-plugins-
407 ${ext}_GST_VERSION?=    ${GST1_VERSION}${GST1_MINIMAL_VERSION}
408 ${ext}_NAME10?=         ${ext}
409 ${ext}_GST_DEPENDS?=    ${${ext}_DEPENDS:S,gstreamer-,gstreamer1-,}
410 . if ${_USE_GSTREAMER_ALL:M${ext}}!= "" && exists(${PORTSDIR}/${${ext}_GST_DEPENDS})
411 BUILD_DEPENDS+= ${${ext}_GST_PREFIX}${${ext}_NAME10}>=${${ext}_GST_VERSION}:${${ext}_GST_DEPENDS}
412 RUN_DEPENDS+=   ${${ext}_GST_PREFIX}${${ext}_NAME10}>=${${ext}_GST_VERSION}:${${ext}_GST_DEPENDS}
413 . else
414 IGNORE= cannot install: unknown gstreamer ${GST1_VERSION} plugin -- ${ext}
415 . endif
416 .endfor
417 .endif
418
419 # The End
420 .endif