2 # Copyright (C) 2009-2015 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
:=gst1-plugins-ugly
14 PKG_MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
17 PKG_LICENSE_FILES
:=COPYING
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/gst-plugins-ugly-
$(PKG_VERSION
)
20 PKG_SOURCE
:=gst-plugins-ugly-
$(PKG_VERSION
).
tar.xz
21 PKG_SOURCE_URL
:=http
://gstreamer.freedesktop.org
/src
/gst-plugins-ugly
/
22 PKG_MD5SUM
:=0f0e30336e3155443cd5bfec5c215d56
24 PKG_BUILD_DEPENDS
:= libgstreamer1 gstreamer1-plugins-base
25 PKG_CONFIG_DEPENDS
:= \
26 CONFIG_PACKAGE_gst1-mod-asf \
27 CONFIG_PACKAGE_gst1-mod-lame \
28 CONFIG_PACKAGE_gst1-mod-mad \
29 CONFIG_PACKAGE_gst1-mod-mpeg2dec \
34 include $(INCLUDE_DIR
)/package.mk
35 include $(INCLUDE_DIR
)/nls.mk
39 define Package
/gstreamer1-ugly
/Default
43 URL
:=http
://gstreamer.freedesktop.org
/
44 DEPENDS
:= +libgstreamer1
$(ICONV_DEPENDS
)
47 define Package
/gstreamer1-ugly
/description
/Default
48 GStreamer open source multimedia framework
52 define Package
/gst1-plugins-ugly
53 $(call Package
/gstreamer1-ugly
/Default
)
54 TITLE
+= plugins collection
(ugly
)
55 DEPENDS
+= $(GST_DEPENDS
)
59 define Package
/gts-plugins-ugly
/description
60 $(call Package
/gstreamer1-ugly
/description
/Default
)
62 This meta package contains only dependencies to the other plugins from
63 the ugly plugins collection.
67 define Package
/gstreamer1-plugins-ugly
68 $(call Package
/gstreamer1-ugly
/Default
)
69 TITLE
+= plugins collection
(ugly
)
70 DEPENDS
:=+ALL
:gst1-plugins-ugly
+gstreamer1-plugins-base
73 define Package
/gstreamer1-plugins-ugly
/config
74 menu
"Select GStreamer ugly modules"
75 depends on PACKAGE_gstreamer1-plugins-ugly
78 config gst1-plugins-ugly-all
79 bool
"Include all GStreamer ugly plugins"
80 select PACKAGE_gst1-plugins-ugly
84 $(foreach mod
,$(GST_UGLY_MODULES
), \
85 config PACKAGE_gst1-mod-
$(mod
)
86 prompt
"GStreamer $(mod) module"
94 GST_COND_SELECT
= $(patsubst %,$(if
$(CONFIG_PACKAGE_gst1-mod-
$(1)),--enable
,--disable
)-%,$(1))
105 $(call GST_COND_SELECT
,asf
) \
107 --disable-dvdlpcmdec \
111 $(call GST_COND_SELECT
,lame
) \
112 $(call GST_COND_SELECT
,mad
) \
113 $(call GST_COND_SELECT
,mpeg2dec
) \
114 --disable-mpegaudioparse \
115 --disable-mpegstream \
116 --disable-realmedia \
118 --disable-synaesthesia \
122 --without-libiconv-prefix \
123 --without-libintl-prefix \
126 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
127 $(if
$(ICONV_FULL
),-liconv
) \
130 define Package
/gst1-plugins-ugly
/install
137 # 3: dependencies on other gstreamer libraries (short name)
138 # 4: dependencies on other gstreamer plugins (short name)
139 # 5: dependencies on other packages
140 define GstBuildPlugin
142 GST_DEPENDS
+= +gst1-mod-
$(1)
144 GST_UGLY_MODULES
+= $(1)
146 define Package
/gst1-mod-
$(1)
147 $(call Package
/gstreamer1-ugly
/Default
)
148 TITLE
+= $(2) plugin
(ugly
)
149 DEPENDS
+= +libgstreamer1
$$(foreach p
,$(3),+libgst1
$$(p
)) $$(foreach p
,$(4),+gst1-mod-
$$(p
)) $(5)
153 define Package
/gst1-mod-
$(1)/description
154 $(call Package
/gstreamer1-ugly
/description
/Default
)
156 This package contains the GStreamer
$(2) plugin.
159 define Package
/gst1-mod-
$(1)/install
160 $(INSTALL_DIR
) $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
161 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
162 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
$(1).so
* \
163 $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
167 $$(eval
$$(call BuildPackage
,gst1-mod-
$(1)))
170 $(eval
$(call GstBuildPlugin
,asf
,ASF demuxer
,audio video riff rtp rtsp sdp tag
,,))
171 $(eval
$(call GstBuildPlugin
,lame
,MP3 encoder
(using LAME
),audio
,,+lame-lib
))
172 $(eval
$(call GstBuildPlugin
,mad
,MP3 decoder
(using MAD
),audio tag
,,+libid3tag
+libmad
))
173 $(eval
$(call GstBuildPlugin
,mpeg2dec
,MPEG decoder
,video
,,+libmpeg2
))
175 $(eval
$(call BuildPackage
,gstreamer1-plugins-ugly
))
176 $(eval
$(call BuildPackage
,gst1-plugins-ugly
))