2 # Copyright (C) 2009-2011 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:=gst-plugins-ugly
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/
16 PKG_MD5SUM:=ba26045c8c8c91f0d48d327ccf53ac0c
18 PKG_BUILD_DEPENDS:= gstreamer gst-plugins-base liboil
19 PKG_CONFIG_Dba26045c8c8c91f0d48d327ccf53ac0cEPENDS:= \
20 CONFIG_PACKAGE_gst-mod-asf \
21 CONFIG_PACKAGE_gst-mod-lame \
22 CONFIG_PACKAGE_gst-mod-mad \
23 CONFIG_PACKAGE_gst-mod-mpeg2dec \
28 include $(INCLUDE_DIR)/package.mk
29 include $(INCLUDE_DIR)/nls.mk
31 define Package/gstreamer/Default
35 URL:=http://gstreamer.freedesktop.org/
38 define Package/gstreamer/description/Default
39 GStreamer open source multimedia framework
43 define Package/gst-plugins-ugly
44 $(call Package/gstreamer/Default)
45 TITLE+= plugins collection (ugly)
46 DEPENDS+= $(GST_DEPENDS)
49 define Package/gts-plugins-ugly/description
50 $(call Package/gstreamer/description/Default)
52 This meta package contains only dependencies to the other plugins from
53 the ugly plugins collection.
57 GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst-mod-$(1)),--enable,--disable)-%,$(1))
67 $(call GST_COND_SELECT,asf) \
69 --disable-dvdlpcmdec \
73 $(call GST_COND_SELECT,lame) \
74 $(call GST_COND_SELECT,mad) \
75 $(call GST_COND_SELECT,mpeg2dec) \
76 --disable-mpegaudioparse \
77 --disable-mpegstream \
80 --disable-synaesthesia \
84 --without-libiconv-prefix \
85 --without-libintl-prefix \
88 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
91 define Package/gst-plugins-ugly/install
98 # 3: dependencies on other gstreamer libraries (short name)
99 # 4: dependencies on other gstreamer plugins (short name)
100 # 5: dependencies on other packages
101 define GstBuildPlugin
103 GST_DEPENDS += +gst-mod-$(1)
105 define Package/gst-mod-$(1)
106 $(call Package/gstreamer/Default)
107 TITLE+= $(2) plugin (ugly)
108 DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $$(foreach p,$(4),+gst-mod-$$(p)) $(5)
111 define Package/gst-mod-$(1)/description
112 $(call Package/gstreamer/description/Default)
114 This package contains the GStreamer $(2) plugin.
117 define Package/gst-mod-$(1)/install
118 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
119 ( cd $(PKG_INSTALL_DIR); $(CP) \
120 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
121 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
125 $$(eval $$(call BuildPackage,gst-mod-$(1)))
128 $(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,))
129 $(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib))
130 $(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad))
131 $(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2))
133 $(eval $(call BuildPackage,gst-plugins-ugly))