[packages] add HAProxy, a high performance HTTP/TCP reverse proxy and load balancer...
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-base / Makefile
1 #
2 # Copyright (C) 2008-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gst-plugins-base
11 PKG_VERSION:=0.10.25
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/
16 PKG_MD5SUM:=d29669dd79276c5cd94e1613c03cd9ab
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 export PATH:=$(PKG_BUILD_DIR)/bin:$(TARGET_PATH)
22
23 PKG_INSTALL=1
24
25 EXTRA_CFLAGS+= \
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/lib/libiconv/include \
28 -I$(STAGING_DIR)/usr/include/gtk-2.0/gdk \
29 -I$(STAGING_DIR)/usr/include/gstreamer-0.10
30
31 EXTRA_LDFLAGS+= \
32 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
33 -L$(STAGING_DIR)/usr/lib/libintl/lib \
34 -L$(STAGING_DIR)/usr/lib/libiconv/lib
35
36 define Package/gst-plugins-base/Default
37 TITLE:=gst-plugins-base
38 URL:=http://gstreamer.freedesktop.org/
39 SECTION:=multimedia
40 CATEGORY:=Multimedia
41 DEPENDS:=+gstreamer +libogg
42 endef
43
44 define Package/gst-plugins-base-libgstapp
45 $(call Package/gst-plugins-base/Default)
46 TITLE+= (libgstapp)
47 endef
48
49 define Package/gst-plugins-base-libgstapp/description
50 gstreamer libgstapp
51 endef
52
53 define Package/gst-plugins-base-libgstaudio
54 $(call Package/gst-plugins-base/Default)
55 TITLE+= (libgstaudio)
56 endef
57
58 define Package/gst-plugins-base-libgstaudio/description
59 gstreamer libgstaudio
60 endef
61
62 define Package/gst-plugins-base-libgstinterfaces
63 $(call Package/gst-plugins-base/Default)
64 TITLE+= (libgstinterfaces)
65 endef
66
67 define Package/gst-plugins-base-libgstinterfaces/description
68 gstreamer libgstinterfaces
69 endef
70
71 define Package/gst-plugins-base-libgstpbutils
72 $(call Package/gst-plugins-base/Default)
73 TITLE+= (libgstpbutils)
74 endef
75
76 define Package/gst-plugins-base-libgstpbutils/description
77 gstreamer libgstpbutils
78 endef
79
80 define Package/gst-plugins-base-libgsttag
81 $(call Package/gst-plugins-base/Default)
82 TITLE+= (libgsttag)
83 endef
84
85 define Package/gst-plugins-base-libgsttag/description
86 gstreamer libgsttag
87 endef
88
89 define Package/gst-plugins-base-libgstriff
90 $(call Package/gst-plugins-base/Default)
91 TITLE+= (libgstriff)
92 endef
93
94 define Package/gst-plugins-base-libgstriff/description
95 gstreamer libgstriff
96 endef
97
98 define Package/gst-plugins-base-libgstcdda
99 $(call Package/gst-plugins-base/Default)
100 TITLE+= (libgstcdda)
101 endef
102
103 define Package/gst-plugins-base-libgstcdda/description
104 gstreamer libgstcdda
105 endef
106
107 define Package/gst-plugins-base-libgstfft
108 $(call Package/gst-plugins-base/Default)
109 TITLE+= (libgstfft)
110 endef
111
112 define Package/gst-plugins-base-libgstfft/description
113 gstreamer libgstfft
114 endef
115
116 define Package/gst-plugins-base-libgstnetbuffer
117 $(call Package/gst-plugins-base/Default)
118 TITLE+= (libgstnetbuffer)
119 endef
120
121 define Package/gst-plugins-base-libgstnetbuffer/description
122 gstreamer libgstnetbuffer
123 endef
124
125 define Package/gst-plugins-base-libgstrtp
126 $(call Package/gst-plugins-base/Default)
127 TITLE+= (libgstrtp)
128 endef
129
130 define Package/gst-plugins-base-libgstrtp/description
131 gstreamer libgstrtp
132 endef
133
134 define Package/gst-plugins-base-libgstvideo
135 $(call Package/gst-plugins-base/Default)
136 TITLE+= (libgstvideo)
137 endef
138
139 define Package/gst-plugins-base-libgstvideo/description
140 gstreamer libgstvideo
141 endef
142
143 define Package/gst-plugins-base-libgstvideo
144 $(call Package/gst-plugins-base/Default)
145 TITLE+= (libgstvideo)
146 endef
147
148 define Package/gst-plugins-base-libgstvideo/description
149 gstreamer libgstvideo
150 endef
151
152 define Package/gst-plugins-base-libgstrtsp
153 $(call Package/gst-plugins-base/Default)
154 TITLE+= (libgstrtsp)
155 endef
156
157 define Package/gst-plugins-base-libgstrtsp/description
158 gstreamer libgstrtsp
159 endef
160
161 define Package/gst-plugins-base-libgstsdp
162 $(call Package/gst-plugins-base/Default)
163 TITLE+= (libgstsdp)
164 endef
165
166 define Package/gst-plugins-base-libgstsdp/description
167 gstreamer libgstsdp
168 endef
169
170 define Package/gst-plugins-base-ogg
171 $(call Package/gst-plugins-base/Default)
172 TITLE+= (ogg)
173 DEPENDS += +liboil +gst-plugins-base-libgstriff +gst-plugins-base-libgsttag +gst-plugins-base-libgstaudio +gst-plugins-base-libgstinterfaces
174 endef
175
176 define Package/gst-plugins-base-ogg/description
177 gstreamer OGG plugins
178 endef
179
180 define Package/gst-plugins-base-vorbis
181 $(call Package/gst-plugins-base/Default)
182 TITLE+= (vorbis)
183 DEPENDS += +libvorbis +gst-plugins-base-ogg +gst-plugins-base-libgsttag +gst-plugins-base-libgstaudio +gst-plugins-base-libgstinterfaces
184 endef
185
186 define Package/gst-plugins-base-vorbis/description
187 gstreamer Vorbis plugins
188 endef
189
190 define Package/gst-plugins-base-theora
191 $(call Package/gst-plugins-base/Default)
192 TITLE+= (theora)
193 DEPENDS += +libogg +libtheora +gst-plugins-base-ogg
194 endef
195
196 define Package/gst-plugins-base-theora/description
197 gstreamer Theora plugins
198 endef
199
200 define Package/gst-plugins-base-alsa
201 $(call Package/gst-plugins-base/Default)
202 TITLE+= (alsa)
203 DEPENDS += +liboil
204 endef
205
206 define Package/gst-plugins-base-alsa/description
207 gstreamer ALSA plugins
208 endef
209
210 define Package/gst-plugins-base-app
211 $(call Package/gst-plugins-base/Default)
212 TITLE+= (app)
213 DEPENDS += +liboil +gst-plugins-base-libgstapp
214 endef
215
216 define Package/gst-plugins-base-app/description
217 gstreamer app plugins
218 endef
219
220 define Package/gst-plugins-base-audioconvert
221 $(call Package/gst-plugins-base/Default)
222 TITLE+= (audioconvert)
223 DEPENDS += +liboil +gst-plugins-base-libgstaudio +gst-plugins-base-libgstinterfaces
224 endef
225
226 define Package/gst-plugins-base-audioconvert/description
227 gstreamer audioconvert plugins
228 endef
229
230 define Package/gst-plugins-base-gio
231 $(call Package/gst-plugins-base/Default)
232 DEPENDS += +liboil +glib2
233 endef
234
235 define Package/gst-plugins-base-gio/description
236 gstreamer GIO plugins
237 endef
238
239 define Package/gst-plugins-base-typefindfunctions
240 $(call Package/gst-plugins-base/Default)
241 TITLE+= (typefind)
242 DEPENDS += +liboil
243 endef
244
245 define Package/gst-plugins-base-typefindfunctions/description
246 gstreamer typefind plugins
247 endef
248
249 define Package/gst-plugins-base-decodebin
250 $(call Package/gst-plugins-base/Default)
251 TITLE+= (decodebin)
252 DEPENDS += +liboil +gst-plugins-base-libgstpbutils
253 endef
254
255 define Package/gst-plugins-base-decodebin/description
256 gstreamer decodebin plugins
257 endef
258
259 define Build/Configure
260 $(call Build/Configure/Default, \
261 --disable-pango \
262 --disable-gnome_vfs \
263 --disable-examples \
264 --disable-cdparanoia \
265 --disable-libvisual \
266 --disable-oggtest \
267 --disable-vorbistest \
268 --disable-freetypetest \
269 --without-x \
270 )
271 mkdir -p $(PKG_BUILD_DIR)/bin
272 touch $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
273 chmod +x $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
274 endef
275
276 define Build/InstallDev
277 $(INSTALL_DIR) $(1)/usr/include/gstreamer-0.10/gst/
278 $(CP) \
279 $(PKG_INSTALL_DIR)/usr/include/* \
280 $(1)/usr/include/
281
282 $(INSTALL_DIR) $(1)/usr/lib/
283 $(CP) \
284 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} \
285 $(1)/usr/lib/
286
287 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
288 $(CP) \
289 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,la} \
290 $(1)/usr/lib/gstreamer-0.10/
291
292 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
293 $(INSTALL_DATA) \
294 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
295 $(1)/usr/lib/pkgconfig/
296 endef
297
298 define BuildPlugin
299 define Package/gst-plugins-base-$(1)/install
300 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-0.10
301 $(CP) $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/libgst$(1).so \
302 $$(1)/usr/lib/gstreamer-0.10/
303 endef
304
305 $$(eval $$(call BuildPackage,gst-plugins-base-$(1)))
306 endef
307
308 define BuildLib
309 define Package/gst-plugins-base-libgst$(1)/install
310 $(INSTALL_DIR) $$(1)/usr/lib
311 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgst$(1)*.so* \
312 $$(1)/usr/lib/
313 endef
314
315 $$(eval $$(call BuildPackage,gst-plugins-base-libgst$(1)))
316 endef
317
318 $(eval $(call BuildLib,app))
319 $(eval $(call BuildLib,audio))
320 $(eval $(call BuildLib,interfaces))
321 $(eval $(call BuildLib,pbutils))
322 $(eval $(call BuildLib,tag))
323 $(eval $(call BuildLib,riff))
324 $(eval $(call BuildLib,cdda))
325 $(eval $(call BuildLib,fft))
326 $(eval $(call BuildLib,netbuffer))
327 $(eval $(call BuildLib,rtp))
328 $(eval $(call BuildLib,video))
329 $(eval $(call BuildLib,rtsp))
330 $(eval $(call BuildLib,sdp))
331
332 $(eval $(call BuildPlugin,ogg))
333 $(eval $(call BuildPlugin,vorbis))
334 $(eval $(call BuildPlugin,theora))
335 $(eval $(call BuildPlugin,alsa))
336 $(eval $(call BuildPlugin,app))
337 $(eval $(call BuildPlugin,audioconvert))
338 $(eval $(call BuildPlugin,gio))
339 $(eval $(call BuildPlugin,typefindfunctions))
340 $(eval $(call BuildPlugin,decodebin))