Browse Source

gstreamer1 build work in progress

Ted Hess 10 years ago
parent
commit
26ef97123c

+ 8
- 4
libs/liboil/Makefile View File

@@ -1,5 +1,5 @@
1 1
 # 
2
-# Copyright (C) 2007-2010 OpenWrt.org
2
+# Copyright (C) 2007-2014 OpenWrt.org
3 3
 #
4 4
 # This is free software, licensed under the GNU General Public License v2.
5 5
 # See /LICENSE for more information.
@@ -9,16 +9,20 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=liboil
11 11
 PKG_VERSION:=0.3.17
12
-PKG_RELEASE:=1
12
+PKG_RELEASE:=2
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_URL:=http://liboil.freedesktop.org/download/
16 16
 PKG_MD5SUM:=47dc734f82faeb2964d97771cfd2e701
17 17
 
18
+PKG_LICENSE:=FREE
19
+PKG_LICENSE_FILE:=COPYING
20
+
18 21
 PKG_FIXUP:=autoreconf
19 22
 PKG_INSTALL:=1
20 23
 
21 24
 include $(INCLUDE_DIR)/package.mk
25
+include $(INCLUDE_DIR)/nls.mk
22 26
 
23 27
 define Package/liboil
24 28
   SECTION:=libs
@@ -26,7 +30,7 @@ define Package/liboil
26 30
   TITLE:=simple functions optimized for various CPUs
27 31
   URL:=http://liboil.freedesktop.org/wiki/
28 32
   MAINTAINER:=W. Michael Petullo <mike@flyn.org>
29
-  DEPENDS:=+librt
33
+  DEPENDS:=+librt $(ICONV_DEPENDS) $(INTL_DEPENDS)
30 34
 endef
31 35
 
32 36
 define Package/liboil/description
@@ -42,7 +46,7 @@ CONFIGURE_ARGS += \
42 46
 	--enable-shared \
43 47
 	--enable-static \
44 48
 
45
-TARGET_CFLAGS += $(FPIC)
49
+TARGET_CFLAGS += $(FPIC) $(if $(ICONV_FULL),-liconv) $(if $(INTL_FULL),-lintl)
46 50
 
47 51
 # XXX: VFP_CFLAGS is set to '-mfpu=vfp' on arm by configure, but that breaks 
48 52
 # final linking stages, so override it until we find why

+ 75
- 0
libs/libsoup/Makefile View File

@@ -0,0 +1,75 @@
1
+# 
2
+# Copyright (C) 2014 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:=libsoup
11
+PKG_VERSION:=2.38.1
12
+PKG_RELEASE:=1
13
+
14
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15
+PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.38
16
+PKG_MD5SUM:=d13fb4968acea24c26b83268a308f580
17
+
18
+PKG_LICENSE:=GPL-2.0
19
+PKG_LICENSE_FILE:=COPYING
20
+
21
+PKG_FIXUP:=autoreconf
22
+PKG_INSTALL:=1
23
+
24
+include $(INCLUDE_DIR)/package.mk
25
+include $(INCLUDE_DIR)/nls.mk
26
+
27
+TARGET_LDFLAGS+=\
28
+	-Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
29
+
30
+define Package/libsoup
31
+  SECTION:=libs
32
+  CATEGORY:=Libraries
33
+  TITLE:=libsoup
34
+  URL:=http://live.gnome.org/LibSoup
35
+  MAINTAINER:=W. Michael Petullo <mike@flyn.org>
36
+  DEPENDS:=+glib2 +libxml2 +libgnutls $(ICONV_DEPENDS) $(INTL_DEPENDS)
37
+endef
38
+
39
+define Build/Configure
40
+	$(call Build/Configure/Default, \
41
+		--enable-ssl \
42
+		--disable-glibtest \
43
+		--without-apache-httpd \
44
+		--without-gnome \
45
+	)
46
+endef
47
+
48
+define package/libsoup/decription
49
+Libsoup is an HTTP library implementation in C
50
+endef
51
+
52
+define Build/InstallDev
53
+	$(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
54
+
55
+	$(CP) \
56
+		$(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
57
+		$(1)/usr/lib/
58
+
59
+	$(INSTALL_DATA) \
60
+		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
61
+		$(1)/usr/lib/pkgconfig/
62
+
63
+	$(INSTALL_DATA) \
64
+		$(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
65
+		$(1)/usr/include/libsoup-2.4/libsoup/
66
+endef
67
+
68
+define Package/libsoup/install
69
+	$(INSTALL_DIR) $(1)/usr/lib
70
+	$(CP) \
71
+		$(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
72
+		$(1)/usr/lib/
73
+endef
74
+
75
+$(eval $(call BuildPackage,libsoup))

+ 27
- 20
multimedia/gst1-plugins-bad/Makefile View File

@@ -1,5 +1,5 @@
1 1
 #
2
-# Copyright (C) 2011 OpenWrt.org
2
+# Copyright (C) 2011-2014 OpenWrt.org
3 3
 #
4 4
 # This is free software, licensed under the GNU General Public License v2.
5 5
 # See /LICENSE for more information.
@@ -9,8 +9,10 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=gst1-plugins-bad
11 11
 PKG_VERSION:=1.2.3
12
-PKG_RELEASE:=1
12
+PKG_RELEASE:=2
13
+
13 14
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
15
+
14 16
 PKG_LICENSE:=LGPLv2 GPLv2
15 17
 PKG_LICENSE_FILE:=COPYING.LIB COPYING
16 18
 
@@ -32,6 +34,7 @@ define Package/gstreamer1/Default
32 34
   SECTION:=multimedia
33 35
   TITLE:=GStreamer
34 36
   URL:=http://gstreamer.freedesktop.org/
37
+  DEPENDS:= $(ICONV_DEPENDS)
35 38
 endef
36 39
 
37 40
 define Package/gstreamer1/description/Default
@@ -126,8 +129,11 @@ CONFIGURE_ARGS += \
126 129
 	--without-libintl-prefix \
127 130
 	--without-x \
128 131
 
132
+TARGET_CFLAGS+= -std=gnu99
133
+
129 134
 EXTRA_LDFLAGS+= \
130 135
 	-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
136
+	$(if $(ICONV_FULL),-liconv) \
131 137
 
132 138
 
133 139
 define Package/gst1-plugins-ugly/install
@@ -164,8 +170,9 @@ define GstBuildLibrary
164 170
 
165 171
   $$(eval $$(call BuildPackage,libgst1$(1)))
166 172
 endef
167
-$(eval $(call GstBuildLibrary,photography,photography,,))
168 173
 
174
+$(eval $(call GstBuildLibrary,photography,photography,,))
175
+$(eval $(call GstBuildLibrary,basecamerabinsrc,basecamerabinsrc,app,))
169 176
 
170 177
 # 1: short name
171 178
 # 2: description
@@ -199,26 +206,26 @@ define GstBuildPlugin
199 206
   $$(eval $$(call BuildPackage,gst1-mod-$(1)))
200 207
 endef
201 208
 
202
-$(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,,,))
203
-$(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,,,))
204
-$(eval $(call GstBuildPlugin,aiff,aiff support,,,))
209
+$(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,audio,,))
210
+$(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,audio,,))
211
+$(eval $(call GstBuildPlugin,aiff,aiff support,audio tag,,))
205 212
 $(eval $(call GstBuildPlugin,asfmux,asf muxing support,rtp,,))
206
-$(eval $(call GstBuildPlugin,audioparsersbad,audioparsers support,audio tag,,))
213
+#$(eval $(call GstBuildPlugin,audioparsersbad,audioparsers support,audio tag,,))
207 214
 $(eval $(call GstBuildPlugin,autoconvert,autoconvert support,,,))
208
-$(eval $(call GstBuildPlugin,camerabin,camerabin support,photography,,))
209
-$(eval $(call GstBuildPlugin,legacyresample,legacyresample support,,,+liboil +librt))
215
+$(eval $(call GstBuildPlugin,camerabin2,camerabin support,basecamerabinsrc photography tag pbutils app,,))
216
+#$(eval $(call GstBuildPlugin,legacyresample,legacyresample support,,,+liboil +librt))
210 217
 $(eval $(call GstBuildPlugin,bayer,bayer support,video,,))
211
-$(eval $(call GstBuildPlugin,cdxaparse,cdxaparse support,riff,,))
218
+#$(eval $(call GstBuildPlugin,cdxaparse,cdxaparse support,riff,,))
212 219
 $(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
213
-$(eval $(call GstBuildPlugin,dccp,dccp support,,,))
214
-$(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,,,))
215
-$(eval $(call GstBuildPlugin,dtmf,dtmf support,rtp,,))
220
+#$(eval $(call GstBuildPlugin,dccp,dccp support,,,))
221
+$(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,video,,))
222
+#$(eval $(call GstBuildPlugin,dtmf,dtmf support,rtp,,))
216 223
 $(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
217 224
 $(eval $(call GstBuildPlugin,festival,festival support,audio,,))
218 225
 $(eval $(call GstBuildPlugin,freeze,freeze support,,,))
219 226
 $(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
220 227
 $(eval $(call GstBuildPlugin,h264parse,h264parse support,,,))
221
-$(eval $(call GstBuildPlugin,hdvparse,hdvparse support,,,))
228
+#$(eval $(call GstBuildPlugin,hdvparse,hdvparse support,,,))
222 229
 $(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
223 230
 $(eval $(call GstBuildPlugin,invtelecine,invtelecine support,,,))
224 231
 $(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,))
@@ -229,10 +236,10 @@ $(eval $(call GstBuildPlugin,mpegtsmux,mpegtsmux support,,,))
229 236
 $(eval $(call GstBuildPlugin,mpegpsmux,mpegpsmux support,,,))
230 237
 $(eval $(call GstBuildPlugin,mpeg4videoparse,mpeg4videoparse support,,,))
231 238
 $(eval $(call GstBuildPlugin,mpegvideoparse,mpegvideoparse support,,,))
232
-$(eval $(call GstBuildPlugin,mve,mve support,,,))
239
+#$(eval $(call GstBuildPlugin,mve,mve support,,,))
233 240
 $(eval $(call GstBuildPlugin,mxf,mxf support,video,,))
234 241
 $(eval $(call GstBuildPlugin,nsf,nsf support,,,))
235
-$(eval $(call GstBuildPlugin,nuvdemux,nuvdemux support,,,))
242
+#$(eval $(call GstBuildPlugin,nuvdemux,nuvdemux support,,,))
236 243
 $(eval $(call GstBuildPlugin,pcapparse,pcapparse support,,,))
237 244
 $(eval $(call GstBuildPlugin,pnm,pnm support,video,,))
238 245
 $(eval $(call GstBuildPlugin,qtmux,qtmux support,tag,,))
@@ -247,10 +254,10 @@ $(eval $(call GstBuildPlugin,siren,siren support,rtp,,))
247 254
 $(eval $(call GstBuildPlugin,speed,speed support,,,))
248 255
 $(eval $(call GstBuildPlugin,subenc,subenc support,controller,,))
249 256
 $(eval $(call GstBuildPlugin,stereo,stereo support,audio controller,,))
250
-$(eval $(call GstBuildPlugin,tta,tta support,,,))
257
+#$(eval $(call GstBuildPlugin,tta,tta support,,,))
251 258
 $(eval $(call GstBuildPlugin,valve,valve support,,,))
252
-$(eval $(call GstBuildPlugin,videomeasure,videomeasure support,video,,))
253
-$(eval $(call GstBuildPlugin,videosignal,videosignal support,video,,))
254
-$(eval $(call GstBuildPlugin,vmnc,vmnc support,,,))
259
+#$(eval $(call GstBuildPlugin,videomeasure,videomeasure support,video,,))
260
+#$(eval $(call GstBuildPlugin,videosignal,videosignal support,video,,))
261
+#$(eval $(call GstBuildPlugin,vmnc,vmnc support,,,))
255 262
 
256 263
 $(eval $(call BuildPackage,gst1-plugins-bad))

+ 5
- 4
multimedia/gst1-plugins-base/Makefile View File

@@ -1,5 +1,5 @@
1 1
 #
2
-# Copyright (C) 2008-2011 OpenWrt.org
2
+# Copyright (C) 2008-2014 OpenWrt.org
3 3
 #
4 4
 # This is free software, licensed under the GNU General Public License v2.
5 5
 # See /LICENSE for more information.
@@ -10,7 +10,9 @@ include $(TOPDIR)/rules.mk
10 10
 PKG_NAME:=gst1-plugins-base
11 11
 PKG_VERSION:=1.2.3
12 12
 PKG_RELEASE:=1
13
+
13 14
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
15
+
14 16
 PKG_LICENSE:=LGPLv2 GPLv2
15 17
 PKG_LICENSE_FILE:=COPYING.LIB COPYING
16 18
 
@@ -41,14 +43,12 @@ PKG_INSTALL:=1
41 43
 include $(INCLUDE_DIR)/package.mk
42 44
 include $(INCLUDE_DIR)/nls.mk
43 45
 
44
-# -liconv crept in from pkg-config, to be revisited later
45
-include $(INCLUDE_DIR)/nls.mk
46
-
47 46
 define Package/gstreamer1/Default
48 47
   CATEGORY:=Multimedia
49 48
   SECTION:=multimedia
50 49
   TITLE:=GStreamer
51 50
   URL:=http://gstreamer.freedesktop.org/
51
+  DEPENDS:= $(ICONV_DEPENDS)
52 52
 endef
53 53
 
54 54
 define Package/gstreamer1/description/Default
@@ -116,6 +116,7 @@ CONFIGURE_ARGS += \
116 116
 
117 117
 EXTRA_LDFLAGS+= \
118 118
 	-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
119
+	$(if $(ICONV_FULL),-liconv) \
119 120
 
120 121
 
121 122
 define Build/InstallDev

+ 9
- 5
multimedia/gst1-plugins-good/Makefile View File

@@ -1,4 +1,4 @@
1
-## Copyright (C) 2009-2011 OpenWrt.org
1
+## Copyright (C) 2009-2014 OpenWrt.org
2 2
 #
3 3
 # This is free software, licensed under the GNU General Public License v2.
4 4
 # See /LICENSE for more information.
@@ -7,16 +7,18 @@
7 7
 include $(TOPDIR)/rules.mk
8 8
 
9 9
 PKG_NAME:=gst1-plugins-good
10
-PKG_VERSION:=1.0.7
10
+PKG_VERSION:=1.2.3
11 11
 PKG_RELEASE:=1
12
+
12 13
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
14
+
13 15
 PKG_LICENSE:=LGPLv2
14 16
 PKG_LICENSE_FILE:=COPYING
15 17
 
16 18
 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION)
17 19
 PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz
18 20
 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/
19
-PKG_MD5SUM:=e4b1c825475a9b478fe29e8e9f34516f
21
+PKG_MD5SUM:=1a1f96bc27ad446e559474299160a9a8
20 22
 
21 23
 PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil
22 24
 
@@ -31,6 +33,7 @@ define Package/gstreamer1/Default
31 33
   SECTION:=multimedia
32 34
   TITLE:=GStreamer
33 35
   URL:=http://gstreamer.freedesktop.org/
36
+  DEPENDS:= $(ICONV_DEPENDS)
34 37
 endef
35 38
 
36 39
 define Package/gstreamer1/description/Default
@@ -113,6 +116,7 @@ CONFIGURE_ARGS += \
113 116
 
114 117
 EXTRA_LDFLAGS+= \
115 118
 	-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
119
+	$(if $(ICONV_FULL),-liconv) \
116 120
 
117 121
 
118 122
 define Package/gst1-plugins-good/install
@@ -162,13 +166,13 @@ $(eval $(call GstBuildPlugin,id3demux,ID3v1/v2 demuxer,pbutils tag,,))
162 166
 $(eval $(call GstBuildPlugin,icydemux,icy demuxer,audio tag,,))
163 167
 $(eval $(call GstBuildPlugin,interleave,audio interleave,audio,,))
164 168
 $(eval $(call GstBuildPlugin,level,audio level,audio,,))
165
-$(eval $(call GstBuildPlugin,audioparsers,audioparsers,audio tag,,))
169
+$(eval $(call GstBuildPlugin,audioparsers,audioparsers,audio tag pbutils,,))
166 170
 $(eval $(call GstBuildPlugin,multifile,multiple files access,video,,))
167 171
 $(eval $(call GstBuildPlugin,multipart,multipart stream handling,,,))
168 172
 $(eval $(call GstBuildPlugin,ossaudio,OSS audio support,audio,,))
169 173
 $(eval $(call GstBuildPlugin,replaygain,volume normalization,pbutils,,))
170 174
 $(eval $(call GstBuildPlugin,rtp,RTP,audio rtp tag pbutils video,,))
171
-$(eval $(call GstBuildPlugin,rtsp,RTSP,rtp rtsp sdp,,))
175
+$(eval $(call GstBuildPlugin,rtsp,RTSP,net rtp rtsp sdp,,))
172 176
 $(eval $(call GstBuildPlugin,souphttpsrc,soup input,audio tag,,+libsoup))
173 177
 $(eval $(call GstBuildPlugin,spectrum,spectrum data output,audio fft,,))
174 178
 $(eval $(call GstBuildPlugin,udp,UDP,net,,))

+ 5
- 1
multimedia/gst1-plugins-ugly/Makefile View File

@@ -1,5 +1,5 @@
1 1
 #
2
-# Copyright (C) 2009-2011 OpenWrt.org
2
+# Copyright (C) 2009-2014 OpenWrt.org
3 3
 #
4 4
 # This is free software, licensed under the GNU General Public License v2.
5 5
 # See /LICENSE for more information.
@@ -10,7 +10,9 @@ include $(TOPDIR)/rules.mk
10 10
 PKG_NAME:=gst1-plugins-ugly
11 11
 PKG_VERSION:=1.2.3
12 12
 PKG_RELEASE:=1
13
+
13 14
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
15
+
14 16
 PKG_LICENSE:=LGPLv2
15 17
 PKG_LICENSE_FILE:=COPYING
16 18
 
@@ -37,6 +39,7 @@ define Package/gstreamer1/Default
37 39
   SECTION:=multimedia
38 40
   TITLE:=GStreamer
39 41
   URL:=http://gstreamer.freedesktop.org/
42
+  DEPENDS:= $(ICONV_DEPENDS)
40 43
 endef
41 44
 
42 45
 define Package/gstreamer1/description/Default
@@ -91,6 +94,7 @@ CONFIGURE_ARGS += \
91 94
 
92 95
 EXTRA_LDFLAGS+= \
93 96
 	-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
97
+	$(if $(ICONV_FULL),-liconv) \
94 98
 
95 99
 
96 100
 define Package/gst1-plugins-ugly/install

+ 5
- 2
multimedia/gstreamer1/Makefile View File

@@ -1,5 +1,5 @@
1 1
 #
2
-# Copyright (C) 2008-2012 OpenWrt.org
2
+# Copyright (C) 2008-2014 OpenWrt.org
3 3
 #
4 4
 # This is free software, licensed under the GNU General Public License v2.
5 5
 # See /LICENSE for more information.
@@ -10,7 +10,9 @@ include $(TOPDIR)/rules.mk
10 10
 PKG_NAME:=gstreamer1
11 11
 PKG_VERSION:=1.2.3
12 12
 PKG_RELEASE:=1
13
+
13 14
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
15
+
14 16
 PKG_LICENSE:=LGPLv2
15 17
 PKG_LICENSE_FILE:=COPYING
16 18
 
@@ -32,6 +34,7 @@ define Package/gstreamer1/Default
32 34
   SECTION:=multimedia
33 35
   TITLE:=GStreamer
34 36
   URL:=http://gstreamer.freedesktop.org/
37
+  DEPENDS:= $(ICONV_DEPENDS) $(INTL_DEPENDS)
35 38
 endef
36 39
 
37 40
 define Package/gstreamer1/description/Default
@@ -95,7 +98,7 @@ CONFIGURE_ARGS += \
95 98
 
96 99
 EXTRA_LDFLAGS+= \
97 100
 	-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
98
-	-L$(ICONV_PREFIX)/lib -L$(INTL_PREFIX)/lib
101
+	$(if $(ICONV_FULL),-liconv)
99 102
 
100 103
 define Build/InstallDev
101 104
 	$(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION)