2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=gst-plugins-base
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
19 include $(INCLUDE_DIR
)/package.mk
21 export PATH
:=$(PKG_BUILD_DIR
)/bin
:$(TARGET_PATH
)
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
32 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
33 -L
$(STAGING_DIR
)/usr
/lib
/libintl
/lib \
34 -L
$(STAGING_DIR
)/usr
/lib
/libiconv
/lib
36 define Package
/gst-plugins-base
/Default
37 TITLE
:=gst-plugins-base
38 URL
:=http
://gstreamer.freedesktop.org
/
41 DEPENDS
:=+gstreamer
+libogg
44 define Package
/gst-plugins-base-libgstapp
45 $(call Package
/gst-plugins-base
/Default
)
49 define Package
/gst-plugins-base-libgstapp
/description
53 define Package
/gst-plugins-base-libgstaudio
54 $(call Package
/gst-plugins-base
/Default
)
58 define Package
/gst-plugins-base-libgstaudio
/description
62 define Package
/gst-plugins-base-libgstinterfaces
63 $(call Package
/gst-plugins-base
/Default
)
64 TITLE
+= (libgstinterfaces
)
67 define Package
/gst-plugins-base-libgstinterfaces
/description
68 gstreamer libgstinterfaces
71 define Package
/gst-plugins-base-libgstpbutils
72 $(call Package
/gst-plugins-base
/Default
)
73 TITLE
+= (libgstpbutils
)
76 define Package
/gst-plugins-base-libgstpbutils
/description
77 gstreamer libgstpbutils
80 define Package
/gst-plugins-base-libgsttag
81 $(call Package
/gst-plugins-base
/Default
)
85 define Package
/gst-plugins-base-libgsttag
/description
89 define Package
/gst-plugins-base-libgstriff
90 $(call Package
/gst-plugins-base
/Default
)
94 define Package
/gst-plugins-base-libgstriff
/description
98 define Package
/gst-plugins-base-libgstcdda
99 $(call Package
/gst-plugins-base
/Default
)
103 define Package
/gst-plugins-base-libgstcdda
/description
107 define Package
/gst-plugins-base-libgstfft
108 $(call Package
/gst-plugins-base
/Default
)
112 define Package
/gst-plugins-base-libgstfft
/description
116 define Package
/gst-plugins-base-libgstnetbuffer
117 $(call Package
/gst-plugins-base
/Default
)
118 TITLE
+= (libgstnetbuffer
)
121 define Package
/gst-plugins-base-libgstnetbuffer
/description
122 gstreamer libgstnetbuffer
125 define Package
/gst-plugins-base-libgstrtp
126 $(call Package
/gst-plugins-base
/Default
)
130 define Package
/gst-plugins-base-libgstrtp
/description
134 define Package
/gst-plugins-base-libgstvideo
135 $(call Package
/gst-plugins-base
/Default
)
136 TITLE
+= (libgstvideo
)
139 define Package
/gst-plugins-base-libgstvideo
/description
140 gstreamer libgstvideo
143 define Package
/gst-plugins-base-libgstvideo
144 $(call Package
/gst-plugins-base
/Default
)
145 TITLE
+= (libgstvideo
)
148 define Package
/gst-plugins-base-libgstvideo
/description
149 gstreamer libgstvideo
152 define Package
/gst-plugins-base-libgstrtsp
153 $(call Package
/gst-plugins-base
/Default
)
157 define Package
/gst-plugins-base-libgstrtsp
/description
161 define Package
/gst-plugins-base-libgstsdp
162 $(call Package
/gst-plugins-base
/Default
)
166 define Package
/gst-plugins-base-libgstsdp
/description
170 define Package
/gst-plugins-base-ogg
171 $(call Package
/gst-plugins-base
/Default
)
173 DEPENDS
+= +liboil
+gst-plugins-base-libgstriff
+gst-plugins-base-libgsttag
+gst-plugins-base-libgstaudio
+gst-plugins-base-libgstinterfaces
176 define Package
/gst-plugins-base-ogg
/description
177 gstreamer OGG plugins
180 define Package
/gst-plugins-base-vorbis
181 $(call Package
/gst-plugins-base
/Default
)
183 DEPENDS
+= +libvorbis
+gst-plugins-base-ogg
+gst-plugins-base-libgsttag
+gst-plugins-base-libgstaudio
+gst-plugins-base-libgstinterfaces
186 define Package
/gst-plugins-base-vorbis
/description
187 gstreamer Vorbis plugins
190 define Package
/gst-plugins-base-theora
191 $(call Package
/gst-plugins-base
/Default
)
193 DEPENDS
+= +libogg
+libtheora
+gst-plugins-base-ogg
196 define Package
/gst-plugins-base-theora
/description
197 gstreamer Theora plugins
200 define Package
/gst-plugins-base-alsa
201 $(call Package
/gst-plugins-base
/Default
)
206 define Package
/gst-plugins-base-alsa
/description
207 gstreamer ALSA plugins
210 define Package
/gst-plugins-base-app
211 $(call Package
/gst-plugins-base
/Default
)
213 DEPENDS
+= +liboil
+gst-plugins-base-libgstapp
216 define Package
/gst-plugins-base-app
/description
217 gstreamer app plugins
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
226 define Package
/gst-plugins-base-audioconvert
/description
227 gstreamer audioconvert plugins
230 define Package
/gst-plugins-base-gio
231 $(call Package
/gst-plugins-base
/Default
)
232 DEPENDS
+= +liboil
+glib2
235 define Package
/gst-plugins-base-gio
/description
236 gstreamer GIO plugins
239 define Package
/gst-plugins-base-typefindfunctions
240 $(call Package
/gst-plugins-base
/Default
)
245 define Package
/gst-plugins-base-typefindfunctions
/description
246 gstreamer typefind plugins
249 define Package
/gst-plugins-base-decodebin
250 $(call Package
/gst-plugins-base
/Default
)
252 DEPENDS
+= +liboil
+gst-plugins-base-libgstpbutils
255 define Package
/gst-plugins-base-decodebin
/description
256 gstreamer decodebin plugins
259 define Build
/Configure
260 $(call Build
/Configure
/Default
, \
262 --disable-gnome_vfs \
264 --disable-cdparanoia \
265 --disable-libvisual \
267 --disable-vorbistest \
268 --disable-freetypetest \
271 mkdir
-p
$(PKG_BUILD_DIR
)/bin
272 touch
$(PKG_BUILD_DIR
)/bin
/gtkdoc-rebase
273 chmod
+x
$(PKG_BUILD_DIR
)/bin
/gtkdoc-rebase
276 define Build
/InstallDev
277 $(INSTALL_DIR
) $(1)/usr
/include/gstreamer-0.10
/gst
/
279 $(PKG_INSTALL_DIR
)/usr
/include/* \
282 $(INSTALL_DIR
) $(1)/usr
/lib
/
284 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,la
} \
287 $(INSTALL_DIR
) $(1)/usr
/lib
/gstreamer-0.10
289 $(PKG_INSTALL_DIR
)/usr
/lib
/gstreamer-0.10
/*.
{so
*,la
} \
290 $(1)/usr
/lib
/gstreamer-0.10
/
292 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
294 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
295 $(1)/usr
/lib
/pkgconfig
/
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
/
305 $$(eval
$$(call BuildPackage
,gst-plugins-base-
$(1)))
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
* \
315 $$(eval
$$(call BuildPackage
,gst-plugins-base-libgst
$(1)))
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
))
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
))