|
@@ -0,0 +1,136 @@
|
|
1
|
+#
|
|
2
|
+# Copyright (C) 2009-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-ugly
|
|
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-ugly-$(PKG_VERSION)
|
|
16
|
+PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz
|
|
17
|
+PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/
|
|
18
|
+PKG_MD5SUM:=7ae60e2f759f58f32af5fcdc3c9193c4
|
|
19
|
+
|
|
20
|
+PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil
|
|
21
|
+PKG_CONFIG_DEPENDS:= \
|
|
22
|
+ CONFIG_PACKAGE_gst1-mod-asf \
|
|
23
|
+ CONFIG_PACKAGE_gst1-mod-lame \
|
|
24
|
+ CONFIG_PACKAGE_gst1-mod-mad \
|
|
25
|
+ CONFIG_PACKAGE_gst1-mod-mpeg2dec \
|
|
26
|
+
|
|
27
|
+PKG_FIXUP:=autoreconf
|
|
28
|
+PKG_INSTALL:=1
|
|
29
|
+
|
|
30
|
+include $(INCLUDE_DIR)/package.mk
|
|
31
|
+include $(INCLUDE_DIR)/nls.mk
|
|
32
|
+
|
|
33
|
+define Package/gstreamer1/Default
|
|
34
|
+ CATEGORY:=Multimedia
|
|
35
|
+ SECTION:=multimedia
|
|
36
|
+ TITLE:=GStreamer
|
|
37
|
+ URL:=http://gstreamer.freedesktop.org/
|
|
38
|
+endef
|
|
39
|
+
|
|
40
|
+define Package/gstreamer1/description/Default
|
|
41
|
+ GStreamer open source multimedia framework
|
|
42
|
+endef
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+define Package/gst1-plugins-ugly
|
|
46
|
+$(call Package/gstreamer1/Default)
|
|
47
|
+ TITLE+= plugins collection (ugly)
|
|
48
|
+ DEPENDS+= $(GST_DEPENDS)
|
|
49
|
+endef
|
|
50
|
+
|
|
51
|
+define Package/gts-plugins-ugly/description
|
|
52
|
+$(call Package/gstreamer1/description/Default)
|
|
53
|
+ .
|
|
54
|
+ This meta package contains only dependencies to the other plugins from
|
|
55
|
+ the ugly plugins collection.
|
|
56
|
+endef
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1))
|
|
60
|
+
|
|
61
|
+GST_VERSION:=1.0
|
|
62
|
+
|
|
63
|
+CONFIGURE_ARGS += \
|
|
64
|
+ --disable-debug \
|
|
65
|
+ --disable-examples \
|
|
66
|
+ \
|
|
67
|
+ --disable-a52dec \
|
|
68
|
+ --disable-amrnb \
|
|
69
|
+ --disable-amrwb \
|
|
70
|
+ $(call GST_COND_SELECT,asf) \
|
|
71
|
+ --disable-cdio \
|
|
72
|
+ --disable-dvdlpcmdec \
|
|
73
|
+ --disable-dvdread \
|
|
74
|
+ --disable-dvdsub \
|
|
75
|
+ --disable-iec958 \
|
|
76
|
+ $(call GST_COND_SELECT,lame) \
|
|
77
|
+ $(call GST_COND_SELECT,mad) \
|
|
78
|
+ $(call GST_COND_SELECT,mpeg2dec) \
|
|
79
|
+ --disable-mpegaudioparse \
|
|
80
|
+ --disable-mpegstream \
|
|
81
|
+ --disable-realmedia \
|
|
82
|
+ --disable-sidplay \
|
|
83
|
+ --disable-synaesthesia \
|
|
84
|
+ --disable-twolame \
|
|
85
|
+ --disable-x264 \
|
|
86
|
+ \
|
|
87
|
+ --without-libiconv-prefix \
|
|
88
|
+ --without-libintl-prefix \
|
|
89
|
+
|
|
90
|
+EXTRA_LDFLAGS+= \
|
|
91
|
+ -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+define Package/gst1-plugins-ugly/install
|
|
95
|
+ /bin/true
|
|
96
|
+endef
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+# 1: short name
|
|
100
|
+# 2: description
|
|
101
|
+# 3: dependencies on other gstreamer libraries (short name)
|
|
102
|
+# 4: dependencies on other gstreamer plugins (short name)
|
|
103
|
+# 5: dependencies on other packages
|
|
104
|
+define GstBuildPlugin
|
|
105
|
+
|
|
106
|
+ GST_DEPENDS += +gst1-mod-$(1)
|
|
107
|
+
|
|
108
|
+ define Package/gst1-mod-$(1)
|
|
109
|
+ $(call Package/gstreamer1/Default)
|
|
110
|
+ TITLE+= $(2) plugin (ugly)
|
|
111
|
+ DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
|
|
112
|
+ endef
|
|
113
|
+
|
|
114
|
+ define Package/gst1-mod-$(1)/description
|
|
115
|
+ $(call Package/gstreamer1/description/Default)
|
|
116
|
+ .
|
|
117
|
+ This package contains the GStreamer $(2) plugin.
|
|
118
|
+ endef
|
|
119
|
+
|
|
120
|
+ define Package/gst1-mod-$(1)/install
|
|
121
|
+ $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
|
|
122
|
+ ( cd $(PKG_INSTALL_DIR); $(CP) \
|
|
123
|
+ ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
|
|
124
|
+ $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
|
|
125
|
+ )
|
|
126
|
+ endef
|
|
127
|
+
|
|
128
|
+ $$(eval $$(call BuildPackage,gst1-mod-$(1)))
|
|
129
|
+endef
|
|
130
|
+
|
|
131
|
+$(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,))
|
|
132
|
+$(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib))
|
|
133
|
+$(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad))
|
|
134
|
+$(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2))
|
|
135
|
+
|
|
136
|
+$(eval $(call BuildPackage,gst1-plugins-ugly))
|