]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/gstreamer/gst-plugins-base/gst-plugins-base.mk
e1374ed801502c8d35eadf8ece452888bdd62866
[coffee/buildroot.git] / package / gstreamer / gst-plugins-base / gst-plugins-base.mk
1 ################################################################################
2 #
3 # gst-plugins-base
4 #
5 ################################################################################
6
7 GST_PLUGINS_BASE_VERSION = 0.10.36
8 GST_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST_PLUGINS_BASE_VERSION).tar.xz
9 GST_PLUGINS_BASE_SITE = http://gstreamer.freedesktop.org/src/gst-plugins-base
10 GST_PLUGINS_BASE_INSTALL_STAGING = YES
11 GST_PLUGINS_BASE_LICENSE = GPLv2+, LGPLv2+
12 GST_PLUGINS_BASE_LICENSE_FILES = COPYING COPYING.LIB
13
14 # freetype is only used by examples, but if it is not found
15 # and the host has a freetype-config script, then the host
16 # include dirs are added to the search path causing trouble
17 GST_PLUGINS_BASE_CONF_ENV =
18                 FT2_CONFIG=/bin/false \
19                 ac_cv_header_stdint_t="stdint.h"
20
21 GST_PLUGINS_BASE_CONF_OPTS = \
22         --disable-examples \
23         --disable-oggtest \
24         --disable-vorbistest \
25         --disable-freetypetest
26
27 GST_PLUGINS_BASE_DEPENDENCIES = gstreamer
28
29 ifeq ($(BR2_PACKAGE_XORG7),y)
30 GST_PLUGINS_BASE_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXv
31 GST_PLUGINS_BASE_CONF_OPTS += \
32         --enable-x \
33         --enable-xshm \
34         --enable-xvideo
35 else
36 GST_PLUGINS_BASE_CONF_OPTS += \
37         --disable-x \
38         --disable-xshm \
39         --disable-xvideo
40 endif
41
42 ifeq ($(BR2_PACKAGE_ORC),y)
43 GST_PLUGINS_BASE_DEPENDENCIES += orc
44 endif
45
46 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA),y)
47 GST_PLUGINS_BASE_DEPENDENCIES += alsa-lib
48 else
49 GST_PLUGINS_BASE_CONF_OPTS += --disable-alsa
50 endif
51
52 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ADDER),y)
53 GST_PLUGINS_BASE_CONF_OPTS += --enable-adder
54 else
55 GST_PLUGINS_BASE_CONF_OPTS += --disable-adder
56 endif
57
58 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_APP),y)
59 GST_PLUGINS_BASE_CONF_OPTS += --enable-app
60 else
61 GST_PLUGINS_BASE_CONF_OPTS += --disable-app
62 endif
63
64 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_AUDIOCONVERT),y)
65 GST_PLUGINS_BASE_CONF_OPTS += --enable-audioconvert
66 else
67 GST_PLUGINS_BASE_CONF_OPTS += --disable-audioconvert
68 endif
69
70 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_AUDIORATE),y)
71 GST_PLUGINS_BASE_CONF_OPTS += --enable-audiorate
72 else
73 GST_PLUGINS_BASE_CONF_OPTS += --disable-audiorate
74 endif
75
76 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_AUDIORESAMPLE),y)
77 GST_PLUGINS_BASE_CONF_OPTS += --enable-audioresample
78 else
79 GST_PLUGINS_BASE_CONF_OPTS += --disable-audioresample
80 endif
81
82 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_AUDIOTESTSRC),y)
83 GST_PLUGINS_BASE_CONF_OPTS += --enable-audiotestsrc
84 else
85 GST_PLUGINS_BASE_CONF_OPTS += --disable-audiotestsrc
86 endif
87
88 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ENCODING),y)
89 GST_PLUGINS_BASE_CONF_OPTS += --enable-encoding
90 else
91 GST_PLUGINS_BASE_CONF_OPTS += --disable-encoding
92 endif
93
94 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_FFMPEGCOLORSPACE),y)
95 GST_PLUGINS_BASE_CONF_OPTS += --enable-ffmpegcolorspace
96 else
97 GST_PLUGINS_BASE_CONF_OPTS += --disable-ffmpegcolorspace
98 endif
99
100 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_GDP),y)
101 GST_PLUGINS_BASE_CONF_OPTS += --enable-gdp
102 else
103 GST_PLUGINS_BASE_CONF_OPTS += --disable-gdp
104 endif
105
106 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_PLAYBACK),y)
107 GST_PLUGINS_BASE_CONF_OPTS += --enable-playback
108 else
109 GST_PLUGINS_BASE_CONF_OPTS += --disable-playback
110 endif
111
112 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_SUBPARSE),y)
113 GST_PLUGINS_BASE_CONF_OPTS += --enable-subparse
114 else
115 GST_PLUGINS_BASE_CONF_OPTS += --disable-subparse
116 endif
117
118 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_TCP),y)
119 GST_PLUGINS_BASE_CONF_OPTS += --enable-tcp
120 else
121 GST_PLUGINS_BASE_CONF_OPTS += --disable-tcp
122 endif
123
124 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_TYPEFIND),y)
125 GST_PLUGINS_BASE_CONF_OPTS += --enable-typefind
126 else
127 GST_PLUGINS_BASE_CONF_OPTS += --disable-typefind
128 endif
129
130 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VIDEOTESTSRC),y)
131 GST_PLUGINS_BASE_CONF_OPTS += --enable-videotestsrc
132 else
133 GST_PLUGINS_BASE_CONF_OPTS += --disable-videotestsrc
134 endif
135
136 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VIDEORATE),y)
137 GST_PLUGINS_BASE_CONF_OPTS += --enable-videorate
138 else
139 GST_PLUGINS_BASE_CONF_OPTS += --disable-videorate
140 endif
141
142 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VIDEOSCALE),y)
143 GST_PLUGINS_BASE_CONF_OPTS += --enable-videoscale
144 else
145 GST_PLUGINS_BASE_CONF_OPTS += --disable-videoscale
146 endif
147
148 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VOLUME),y)
149 GST_PLUGINS_BASE_CONF_OPTS += --enable-volume
150 else
151 GST_PLUGINS_BASE_CONF_OPTS += --disable-volume
152 endif
153
154 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_OGG),y)
155 GST_PLUGINS_BASE_CONF_OPTS += --enable-ogg
156 GST_PLUGINS_BASE_DEPENDENCIES += libogg
157 else
158 GST_PLUGINS_BASE_CONF_OPTS += --disable-ogg
159 endif
160
161 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_PANGO),y)
162 GST_PLUGINS_BASE_CONF_OPTS += --enable-pango
163 GST_PLUGINS_BASE_DEPENDENCIES += pango
164 else
165 GST_PLUGINS_BASE_CONF_OPTS += --disable-pango
166 endif
167
168 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_THEORA),y)
169 GST_PLUGINS_BASE_CONF_OPTS += --enable-theora
170 GST_PLUGINS_BASE_DEPENDENCIES += libtheora
171 else
172 GST_PLUGINS_BASE_CONF_OPTS += --disable-theora
173 endif
174
175 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_TREMOR),y)
176 GST_PLUGINS_BASE_CONF_OPTS += --enable-ivorbis
177 GST_PLUGINS_BASE_DEPENDENCIES += tremor
178 else
179 GST_PLUGINS_BASE_CONF_OPTS += --disable-ivorbis
180 endif
181
182 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VORBIS),y)
183 GST_PLUGINS_BASE_CONF_OPTS += --enable-vorbis
184 GST_PLUGINS_BASE_DEPENDENCIES += libvorbis
185 else
186 GST_PLUGINS_BASE_CONF_OPTS += --disable-vorbis
187 endif
188
189 ifeq ($(BR2_PACKAGE_ZLIB),y)
190 GST_PLUGINS_BASE_DEPENDENCIES += zlib
191 else
192 GST_PLUGINS_BASE_CONF_OPTS += --disable-zlib
193 endif
194
195 $(eval $(autotools-package))