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
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=gst-plugins-ugly-
$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://gstreamer.freedesktop.org
/src
/gst-plugins-ugly
16 PKG_HASH
:=df32803e98f8a9979373fa2ca7e05e62f977b1097576d3a80619d9f5c69f66d9
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/gst-plugins-ugly-
$(PKG_VERSION
)
19 PKG_MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
> \
20 Ted Hess
<thess@kitschensync.net
>
21 PKG_LICENSE
:=LGPL-2.1
-or-later
22 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
28 include $(INCLUDE_DIR
)/meson.mk
30 PKG_CONFIG_DEPENDS
:= \
31 CONFIG_PACKAGE_gst1-mod-asf \
32 CONFIG_PACKAGE_gst1-mod-mpeg2dec \
36 define Package
/gstreamer1-ugly
/Default
40 URL
:=https
://gstreamer.freedesktop.org
/
41 DEPENDS
:= +libgstreamer1
$(ICONV_DEPENDS
)
44 define Package
/gstreamer1-ugly
/description
/Default
45 GStreamer open source multimedia framework
49 define Package
/gst1-plugins-ugly
50 $(call Package
/gstreamer1-ugly
/Default
)
51 TITLE
+= plugins collection
(ugly
)
52 DEPENDS
+= $(GST_DEPENDS
)
56 define Package
/gts-plugins-ugly
/description
57 $(call Package
/gstreamer1-ugly
/description
/Default
)
59 This meta package contains only dependencies to the other plugins from
60 the ugly plugins collection.
64 define Package
/gstreamer1-plugins-ugly
65 $(call Package
/gstreamer1-ugly
/Default
)
66 TITLE
+= plugins collection
(ugly
)
67 DEPENDS
:=+ALL
:gst1-plugins-ugly
+gstreamer1-plugins-base
70 define Package
/gstreamer1-plugins-ugly
/config
71 menu
"Select GStreamer ugly modules"
72 depends on PACKAGE_gstreamer1-plugins-ugly
75 config gst1-plugins-ugly-all
76 bool
"Include all GStreamer ugly plugins"
77 select PACKAGE_gst1-plugins-ugly
81 $(foreach mod
,$(GST_UGLY_MODULES
), \
82 config PACKAGE_gst1-mod-
$(mod
)
83 prompt
"GStreamer $(mod) module"
91 GST_COND_SELECT
= -D
$(1)=$(if
$(CONFIG_PACKAGE_gst1-mod-
$(1)),en
,dis
)abled
96 -Dasfdemux
=$(if
$(CONFIG_PACKAGE_gst1-mod-asf
),en
,dis
)abled \
97 -Ddvdlpcmdec
=disabled \
99 -Drealmedia
=disabled \
104 -Damrwbdec
=disabled \
107 $(call GST_COND_SELECT
,mpeg2dec
) \
114 -Dgobject-cast-checks
=disabled \
115 -Dglib-asserts
=disabled \
116 -Dglib-checks
=disabled \
119 define Package
/gst1-plugins-ugly
/install
126 # 3: dependencies on other gstreamer libraries (short name)
127 # 4: dependencies on other gstreamer plugins (short name)
128 # 5: dependencies on other packages
129 define GstBuildPlugin
131 GST_DEPENDS
+= +gst1-mod-
$(1)
133 GST_UGLY_MODULES
+= $(1)
135 define Package
/gst1-mod-
$(1)
136 $(call Package
/gstreamer1-ugly
/Default
)
137 TITLE
+= $(2) plugin
(ugly
)
138 DEPENDS
+= +libgstreamer1
$$(foreach p
,$(3),+libgst1
$$(p
)) $$(foreach p
,$(4),+gst1-mod-
$$(p
)) $(5)
142 define Package
/gst1-mod-
$(1)/description
143 $(call Package
/gstreamer1-ugly
/description
/Default
)
145 This package contains the GStreamer
$(2) plugin.
148 define Package
/gst1-mod-
$(1)/install
149 $(INSTALL_DIR
) $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
150 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
151 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
$(1).so
* \
152 $$(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
156 $$(eval
$$(call BuildPackage
,gst1-mod-
$(1)))
159 $(eval
$(call GstBuildPlugin
,asf
,ASF demuxer
,audio video riff rtp rtsp sdp tag
,,))
160 $(eval
$(call GstBuildPlugin
,mpeg2dec
,MPEG decoder
,video
,,+libmpeg2
))
162 $(eval
$(call BuildPackage
,gstreamer1-plugins-ugly
))
163 $(eval
$(call BuildPackage
,gst1-plugins-ugly
))