[packages] ipv6calc: update to v0.82.1, fixes claring of "valid" flag on mips platforms
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-ugly / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gst-plugins-ugly
11 PKG_VERSION:=0.10.15
12 PKG_RELEASE:=1
13
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
17
18 PKG_BUILD_DEPENDS:= gstreamer gst-plugins-base liboil
19
20 PKG_FIXUP:=autoreconf
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25
26 define Package/gstreamer/Default
27 CATEGORY:=Multimedia
28 SECTION:=multimedia
29 TITLE:=GStreamer
30 URL:=http://gstreamer.freedesktop.org/
31 DEPENDS:= @!LINUX_2_4
32 endef
33
34 define Package/gstreamer/description/Default
35 GStreamer open source multimedia framework
36 endef
37
38
39 define Package/gst-plugins-ugly
40 $(call Package/gstreamer/Default)
41 TITLE+= plugins collection (ugly)
42 DEPENDS+= $(GST_DEPENDS)
43 endef
44
45 define Package/gts-plugins-ugly/description
46 $(call Package/gstreamer/description/Default)
47 .
48 This meta package contains only dependencies to the other plugins from
49 the ugly plugins collection.
50 endef
51
52
53 GST_VERSION:=0.10
54
55 CONFIGURE_ARGS += \
56 --disable-debug \
57 --disable-examples \
58 \
59 --disable-a52dec \
60 --disable-amrnb \
61 --disable-amrwb \
62 --disable-cdio \
63 --disable-dvdlpcmdec \
64 --disable-dvdread \
65 --disable-dvdsub \
66 --disable-iec958 \
67 --disable-mpeg2dec \
68 --disable-mpegaudioparse \
69 --disable-mpegstream \
70 --disable-realmedia \
71 --disable-sidplay \
72 --disable-synaesthesia \
73 --disable-twolame \
74 --disable-x264 \
75 \
76 --without-libiconv-prefix \
77 --without-libintl-prefix \
78 --without-x \
79
80 EXTRA_LDFLAGS+= \
81 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
82
83
84 define Package/gst-plugins-ugly/install
85 /bin/true
86 endef
87
88
89 # 1: short name
90 # 2: description
91 # 3: dependencies on other gstreamer libraries (short name)
92 # 4: dependencies on other gstreamer plugins (short name)
93 # 5: dependencies on other packages
94 define GstBuildPlugin
95
96 GST_DEPENDS += +gst-mod-$(1)
97
98 define Package/gst-mod-$(1)
99 $(call Package/gstreamer/Default)
100 TITLE+= $(2) plugin (ugly)
101 DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $$(foreach p,$(4),+gst-mod-$$(p)) $(5)
102 endef
103
104 define Package/gst-mod-$(1)/description
105 $(call Package/gstreamer/description/Default)
106 .
107 This package contains the GStreamer $(2) plugin.
108 endef
109
110 define Package/gst-mod-$(1)/install
111 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
112 ( cd $(PKG_INSTALL_DIR); $(CP) \
113 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
114 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
115 )
116 endef
117
118 $$(eval $$(call BuildPackage,gst-mod-$(1)))
119 endef
120
121 $(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),,,+lame-lib))
122 $(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad))
123 $(eval $(call GstBuildPlugin,asf,ASF demuxer,,,))
124
125 $(eval $(call BuildPackage,gst-plugins-ugly))