2 # Copyright (C) 2009-2016 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
> \
15 Ted Hess
<thess@kitschensync.net
>
18 PKG_LICENSE_FILES
:=COPYING
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/gst-plugins-ugly-
$(PKG_VERSION
)
21 PKG_SOURCE
:=gst-plugins-ugly-
$(PKG_VERSION
).
tar.xz
22 PKG_SOURCE_URL
:=http
://gstreamer.freedesktop.org
/src
/gst-plugins-ugly
/
23 PKG_HASH
:=9c5b33a2a98fc1d6d6c99a1b536b1fb2de45f53cc8bf8ab85a8b8141fed1a8ac
25 PKG_BUILD_DEPENDS
:= libgstreamer1 gstreamer1-plugins-base
26 PKG_CONFIG_DEPENDS
:= \
27 CONFIG_PACKAGE_gst1-mod-asf \
28 CONFIG_PACKAGE_gst1-mod-lame \
29 CONFIG_PACKAGE_gst1-mod-mad \
30 CONFIG_PACKAGE_gst1-mod-mpeg2dec \
35 include $(INCLUDE_DIR
)/package.mk
36 include $(INCLUDE_DIR
)/nls.mk
40 define Package
/gstreamer1-ugly
/Default
44 URL
:=http
://gstreamer.freedesktop.org
/
45 DEPENDS
:= +libgstreamer1
$(ICONV_DEPENDS
)
48 define Package
/gstreamer1-ugly
/description
/Default
49 GStreamer open source multimedia framework
53 define Package
/gst1-plugins-ugly
54 $(call Package
/gstreamer1-ugly
/Default
)
55 TITLE
+= plugins collection
(ugly
)
56 DEPENDS
+= $(GST_DEPENDS
)
60 define Package
/gts-plugins-ugly
/description
61 $(call Package
/gstreamer1-ugly
/description
/Default
)
63 This meta package contains only dependencies to the other plugins from
64 the ugly plugins collection.
68 define Package
/gstreamer1-plugins-ugly
69 $(call Package
/gstreamer1-ugly
/Default
)
70 TITLE
+= plugins collection
(ugly
)
71 DEPENDS
:=+ALL
:gst1-plugins-ugly
+gstreamer1-plugins-base
74 define Package
/gstreamer1-plugins-ugly
/config
75 menu
"Select GStreamer ugly modules"
76 depends on PACKAGE_gstreamer1-plugins-ugly
79 config gst1-plugins-ugly-all
80 bool
"Include all GStreamer ugly plugins"
81 select PACKAGE_gst1-plugins-ugly
85 $(foreach mod
,$(GST_UGLY_MODULES
), \
86 config PACKAGE_gst1-mod-
$(mod
)
87 prompt
"GStreamer $(mod) module"
95 GST_COND_SELECT
= $(patsubst %,$(if
$(CONFIG_PACKAGE_gst1-mod-
$(1)),--enable
,--disable
)-%,$(1))
106 $(call GST_COND_SELECT
,asf
) \
108 --disable-dvdlpcmdec \
112 $(call GST_COND_SELECT
,lame
) \
113 $(call GST_COND_SELECT
,mad
) \
114 $(call GST_COND_SELECT
,mpeg2dec
) \
115 --disable-mpegaudioparse \
116 --disable-mpegstream \
117 --disable-realmedia \
119 --disable-synaesthesia \
123 --without-libiconv-prefix \
124 --without-libintl-prefix \
127 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
128 $(if
$(ICONV_FULL
),-liconv
) \
131 define Package
/gst1-plugins-ugly
/install
138 # 3: dependencies on other gstreamer libraries (short name)
139 # 4: dependencies on other gstreamer plugins (short name)
140 # 5: dependencies on other packages
141 define GstBuildPlugin
143 GST_DEPENDS
+= +gst1-mod-
$(1)
145 GST_UGLY_MODULES
+= $(1)
147 define Package
/gst1-mod-
$(1)
148 $(call Package
/gstreamer1-ugly
/Default
)
149 TITLE
+= $(2) plugin
(ugly
)
150 DEPENDS
+= +libgstreamer1
$$(foreach p
,$(3),+libgst1
$$(p
)) $$(foreach p
,$(4),+gst1-mod-
$$(p
)) $(5)
154 define Package
/gst1-mod-
$(1)/description
155 $(call Package
/gstreamer1-ugly
/description
/Default
)
157 This package contains the GStreamer
$(2) plugin.
160 define Package
/gst1-mod-
$(1)/install
161 $(INSTALL_DIR
) $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
162 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
163 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
$(1).so
* \
164 $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
168 $$(eval
$$(call BuildPackage
,gst1-mod-
$(1)))
171 $(eval
$(call GstBuildPlugin
,asf
,ASF demuxer
,audio video riff rtp rtsp sdp tag
,,))
172 $(eval
$(call GstBuildPlugin
,lame
,MP3 encoder
(using LAME
),audio
,,+lame-lib
))
173 $(eval
$(call GstBuildPlugin
,mad
,MP3 decoder
(using MAD
),audio tag
,,+libid3tag
+libmad
))
174 $(eval
$(call GstBuildPlugin
,mpeg2dec
,MPEG decoder
,video
,,+libmpeg2
))
176 $(eval
$(call BuildPackage
,gstreamer1-plugins-ugly
))
177 $(eval
$(call BuildPackage
,gst1-plugins-ugly
))