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.bz2
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/
16 PKG_MD5SUM:=21c034a762a5da252f91640e53bfe457
18 PKG_BUILD_DEPENDS:= gstreamer gst-plugins-base liboil
19 PKG_CONFIG_DEPENDS:= \
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/
39 define Package/gstreamer/description/Default
40 GStreamer open source multimedia framework
44 define Package/gst-plugins-ugly
45 $(call Package/gstreamer/Default)
46 TITLE+= plugins collection (ugly)
47 DEPENDS+= $(GST_DEPENDS)
50 define Package/gts-plugins-ugly/description
51 $(call Package/gstreamer/description/Default)
53 This meta package contains only dependencies to the other plugins from
54 the ugly plugins collection.
58 GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst-mod-$(1)),--enable,--disable)-%,$(1))
69 $(call GST_COND_SELECT,asf) \
71 --disable-dvdlpcmdec \
75 $(call GST_COND_SELECT,lame) \
76 $(call GST_COND_SELECT,mad) \
77 $(call GST_COND_SELECT,mpeg2dec) \
78 --disable-mpegaudioparse \
79 --disable-mpegstream \
82 --disable-synaesthesia \
86 --without-libiconv-prefix \
87 --without-libintl-prefix \
90 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
93 define Package/gst-plugins-ugly/install
100 # 3: dependencies on other gstreamer libraries (short name)
101 # 4: dependencies on other gstreamer plugins (short name)
102 # 5: dependencies on other packages
103 define GstBuildPlugin
105 GST_DEPENDS += +gst-mod-$(1)
107 define Package/gst-mod-$(1)
108 $(call Package/gstreamer/Default)
109 TITLE+= $(2) plugin (ugly)
110 DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $$(foreach p,$(4),+gst-mod-$$(p)) $(5)
113 define Package/gst-mod-$(1)/description
114 $(call Package/gstreamer/description/Default)
116 This package contains the GStreamer $(2) plugin.
119 define Package/gst-mod-$(1)/install
120 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
121 ( cd $(PKG_INSTALL_DIR); $(CP) \
122 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
123 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
127 $$(eval $$(call BuildPackage,gst-mod-$(1)))
130 $(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,))
131 $(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),,,+lame-lib))
132 $(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad))
133 $(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2))
135 $(eval $(call BuildPackage,gst-plugins-ugly))