board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / gstreamer1 / gst1-plugins-base / gst1-plugins-base.mk
blob6ab63a351291b6b5b3af2726f2186b9dcf349314
1 ################################################################################
3 # gst1-plugins-base
5 ################################################################################
7 GST1_PLUGINS_BASE_VERSION = 1.10.4
8 GST1_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST1_PLUGINS_BASE_VERSION).tar.xz
9 GST1_PLUGINS_BASE_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-base
10 GST1_PLUGINS_BASE_INSTALL_STAGING = YES
11 GST1_PLUGINS_BASE_LICENSE_FILES = COPYING.LIB
12 GST1_PLUGINS_BASE_LICENSE = LGPLv2+, LGPLv2.1+
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 GST1_PLUGINS_BASE_CONF_ENV =
18 FT2_CONFIG=/bin/false \
19 ac_cv_header_stdint_t="stdint.h"
21 # gio_unix_2_0 is only used for tests
22 GST1_PLUGINS_BASE_CONF_OPTS = \
23 --disable-examples \
24 --disable-oggtest \
25 --disable-vorbistest \
26 --disable-gio_unix_2_0 \
27 --disable-freetypetest \
28 --disable-valgrind
30 # Options which require currently unpackaged libraries
31 GST1_PLUGINS_BASE_CONF_OPTS += \
32 --disable-cdparanoia \
33 --disable-libvisual \
34 --disable-iso-codes
36 GST1_PLUGINS_BASE_DEPENDENCIES = gstreamer1
38 # These plugins are liste in the order from ./configure --help
40 ifeq ($(BR2_PACKAGE_ORC),y)
41 GST1_PLUGINS_BASE_DEPENDENCIES += orc
42 GST1_PLUGINS_BASE_CONF_OPTS += --enable-orc
43 endif
45 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ADDER),y)
46 GST1_PLUGINS_BASE_CONF_OPTS += --enable-adder
47 else
48 GST1_PLUGINS_BASE_CONF_OPTS += --disable-adder
49 endif
51 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP),y)
52 GST1_PLUGINS_BASE_CONF_OPTS += --enable-app
53 else
54 GST1_PLUGINS_BASE_CONF_OPTS += --disable-app
55 endif
57 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIOCONVERT),y)
58 GST1_PLUGINS_BASE_CONF_OPTS += --enable-audioconvert
59 else
60 GST1_PLUGINS_BASE_CONF_OPTS += --disable-audioconvert
61 endif
63 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIORATE),y)
64 GST1_PLUGINS_BASE_CONF_OPTS += --enable-audiorate
65 else
66 GST1_PLUGINS_BASE_CONF_OPTS += --disable-audiorate
67 endif
69 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIOTESTSRC),y)
70 GST1_PLUGINS_BASE_CONF_OPTS += --enable-audiotestsrc
71 else
72 GST1_PLUGINS_BASE_CONF_OPTS += --disable-audiotestsrc
73 endif
75 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ENCODING),y)
76 GST1_PLUGINS_BASE_CONF_OPTS += --enable-encoding
77 else
78 GST1_PLUGINS_BASE_CONF_OPTS += --disable-encoding
79 endif
81 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOCONVERT),y)
82 GST1_PLUGINS_BASE_CONF_OPTS += --enable-videoconvert
83 else
84 GST1_PLUGINS_BASE_CONF_OPTS += --disable-videoconvert
85 endif
87 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_GIO),y)
88 GST1_PLUGINS_BASE_CONF_OPTS += --enable-gio
89 else
90 GST1_PLUGINS_BASE_CONF_OPTS += --disable-gio
91 endif
93 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_PLAYBACK),y)
94 GST1_PLUGINS_BASE_CONF_OPTS += --enable-playback
95 else
96 GST1_PLUGINS_BASE_CONF_OPTS += --disable-playback
97 endif
99 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIORESAMPLE),y)
100 GST1_PLUGINS_BASE_CONF_OPTS += --enable-audioresample
101 else
102 GST1_PLUGINS_BASE_CONF_OPTS += --disable-audioresample
103 endif
105 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_SUBPARSE),y)
106 GST1_PLUGINS_BASE_CONF_OPTS += --enable-subparse
107 else
108 GST1_PLUGINS_BASE_CONF_OPTS += --disable-subparse
109 endif
111 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_TCP),y)
112 GST1_PLUGINS_BASE_CONF_OPTS += --enable-tcp
113 else
114 GST1_PLUGINS_BASE_CONF_OPTS += --disable-tcp
115 endif
117 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_TYPEFIND),y)
118 GST1_PLUGINS_BASE_CONF_OPTS += --enable-typefind
119 else
120 GST1_PLUGINS_BASE_CONF_OPTS += --disable-typefind
121 endif
123 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOTESTSRC),y)
124 GST1_PLUGINS_BASE_CONF_OPTS += --enable-videotestsrc
125 else
126 GST1_PLUGINS_BASE_CONF_OPTS += --disable-videotestsrc
127 endif
129 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEORATE),y)
130 GST1_PLUGINS_BASE_CONF_OPTS += --enable-videorate
131 else
132 GST1_PLUGINS_BASE_CONF_OPTS += --disable-videorate
133 endif
135 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOSCALE),y)
136 GST1_PLUGINS_BASE_CONF_OPTS += --enable-videoscale
137 else
138 GST1_PLUGINS_BASE_CONF_OPTS += --disable-videoscale
139 endif
141 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VOLUME),y)
142 GST1_PLUGINS_BASE_CONF_OPTS += --enable-volume
143 else
144 GST1_PLUGINS_BASE_CONF_OPTS += --disable-volume
145 endif
147 ifeq ($(BR2_PACKAGE_ZLIB),y)
148 GST1_PLUGINS_BASE_DEPENDENCIES += zlib
149 else
150 GST1_PLUGINS_BASE_CONF_OPTS += --disable-zlib
151 endif
153 ifeq ($(BR2_PACKAGE_XORG7),y)
154 GST1_PLUGINS_BASE_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXv
155 GST1_PLUGINS_BASE_CONF_OPTS += \
156 --enable-x \
157 --enable-xshm \
158 --enable-xvideo
159 else
160 GST1_PLUGINS_BASE_CONF_OPTS += \
161 --disable-x \
162 --disable-xshm \
163 --disable-xvideo
164 endif
166 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ALSA),y)
167 GST1_PLUGINS_BASE_DEPENDENCIES += alsa-lib
168 else
169 GST1_PLUGINS_BASE_CONF_OPTS += --disable-alsa
170 endif
172 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_TREMOR),y)
173 GST1_PLUGINS_BASE_CONF_OPTS += --enable-ivorbis
174 GST1_PLUGINS_BASE_DEPENDENCIES += tremor
175 else
176 GST1_PLUGINS_BASE_CONF_OPTS += --disable-ivorbis
177 endif
179 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_OPUS),y)
180 GST1_PLUGINS_BASE_CONF_OPTS += --enable-opus
181 GST1_PLUGINS_BASE_DEPENDENCIES += opus
182 else
183 GST1_PLUGINS_BASE_CONF_OPTS += --disable-opus
184 endif
186 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_OGG),y)
187 GST1_PLUGINS_BASE_CONF_OPTS += --enable-ogg
188 GST1_PLUGINS_BASE_DEPENDENCIES += libogg
189 else
190 GST1_PLUGINS_BASE_CONF_OPTS += --disable-ogg
191 endif
193 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_PANGO),y)
194 GST1_PLUGINS_BASE_CONF_OPTS += --enable-pango
195 GST1_PLUGINS_BASE_DEPENDENCIES += pango
196 else
197 GST1_PLUGINS_BASE_CONF_OPTS += --disable-pango
198 endif
200 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_THEORA),y)
201 GST1_PLUGINS_BASE_CONF_OPTS += --enable-theora
202 GST1_PLUGINS_BASE_DEPENDENCIES += libtheora
203 else
204 GST1_PLUGINS_BASE_CONF_OPTS += --disable-theora
205 endif
207 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VORBIS),y)
208 GST1_PLUGINS_BASE_CONF_OPTS += --enable-vorbis
209 GST1_PLUGINS_BASE_DEPENDENCIES += libvorbis
210 else
211 GST1_PLUGINS_BASE_CONF_OPTS += --disable-vorbis
212 endif
214 $(eval $(autotools-package))