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