2 # Copyright (C) 2008-2010 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
:=d07e251152cccbaa81807c14cf0fd8c0
18 PKG_BUILD_DEPENDS
:= gstreamer liboil
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/nls.mk
26 # -liconv crept in from pkg-config, to be revisited later
27 include $(INCLUDE_DIR
)/nls.mk
29 define Package
/gstreamer
/Default
33 URL
:=http
://gstreamer.freedesktop.org
/
37 define Package
/gstreamer
/description
/Default
38 GStreamer open source multimedia framework
42 define Package
/gst-plugins-base
43 $(call Package
/gstreamer
/Default
)
44 TITLE
+= plugins collection
(base
)
45 DEPENDS
+= $(GST_DEPENDS
)
48 define Package
/gts-plugins-base
/description
49 $(call Package
/gstreamer
/description
/Default
)
51 This meta package contains only dependencies to the other libraries and
52 plugins from the base plugins collection.
62 --disable-cdparanoia \
63 --disable-ffmpegcolorspace \
64 --disable-freetypetest \
72 --disable-videoscale \
73 --disable-vorbistest \
78 --without-libiconv-prefix \
79 --without-libintl-prefix \
82 --with-audioresample-format
=int \
85 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
88 define Build
/InstallDev
89 $(INSTALL_DIR
) $(1)/usr
/include/gstreamer-
$(GST_VERSION
)
90 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
91 .
/usr
/include/gstreamer-
$(GST_VERSION
)/* \
92 $(1)/usr
/include/gstreamer-
$(GST_VERSION
)/ \
94 $(INSTALL_DIR
) $(1)/usr
/lib
95 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
96 .
/usr
/lib
/libgst
*-$(GST_VERSION
).
{a
,la
,so
*} \
99 $(INSTALL_DIR
) $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
100 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
101 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
*.
{la
,so
} \
102 $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
104 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
105 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
106 .
/usr
/lib
/pkgconfig
/gstreamer
*-$(GST_VERSION
).
pc \
107 $(1)/usr
/lib
/pkgconfig
/ \
112 define Package
/gst-plugins-base
/install
119 # 3: dependencies on other gstreamer libraries (short name)
120 # 4: dependencies on other packages
121 define GstBuildLibrary
123 GST_DEPENDS
+= +libgst
$(1)
125 define Package
/libgst
$(1)
126 $(call Package
/gstreamer
/Default
)
127 TITLE
+= $(2) library
(base
)
128 DEPENDS
+= +libgstreamer
$$(foreach p
,$(3),+libgst
$$(p
)) $(4)
131 define Package
/libgst
$(1)/description
132 $(call Package
/gstreamer
/description
/Default
)
134 This package contains the GStreamer
$(2) library.
137 define Package
/libgst
$(1)/install
138 $(INSTALL_DIR
) $$(1)/usr
/lib
139 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
140 .
/usr
/lib
/libgst
$(1)-$(GST_VERSION
).so.
* \
145 $$(eval
$$(call BuildPackage
,libgst
$(1)))
148 $(eval
$(call GstBuildLibrary
,app
,app
,,))
149 $(eval
$(call GstBuildLibrary
,audio
,audio
,interfaces
,))
150 $(eval
$(call GstBuildLibrary
,cdda
,CDDA
,,))
151 $(eval
$(call GstBuildLibrary
,fft
,FFT
,,))
152 $(eval
$(call GstBuildLibrary
,interfaces
,interfaces
,))
153 $(eval
$(call GstBuildLibrary
,netbuffer
,network buffer
,,))
154 $(eval
$(call GstBuildLibrary
,pbutils
,utils
,,))
155 $(eval
$(call GstBuildLibrary
,riff
,RIFF media
,audio tag
,,))
156 $(eval
$(call GstBuildLibrary
,rtp
,RTP
,,))
157 $(eval
$(call GstBuildLibrary
,rtsp
,RTSP
,,))
158 $(eval
$(call GstBuildLibrary
,sdp
,SDP
,,))
159 $(eval
$(call GstBuildLibrary
,tag
,tag support
,,))
160 $(eval
$(call GstBuildLibrary
,video
,video
,,))
165 # 3: dependencies on other gstreamer libraries (short name)
166 # 4: dependencies on other gstreamer plugins (short name)
167 # 5: dependencies on other packages
168 define GstBuildPlugin
170 GST_DEPENDS
+= +gst-mod-
$(1)
172 define Package
/gst-mod-
$(1)
173 $(call Package
/gstreamer
/Default
)
174 TITLE
+= $(2) plugin
(base
)
175 DEPENDS
+= +libgstreamer
$$(foreach p
,$(3),+libgst
$$(p
)) $$(foreach p
,$(4),+gst-mod-
$$(p
)) $(5)
178 define Package
/gst-mod-
$(1)/description
179 $(call Package
/gstreamer
/description
/Default
)
181 This package contains the GStreamer
$(2) plugin.
184 define Package
/gst-mod-
$(1)/install
185 $(INSTALL_DIR
) $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
186 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
187 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
$(1).so
* \
188 $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
192 $$(eval
$$(call BuildPackage
,gst-mod-
$(1)))
195 $(eval
$(call GstBuildPlugin
,alsa
,ALSA
,audio
,,+alsa-lib
))
196 $(eval
$(call GstBuildPlugin
,app
,app
,app
,,))
197 $(eval
$(call GstBuildPlugin
,audioconvert
,audio format conversion
,audio
,,))
198 $(eval
$(call GstBuildPlugin
,audiorate
,audio rate adjusting
,,,))
199 $(eval
$(call GstBuildPlugin
,audioresample
,audio resampling
,,,))
200 $(eval
$(call GstBuildPlugin
,audiotestsrc
,audio
test,controller
,,))
201 $(eval
$(call GstBuildPlugin
,decodebin
,media decoder
,pbutils
,,))
202 $(eval
$(call GstBuildPlugin
,decodebin2
,media decoder
(v2
),pbutils
,,))
203 $(eval
$(call GstBuildPlugin
,gio
,GIO
,,,))
204 $(eval
$(call GstBuildPlugin
,ogg
,Ogg
,riff tag
,,+libogg
))
205 $(eval
$(call GstBuildPlugin
,playbin
,playback
,interfaces pbutils
,,))
206 $(eval
$(call GstBuildPlugin
,tcp
,TCP
,dataprotocol
,,))
207 $(eval
$(call GstBuildPlugin
,theora
,Theora
,tag
,ogg
,+libtheora
))
208 $(eval
$(call GstBuildPlugin
,typefindfunctions
,'typefind' functions
,,,))
209 $(eval
$(call GstBuildPlugin
,videotestsrc
,video
test,,,+liboil
))
210 $(eval
$(call GstBuildPlugin
,volume
,volume
,audio controller
,,+liboil
))
211 $(eval
$(call GstBuildPlugin
,vorbis
,Vorbis
,audio tag
,ogg
,+libvorbis
))
213 $(eval
$(call BuildPackage
,gst-plugins-base
))