[backfire/packages] ntpd: merge r28572
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-base / Makefile
1 #
2 # Copyright (C) 2008-2010 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.29
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:=d07e251152cccbaa81807c14cf0fd8c0
17
18 PKG_BUILD_DEPENDS:= gstreamer liboil
19
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25
26 # -liconv crept in from pkg-config, to be revisited later
27 include $(INCLUDE_DIR)/nls.mk
28
29 define Package/gstreamer/Default
30 CATEGORY:=Multimedia
31 SECTION:=multimedia
32 TITLE:=GStreamer
33 URL:=http://gstreamer.freedesktop.org/
34 DEPENDS:= @!LINUX_2_4
35 endef
36
37 define Package/gstreamer/description/Default
38 GStreamer open source multimedia framework
39 endef
40
41
42 define Package/gst-plugins-base
43 $(call Package/gstreamer/Default)
44 TITLE+= plugins collection (base)
45 DEPENDS+= $(GST_DEPENDS)
46 endef
47
48 define Package/gts-plugins-base/description
49 $(call Package/gstreamer/description/Default)
50 .
51 This meta package contains only dependencies to the other libraries and
52 plugins from the base plugins collection.
53 endef
54
55
56 GST_VERSION:=0.10
57
58 CONFIGURE_ARGS += \
59 --disable-debug \
60 --disable-examples \
61 \
62 --disable-cdparanoia \
63 --disable-ffmpegcolorspace \
64 --disable-freetypetest \
65 --disable-gnome_vfs \
66 --disable-gst_v4l \
67 --disable-libvisual \
68 --disable-oggtest \
69 --disable-pango \
70 --disable-subparse \
71 --disable-videorate \
72 --disable-videoscale \
73 --disable-vorbistest \
74 --disable-x \
75 --disable-xshm \
76 --disable-xvideo \
77 \
78 --without-libiconv-prefix \
79 --without-libintl-prefix \
80 --without-x \
81 \
82 --with-audioresample-format=int \
83
84 EXTRA_LDFLAGS+= \
85 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
86
87
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)/ \
93 )
94 $(INSTALL_DIR) $(1)/usr/lib
95 ( cd $(PKG_INSTALL_DIR); $(CP) \
96 ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \
97 $(1)/usr/lib/ \
98 )
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)/ \
103 )
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/ \
108 )
109 endef
110
111
112 define Package/gst-plugins-base/install
113 /bin/true
114 endef
115
116
117 # 1: short name
118 # 2: description
119 # 3: dependencies on other gstreamer libraries (short name)
120 # 4: dependencies on other packages
121 define GstBuildLibrary
122
123 GST_DEPENDS += +libgst$(1)
124
125 define Package/libgst$(1)
126 $(call Package/gstreamer/Default)
127 TITLE+= $(2) library (base)
128 DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $(4)
129 endef
130
131 define Package/libgst$(1)/description
132 $(call Package/gstreamer/description/Default)
133 .
134 This package contains the GStreamer $(2) library.
135 endef
136
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.* \
141 $$(1)/usr/lib/ \
142 )
143 endef
144
145 $$(eval $$(call BuildPackage,libgst$(1)))
146 endef
147
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,,))
161
162
163 # 1: short name
164 # 2: description
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
169
170 GST_DEPENDS += +gst-mod-$(1)
171
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)
176 endef
177
178 define Package/gst-mod-$(1)/description
179 $(call Package/gstreamer/description/Default)
180 .
181 This package contains the GStreamer $(2) plugin.
182 endef
183
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)/ \
189 )
190 endef
191
192 $$(eval $$(call BuildPackage,gst-mod-$(1)))
193 endef
194
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))
212
213 $(eval $(call BuildPackage,gst-plugins-base))