Browse Source

Add gst1-plugins-bad package

Signed-off-by: W. Michael Petullo <mike@flyn.org>
W. Michael Petullo 10 years ago
parent
commit
37f634045c

+ 254
- 0
multimedia/gst1-plugins-bad/Makefile View File

@@ -0,0 +1,254 @@
1
+#
2
+# Copyright (C) 2011 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:=gst1-plugins-bad
11
+PKG_VERSION:=1.2.3
12
+PKG_RELEASE:=1
13
+PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
14
+
15
+PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION)
16
+PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz
17
+PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/
18
+PKG_MD5SUM:=cfd6f303c8df2740b27cc63b945decef
19
+
20
+PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil
21
+
22
+PKG_FIXUP:=autoreconf
23
+PKG_INSTALL:=1
24
+
25
+include $(INCLUDE_DIR)/package.mk
26
+include $(INCLUDE_DIR)/nls.mk
27
+
28
+define Package/gstreamer1/Default
29
+  CATEGORY:=Multimedia
30
+  SECTION:=multimedia
31
+  TITLE:=GStreamer
32
+  URL:=http://gstreamer.freedesktop.org/
33
+endef
34
+
35
+define Package/gstreamer1/description/Default
36
+ GStreamer open source multimedia framework
37
+endef
38
+
39
+
40
+define Package/gst1-plugins-bad
41
+$(call Package/gstreamer1/Default)
42
+  TITLE+= plugins collection (bad)
43
+  DEPENDS+= $(GST_DEPENDS)
44
+endef
45
+
46
+define Package/gts1-plugins-bad/description
47
+$(call Package/gstreamer1/description/Default)
48
+ .
49
+ This meta package contains only dependencies to the other plugins from
50
+ the bad plugins collection.
51
+endef
52
+
53
+
54
+GST_VERSION:=1.0
55
+
56
+CONFIGURE_ARGS += \
57
+	--disable-debug \
58
+	--disable-examples \
59
+	--disable-nls	\
60
+	\
61
+	--disable-directsound \
62
+	--disable-directdraw \
63
+	--disable-osx_video \
64
+	--disable-quicktime \
65
+	--disable-vcd \
66
+	--disable-alsa \
67
+	--disable-assrender \
68
+	--disable-amrwb \
69
+	--disable-apexsink \
70
+	--disable-bz2 \
71
+	--disable-cdaudio \
72
+	--disable-celt \
73
+	--disable-cog \
74
+	--disable-dc1394 \
75
+	--disable-directfb \
76
+	--disable-dirac \
77
+	--disable-dts \
78
+	--disable-divx \
79
+	--disable-resindvd \
80
+	--disable-metadata \
81
+	--disable-faac \
82
+	--disable-faad \
83
+	--disable-fbdev \
84
+	--disable-flite \
85
+	--disable-gsm \
86
+	--disable-jack \
87
+	--disable-jp2k \
88
+	--disable-kate \
89
+	--disable-ladspa \
90
+	--disable-lv2 \
91
+	--disable-modplug \
92
+	--disable-mimic \
93
+	--disable-libmms \
94
+	--disable-mpeg2enc \
95
+	--disable-mplex \
96
+	--disable-musepack \
97
+	--disable-musicbrainz \
98
+	--disable-mythtv \
99
+	--disable-nas \
100
+	--disable-neon \
101
+	--disable-ofa \
102
+	--disable-rsvg \
103
+	--disable-timidity \
104
+	--disable-wildmidi \
105
+	--disable-sdl \
106
+	--disable-sdltest \
107
+	--disable-sndfile \
108
+	--disable-soundtouch \
109
+	--disable-spc \
110
+	--disable-gme \
111
+	--disable-swfdec \
112
+	--disable-theoradec \
113
+	--disable-xvid \
114
+	--disable-dvb \
115
+	--disable-wininet \
116
+	--disable-acm \
117
+	--disable-vdpau \
118
+	--disable-schro \
119
+	--disable-zbar \
120
+	--disable-vp8 \
121
+	--disable-librfb \
122
+	\
123
+	--without-libiconv-prefix \
124
+	--without-libintl-prefix \
125
+	--without-x \
126
+
127
+EXTRA_LDFLAGS+= \
128
+	-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
129
+
130
+
131
+define Package/gst1-plugins-ugly/install
132
+	/bin/true
133
+endef
134
+
135
+# 1: short name
136
+# 2: description
137
+# 3: dependencies on other gstreamer libraries (short name)
138
+# 4: dependencies on other packages
139
+define GstBuildLibrary
140
+
141
+  GST_DEPENDS += +libgst1$(1)
142
+
143
+  define Package/libgst1$(1)
144
+    $(call Package/gstreamer1/Default)
145
+    TITLE+= $(2) library (base)
146
+    DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $(4)
147
+  endef
148
+
149
+  define Package/libgst1$(1)/description
150
+   $(call Package/gstreamer1/description/Default)
151
+   .
152
+   This package contains the GStreamer $(2) library.
153
+  endef
154
+
155
+  define Package/libgst1$(1)/install
156
+	$(INSTALL_DIR) $$(1)/usr/lib
157
+	( cd $(PKG_INSTALL_DIR); $(CP) \
158
+		./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
159
+		$$(1)/usr/lib/ \
160
+	)
161
+  endef
162
+
163
+  $$(eval $$(call BuildPackage,libgst1$(1)))
164
+endef
165
+$(eval $(call GstBuildLibrary,photography,photography,,))
166
+
167
+
168
+# 1: short name
169
+# 2: description
170
+# 3: dependencies on other gstreamer libraries (short name)
171
+# 4: dependencies on other gstreamer plugins (short name)
172
+# 5: dependencies on other packages
173
+define GstBuildPlugin
174
+
175
+  GST_DEPENDS += +gst1-mod-$(1)
176
+
177
+  define Package/gst1-mod-$(1)
178
+    $(call Package/gstreamer1/Default)
179
+    TITLE+= $(2) plugin (bad)
180
+    DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
181
+  endef
182
+
183
+  define Package/gst1-mod-$(1)/description
184
+   $(call Package/gstreamer1/description/Default)
185
+   .
186
+   This package contains the GStreamer $(2) plugin.
187
+  endef
188
+
189
+  define Package/gst1-mod-$(1)/install
190
+	$(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
191
+	( cd $(PKG_INSTALL_DIR); $(CP) \
192
+		./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
193
+		$$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
194
+	)
195
+  endef
196
+
197
+  $$(eval $$(call BuildPackage,gst1-mod-$(1)))
198
+endef
199
+
200
+$(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,,,))
201
+$(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,,,))
202
+$(eval $(call GstBuildPlugin,aiff,aiff support,,,))
203
+$(eval $(call GstBuildPlugin,asfmux,asf muxing support,rtp,,))
204
+$(eval $(call GstBuildPlugin,audioparsersbad,audioparsers support,audio tag,,))
205
+$(eval $(call GstBuildPlugin,autoconvert,autoconvert support,,,))
206
+$(eval $(call GstBuildPlugin,camerabin,camerabin support,photography,,))
207
+$(eval $(call GstBuildPlugin,legacyresample,legacyresample support,,,+liboil +librt))
208
+$(eval $(call GstBuildPlugin,bayer,bayer support,video,,))
209
+$(eval $(call GstBuildPlugin,cdxaparse,cdxaparse support,riff,,))
210
+$(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
211
+$(eval $(call GstBuildPlugin,dccp,dccp support,,,))
212
+$(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,,,))
213
+$(eval $(call GstBuildPlugin,dtmf,dtmf support,rtp,,))
214
+$(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
215
+$(eval $(call GstBuildPlugin,festival,festival support,audio,,))
216
+$(eval $(call GstBuildPlugin,freeze,freeze support,,,))
217
+$(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
218
+$(eval $(call GstBuildPlugin,h264parse,h264parse support,,,))
219
+$(eval $(call GstBuildPlugin,hdvparse,hdvparse support,,,))
220
+$(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
221
+$(eval $(call GstBuildPlugin,invtelecine,invtelecine support,,,))
222
+$(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,))
223
+#$(eval $(call GstBuildPlugin,librfbsrc,librfb support,,,))
224
+$(eval $(call GstBuildPlugin,liveadder,liveadder support,audio,,))
225
+$(eval $(call GstBuildPlugin,mpegdemux,mpegdemux support,tag,,+liboil +librt))
226
+$(eval $(call GstBuildPlugin,mpegtsmux,mpegtsmux support,,,))
227
+$(eval $(call GstBuildPlugin,mpegpsmux,mpegpsmux support,,,))
228
+$(eval $(call GstBuildPlugin,mpeg4videoparse,mpeg4videoparse support,,,))
229
+$(eval $(call GstBuildPlugin,mpegvideoparse,mpegvideoparse support,,,))
230
+$(eval $(call GstBuildPlugin,mve,mve support,,,))
231
+$(eval $(call GstBuildPlugin,mxf,mxf support,video,,))
232
+$(eval $(call GstBuildPlugin,nsf,nsf support,,,))
233
+$(eval $(call GstBuildPlugin,nuvdemux,nuvdemux support,,,))
234
+$(eval $(call GstBuildPlugin,pcapparse,pcapparse support,,,))
235
+$(eval $(call GstBuildPlugin,pnm,pnm support,video,,))
236
+$(eval $(call GstBuildPlugin,qtmux,qtmux support,tag,,))
237
+$(eval $(call GstBuildPlugin,rawparse,rawparse support,video,,))
238
+$(eval $(call GstBuildPlugin,rtpmux,rtpmux support,rtp,,))
239
+#$(eval $(call GstBuildPlugin,rfbsrc,rfb support,,,))
240
+$(eval $(call GstBuildPlugin,scaletempoplugin,scaletempo support,,,))
241
+$(eval $(call GstBuildPlugin,sdpelem,sdp support,rtp sdp,,))
242
+$(eval $(call GstBuildPlugin,segmentclip,segmentclip support,audio,,))
243
+$(eval $(call GstBuildPlugin,selector,selector support,,,))
244
+$(eval $(call GstBuildPlugin,siren,siren support,rtp,,))
245
+$(eval $(call GstBuildPlugin,speed,speed support,,,))
246
+$(eval $(call GstBuildPlugin,subenc,subenc support,controller,,))
247
+$(eval $(call GstBuildPlugin,stereo,stereo support,audio controller,,))
248
+$(eval $(call GstBuildPlugin,tta,tta support,,,))
249
+$(eval $(call GstBuildPlugin,valve,valve support,,,))
250
+$(eval $(call GstBuildPlugin,videomeasure,videomeasure support,video,,))
251
+$(eval $(call GstBuildPlugin,videosignal,videosignal support,video,,))
252
+$(eval $(call GstBuildPlugin,vmnc,vmnc support,,,))
253
+
254
+$(eval $(call BuildPackage,gst1-plugins-bad))

+ 45
- 0
multimedia/gst1-plugins-bad/patches/000-gettext.patch View File

@@ -0,0 +1,45 @@
1
+diff -u --recursive gst-plugins-bad-1.0.7-vanilla/configure.ac gst-plugins-bad-1.0.7/configure.ac
2
+--- gst-plugins-bad-1.0.7-vanilla/configure.ac	2013-06-01 19:44:32.199308073 -0500
3
++++ gst-plugins-bad-1.0.7/configure.ac	2013-06-01 19:45:27.754119344 -0500
4
+@@ -2373,7 +2373,6 @@
5
+ ext/timidity/Makefile
6
+ ext/xvid/Makefile
7
+ ext/zbar/Makefile
8
+-po/Makefile.in
9
+ docs/Makefile
10
+ docs/plugins/Makefile
11
+ docs/libs/Makefile
12
+diff -u --recursive gst-plugins-bad-1.0.7-vanilla/Makefile.am gst-plugins-bad-1.0.7/Makefile.am
13
+--- gst-plugins-bad-1.0.7-vanilla/Makefile.am	2013-06-01 19:44:32.165309412 -0500
14
++++ gst-plugins-bad-1.0.7/Makefile.am	2013-06-01 19:45:39.016675625 -0500
15
+@@ -2,11 +2,11 @@
16
+ 
17
+ SUBDIRS = \
18
+ 	gst-libs gst sys ext pkgconfig \
19
+-	m4 common docs tests po tools
20
++	m4 common docs tests tools
21
+ 
22
+ DIST_SUBDIRS = \
23
+ 	gst gst-libs sys ext pkgconfig \
24
+-	m4 common docs tests po tools
25
++	m4 common docs tests tools
26
+ 
27
+ # include before EXTRA_DIST for win32 assignment
28
+ include $(top_srcdir)/common/win32.mak
29
+diff -u --recursive gst-plugins-bad-1.0.7-vanilla/Makefile.in gst-plugins-bad-1.0.7/Makefile.in
30
+--- gst-plugins-bad-1.0.7-vanilla/Makefile.in	2013-06-01 19:44:32.217307364 -0500
31
++++ gst-plugins-bad-1.0.7/Makefile.in	2013-06-01 19:45:44.624454691 -0500
32
+@@ -636,11 +636,11 @@
33
+ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
34
+ SUBDIRS = \
35
+ 	gst-libs gst sys ext pkgconfig \
36
+-	m4 common docs tests po tools
37
++	m4 common docs tests tools
38
+ 
39
+ DIST_SUBDIRS = \
40
+ 	gst gst-libs sys ext pkgconfig \
41
+-	m4 common docs tests po tools
42
++	m4 common docs tests tools
43
+ 
44
+ 
45
+ # the MANIFEST contains all win32 related files that should be disted