summaryrefslogtreecommitdiffstats
path: root/rules/gst-plugins-base.make
blob: c7a8dc29ebdabdb2c36e1a90c475f4a63492d9f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
# -*-makefile-*-
#
# Copyright (C) 2008 by Robert Schwebel
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_GST_PLUGINS_BASE) += gst-plugins-base

#
# Paths and names
#
GST_PLUGINS_BASE_VERSION	:= 0.10.34
GST_PLUGINS_BASE_MD5		:= a8db3791c8b119d9cf109b8e18fb8fe9
GST_PLUGINS_BASE		:= gst-plugins-base-$(GST_PLUGINS_BASE_VERSION)
GST_PLUGINS_BASE_SUFFIX		:= tar.bz2
GST_PLUGINS_BASE_URL		:= http://gstreamer.freedesktop.org/src/gst-plugins-base/$(GST_PLUGINS_BASE).$(GST_PLUGINS_BASE_SUFFIX)
GST_PLUGINS_BASE_SOURCE		:= $(SRCDIR)/$(GST_PLUGINS_BASE).$(GST_PLUGINS_BASE_SUFFIX)
GST_PLUGINS_BASE_DIR		:= $(BUILDDIR)/$(GST_PLUGINS_BASE)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(GST_PLUGINS_BASE_SOURCE):
	@$(call targetinfo)
	@$(call get, GST_PLUGINS_BASE)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
GST_PLUGINS_BASE_AUTOCONF = \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_LARGE_FILE_OPTION) \
	$(GSTREAMER_GENERIC_CONF_OPT) \
	--enable-external \
	--disable-experimental \
	--disable-introspection \
	--disable-oggtest \
	--disable-vorbistest \
	--disable-freetypetest \
	--enable-Bsymbolic

# --with-plugins=foo,bar,baz only works for depencyless plugins and
# when no plugins are given it falls back to its default which is
# to enable all plugins, so --with-plugins is useless for us.

ifdef PTXCONF_GST_PLUGINS_BASE_ADDER
GST_PLUGINS_BASE_AUTOCONF += --enable-adder
else
GST_PLUGINS_BASE_AUTOCONF += --disable-adder
endif
ifdef PTXCONF_GST_PLUGINS_BASE_APP
GST_PLUGINS_BASE_AUTOCONF += --enable-app
else
GST_PLUGINS_BASE_AUTOCONF += --disable-app
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIOCONVERT
GST_PLUGINS_BASE_AUTOCONF += --enable-audioconvert
else
GST_PLUGINS_BASE_AUTOCONF += --disable-audioconvert
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIORATE
GST_PLUGINS_BASE_AUTOCONF += --enable-audiorate
else
GST_PLUGINS_BASE_AUTOCONF += --disable-audiorate
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIOTESTSRC
GST_PLUGINS_BASE_AUTOCONF += --enable-audiotestsrc
else
GST_PLUGINS_BASE_AUTOCONF += --disable-audiotestsrc
endif
ifdef PTXCONF_GST_PLUGINS_BASE_ENCODING
GST_PLUGINS_BASE_AUTOCONF += --enable-encoding
else
GST_PLUGINS_BASE_AUTOCONF += --disable-encoding
endif
ifdef PTXCONF_GST_PLUGINS_BASE_FFMPEGCOLORSPACE
GST_PLUGINS_BASE_AUTOCONF += --enable-ffmpegcolorspace
else
GST_PLUGINS_BASE_AUTOCONF += --disable-ffmpegcolorspace
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GDP
GST_PLUGINS_BASE_AUTOCONF += --enable-gdp
else
GST_PLUGINS_BASE_AUTOCONF += --disable-gdp
endif
ifdef PTXCONF_GST_PLUGINS_BASE_PLAYBACK
GST_PLUGINS_BASE_AUTOCONF += --enable-playback
else
GST_PLUGINS_BASE_AUTOCONF += --disable-playback
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIORESAMPLE
GST_PLUGINS_BASE_AUTOCONF += --enable-audioresample
else
GST_PLUGINS_BASE_AUTOCONF += --disable-audioresample
endif
ifdef PTXCONF_GST_PLUGINS_BASE_SUBPARSE
GST_PLUGINS_BASE_AUTOCONF += --enable-subparse
else
GST_PLUGINS_BASE_AUTOCONF += --disable-subparse
endif
ifdef PTXCONF_GST_PLUGINS_BASE_TCP
GST_PLUGINS_BASE_AUTOCONF += --enable-tcp
else
GST_PLUGINS_BASE_AUTOCONF += --disable-tcp
endif
ifdef PTXCONF_GST_PLUGINS_BASE_TYPEFIND
GST_PLUGINS_BASE_AUTOCONF += --enable-typefind
else
GST_PLUGINS_BASE_AUTOCONF += --disable-typefind
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VIDEOTESTSRC
GST_PLUGINS_BASE_AUTOCONF += --enable-videotestsrc
else
GST_PLUGINS_BASE_AUTOCONF += --disable-videotestsrc
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VIDEORATE
GST_PLUGINS_BASE_AUTOCONF += --enable-videorate
else
GST_PLUGINS_BASE_AUTOCONF += --disable-videorate
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VIDEOSCALE
GST_PLUGINS_BASE_AUTOCONF += --enable-videoscale
else
GST_PLUGINS_BASE_AUTOCONF += --disable-videoscale
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VOLUME
GST_PLUGINS_BASE_AUTOCONF += --enable-volume
else
GST_PLUGINS_BASE_AUTOCONF += --disable-volume
endif
ifdef PTXCONF_GST_PLUGINS_BASE_ISO_CODES
GST_PLUGINS_BASE_AUTOCONF += --enable-iso-codes
else
GST_PLUGINS_BASE_AUTOCONF += --disable-iso-codes
endif
ifdef PTXCONF_GST_PLUGINS_BASE_X
GST_PLUGINS_BASE_AUTOCONF += --enable-x
GST_PLUGINS_BASE_AUTOCONF += --with-x=$(SYSROOT)/usr
else
GST_PLUGINS_BASE_AUTOCONF += --disable-x
GST_PLUGINS_BASE_AUTOCONF += --without-x
endif
ifdef PTXCONF_GST_PLUGINS_BASE_XVIDEO
GST_PLUGINS_BASE_AUTOCONF += --enable-xvideo
else
GST_PLUGINS_BASE_AUTOCONF += --disable-xvideo
endif
ifdef PTXCONF_GST_PLUGINS_BASE_XSHM
GST_PLUGINS_BASE_AUTOCONF += --enable-xshm
else
GST_PLUGINS_BASE_AUTOCONF += --disable-xshm
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GST_V4L
GST_PLUGINS_BASE_AUTOCONF += --enable-gst_v4l --with-gudev
else
GST_PLUGINS_BASE_AUTOCONF += --disable-gst_v4l --without-gudev
endif
ifdef PTXCONF_GST_PLUGINS_BASE_ALSA
GST_PLUGINS_BASE_AUTOCONF += --enable-alsa
else
GST_PLUGINS_BASE_AUTOCONF += --disable-alsa
endif
ifdef PTXCONF_GST_PLUGINS_BASE_CDPARANOIA
GST_PLUGINS_BASE_AUTOCONF += --enable-cdparanoia
else
GST_PLUGINS_BASE_AUTOCONF += --disable-cdparanoia
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GNOME_VFS
GST_PLUGINS_BASE_AUTOCONF += --enable-gnome_vfs
else
GST_PLUGINS_BASE_AUTOCONF += --disable-gnome_vfs
endif
ifdef PTXCONF_GST_PLUGINS_BASE_IVORBIS
GST_PLUGINS_BASE_AUTOCONF += --enable-ivorbis
else
GST_PLUGINS_BASE_AUTOCONF += --disable-ivorbis
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GIO
GST_PLUGINS_BASE_AUTOCONF += --enable-gio
else
GST_PLUGINS_BASE_AUTOCONF += --disable-gio
endif
ifdef PTXCONF_GST_PLUGINS_BASE_LIBVISUAL
GST_PLUGINS_BASE_AUTOCONF += --enable-libvisual
else
GST_PLUGINS_BASE_AUTOCONF += --disable-libvisual
endif
ifdef PTXCONF_GST_PLUGINS_BASE_OGG
GST_PLUGINS_BASE_AUTOCONF += --enable-ogg
else
GST_PLUGINS_BASE_AUTOCONF += --disable-ogg
endif
ifdef PTXCONF_GST_PLUGINS_BASE_PANGO
GST_PLUGINS_BASE_AUTOCONF += --enable-pango
else
GST_PLUGINS_BASE_AUTOCONF += --disable-pango
endif
ifdef PTXCONF_GST_PLUGINS_BASE_THEORA
GST_PLUGINS_BASE_AUTOCONF += --enable-theora
else
GST_PLUGINS_BASE_AUTOCONF += --disable-theora
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VORBIS
GST_PLUGINS_BASE_AUTOCONF += --enable-vorbis
else
GST_PLUGINS_BASE_AUTOCONF += --disable-vorbis
endif

# --enable-introspection=[no/auto/yes] Enable introspection for this build
# --with-plugins          comma-separated list of dependencyless plug-ins to compile

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/gst-plugins-base.targetinstall:
	@$(call targetinfo)

	@$(call install_init,  gst-plugins-base)
	@$(call install_fixup, gst-plugins-base,PRIORITY,optional)
	@$(call install_fixup, gst-plugins-base,SECTION,base)
	@$(call install_fixup, gst-plugins-base,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, gst-plugins-base,DESCRIPTION,missing)

	@$(call install_copy, gst-plugins-base, 0, 0, 0755, \
		$(PKGDIR)/$(GST_PLUGINS_BASE)/usr/bin/gst-visualise-0.10, \
		/usr/bin/gst-visualise)

	# install all activated libs
	@cd $(GST_PLUGINS_BASE_PKGDIR)/usr/lib/ && for libs in `find -name "*-0.10.so" -printf '%f\n'`; do \
		$(call install_lib, gst-plugins-base, 0, 0, 0644, $${libs%.so}); \
	done

ifdef PTXCONF_GST_PLUGINS_BASE_APP
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstapp.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_ADDER
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstadder.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIOCONVERT
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstaudioconvert.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIORATE
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstaudiorate.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIORESAMPLE
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstaudioresample.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_AUDIOTESTSRC
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstaudiotestsrc.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_DECODEBIN
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstdecodebin.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_DECODEBIN_2
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstdecodebin2.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_FFMPEGCOLORSPACE
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GDP
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstgdp.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_PLAYBACK
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstplaybin.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_SUBPARSE
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstsubparse.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_TCP
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgsttcp.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_TYPEFIND
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgsttypefindfunctions.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VIDEOTESTSRC
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstvideotestsrc.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VIDEORATE
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstvideorate.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VIDEOSCALE
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstvideoscale.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VOLUME
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstvolume.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_X
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstximagesink.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_XVIDEO
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstxvimagesink.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GST_V4L
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstvideo4linux.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_ALSA
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstalsa.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_CDPARANOIA
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstcdparanoia.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GNOME_VFS
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstgnomevfs.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_GIO
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstgio.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_LIBVISUAL
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstlibvisual.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_OGG
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstogg.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_PANGO
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstpango.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_THEORA
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgsttheora.so)
endif
ifdef PTXCONF_GST_PLUGINS_BASE_VORBIS
	@$(call install_copy, gst-plugins-base, 0, 0, 0644, -, \
		/usr/lib/gstreamer-0.10/libgstvorbis.so)
endif
	@$(call install_finish, gst-plugins-base)

	@$(call touch)

# vim: syntax=make