Merge pull request #2053 from jefferyto/python-pyptlib
[feed/packages.git] / multimedia / gst1-plugins-ugly / Makefile
1 #
2 # Copyright (C) 2009-2015 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:=gst1-plugins-ugly
11 PKG_VERSION:=1.6.2
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
15
16 PKG_LICENSE:=LGPLv2
17 PKG_LICENSE_FILES:=COPYING
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION)
20 PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz
21 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/
22 PKG_MD5SUM:=0f0e30336e3155443cd5bfec5c215d56
23
24 PKG_BUILD_DEPENDS:= libgstreamer1 gstreamer1-plugins-base
25 PKG_CONFIG_DEPENDS:= \
26 CONFIG_PACKAGE_gst1-mod-asf \
27 CONFIG_PACKAGE_gst1-mod-lame \
28 CONFIG_PACKAGE_gst1-mod-mad \
29 CONFIG_PACKAGE_gst1-mod-mpeg2dec \
30
31 PKG_FIXUP:=autoreconf
32 PKG_INSTALL:=1
33
34 include $(INCLUDE_DIR)/package.mk
35 include $(INCLUDE_DIR)/nls.mk
36
37 GST_UGLY_MODULES:=
38
39 define Package/gstreamer1-ugly/Default
40 CATEGORY:=Multimedia
41 SECTION:=multimedia
42 TITLE:=GStreamer
43 URL:=http://gstreamer.freedesktop.org/
44 DEPENDS:= +libgstreamer1 $(ICONV_DEPENDS)
45 endef
46
47 define Package/gstreamer1-ugly/description/Default
48 GStreamer open source multimedia framework
49 endef
50
51
52 define Package/gst1-plugins-ugly
53 $(call Package/gstreamer1-ugly/Default)
54 TITLE+= plugins collection (ugly)
55 DEPENDS+= $(GST_DEPENDS)
56 HIDDEN:=1
57 endef
58
59 define Package/gts-plugins-ugly/description
60 $(call Package/gstreamer1-ugly/description/Default)
61 .
62 This meta package contains only dependencies to the other plugins from
63 the ugly plugins collection.
64 endef
65
66
67 define Package/gstreamer1-plugins-ugly
68 $(call Package/gstreamer1-ugly/Default)
69 TITLE+= plugins collection (ugly)
70 DEPENDS:=+ALL:gst1-plugins-ugly +gstreamer1-plugins-base
71 endef
72
73 define Package/gstreamer1-plugins-ugly/config
74 menu "Select GStreamer ugly modules"
75 depends on PACKAGE_gstreamer1-plugins-ugly
76
77
78 config gst1-plugins-ugly-all
79 bool "Include all GStreamer ugly plugins"
80 select PACKAGE_gst1-plugins-ugly
81
82 comment "Modules"
83
84 $(foreach mod,$(GST_UGLY_MODULES), \
85 config PACKAGE_gst1-mod-$(mod)
86 prompt "GStreamer $(mod) module"
87
88 )
89
90 endmenu
91
92 endef
93
94 GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1))
95
96 GST_VERSION:=1.0
97
98 CONFIGURE_ARGS += \
99 --disable-debug \
100 --disable-examples \
101 \
102 --disable-a52dec \
103 --disable-amrnb \
104 --disable-amrwb \
105 $(call GST_COND_SELECT,asf) \
106 --disable-cdio \
107 --disable-dvdlpcmdec \
108 --disable-dvdread \
109 --disable-dvdsub \
110 --disable-iec958 \
111 $(call GST_COND_SELECT,lame) \
112 $(call GST_COND_SELECT,mad) \
113 $(call GST_COND_SELECT,mpeg2dec) \
114 --disable-mpegaudioparse \
115 --disable-mpegstream \
116 --disable-realmedia \
117 --disable-sidplay \
118 --disable-synaesthesia \
119 --disable-twolame \
120 --disable-x264 \
121 \
122 --without-libiconv-prefix \
123 --without-libintl-prefix \
124
125 EXTRA_LDFLAGS+= \
126 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
127 $(if $(ICONV_FULL),-liconv) \
128
129
130 define Package/gst1-plugins-ugly/install
131 /bin/true
132 endef
133
134
135 # 1: short name
136 # 2: description
137 # 3: dependencies on other gstreamer libraries (short name)
138 # 4: dependencies on other gstreamer plugins (short name)
139 # 5: dependencies on other packages
140 define GstBuildPlugin
141
142 GST_DEPENDS += +gst1-mod-$(1)
143
144 GST_UGLY_MODULES+= $(1)
145
146 define Package/gst1-mod-$(1)
147 $(call Package/gstreamer1-ugly/Default)
148 TITLE+= $(2) plugin (ugly)
149 DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
150 HIDDEN:=1
151 endef
152
153 define Package/gst1-mod-$(1)/description
154 $(call Package/gstreamer1-ugly/description/Default)
155 .
156 This package contains the GStreamer $(2) plugin.
157 endef
158
159 define Package/gst1-mod-$(1)/install
160 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
161 ( cd $(PKG_INSTALL_DIR); $(CP) \
162 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
163 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
164 )
165 endef
166
167 $$(eval $$(call BuildPackage,gst1-mod-$(1)))
168 endef
169
170 $(eval $(call GstBuildPlugin,asf,ASF demuxer,audio video riff rtp rtsp sdp tag,,))
171 $(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib))
172 $(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad))
173 $(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2))
174
175 $(eval $(call BuildPackage,gstreamer1-plugins-ugly))
176 $(eval $(call BuildPackage,gst1-plugins-ugly))