[packages] gst-plugins-good: update to 0.10.23, rework Makefile:
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-good / 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-good
11 PKG_VERSION:=0.10.23
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-good/
16 PKG_MD5SUM:=9cddbb0e7e90677f0cc05c23feffef5c
17
18 PKG_BUILD_DEPENDS:= gstreamer gst-plugins-base liboil
19
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gstreamer/Default
26 CATEGORY:=Multimedia
27 SECTION:=multimedia
28 TITLE:=GStreamer
29 URL:=http://gstreamer.freedesktop.org/
30 endef
31
32 define Package/gstreamer/description/Default
33 GStreamer open source multimedia framework
34 endef
35
36
37 define Package/gst-plugins-good
38 $(call Package/gstreamer/Default)
39 TITLE+= plugins collection (good)
40 DEPENDS+= $(GST_DEPENDS)
41 endef
42
43 define Package/gts-plugins-good/description
44 $(call Package/gstreamer/description/Default)
45 .
46 This meta package contains only dependencies to the other plugins from
47 the good plugins collection.
48 endef
49
50
51 GST_VERSION:=0.10
52
53 CONFIGURE_ARGS += \
54 --disable-debug \
55 --disable-examples \
56 \
57 --disable-aalib \
58 --disable-alpha \
59 --disable-annodex \
60 --disable-apetag \
61 --disable-auparse \
62 --disable-avi \
63 --disable-bz2 \
64 --disable-cairo \
65 --disable-directsound \
66 --disable-dv1394 \
67 --disable-effectv \
68 --disable-esd \
69 --disable-flac \
70 --disable-flv \
71 --disable-flx \
72 --disable-gconf \
73 --disable-gconftool \
74 --disable-gdk_pixbuf \
75 --disable-goom \
76 --disable-goom2k1 \
77 --disable-gst_v4l2 \
78 --disable-icydemux \
79 --disable-hal \
80 --disable-jpeg \
81 --disable-law \
82 --disable-libcaca \
83 --disable-libdv \
84 --disable-libpng \
85 --disable-matroska \
86 --disable-monoscope \
87 --disable-osx_audio \
88 --disable-osx_video \
89 --disable-pulse \
90 --disable-qtdemux \
91 --disable-rtspmanager \
92 --disable-smpte \
93 --disable-shout2 \
94 --disable-soup \
95 --disable-speex \
96 --disable-sunaudio \
97 --disable-taglib \
98 --disable-videobox \
99 --disable-videocrop \
100 --disable-videofilter \
101 --disable-videomixer \
102 --disable-wavpack \
103 --disable-x \
104 --disable-xshm \
105 --disable-xvideo \
106 --disable-y4m \
107 --disable-zlib \
108 \
109 --without-libiconv-prefix \
110 --without-libintl-prefix \
111 --without-x \
112
113 EXTRA_LDFLAGS+= \
114 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
115
116
117 define Package/gst-plugins-good/install
118 /bin/true
119 endef
120
121
122 # 1: short name
123 # 2: description
124 # 3: dependencies on other gstreamer libraries (short name)
125 # 4: dependencies on other gstreamer plugins (short name)
126 # 5: dependencies on other packages
127 define GstBuildPlugin
128
129 GST_DEPENDS += +gst-mod-$(1)
130
131 define Package/gst-mod-$(1)
132 $(call Package/gstreamer/Default)
133 TITLE+= $(2) plugin (good)
134 DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $$(foreach p,$(4),+gst-mod-$$(p)) $(5)
135 endef
136
137 define Package/gst-mod-$(1)/description
138 $(call Package/gstreamer/description/Default)
139 .
140 This package contains the GStreamer $(2) plugin.
141 endef
142
143 define Package/gst-mod-$(1)/install
144 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
145 ( cd $(PKG_INSTALL_DIR); $(CP) \
146 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
147 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
148 )
149 endef
150
151 $$(eval $$(call BuildPackage,gst-mod-$(1)))
152 endef
153
154 $(eval $(call GstBuildPlugin,audiofx,audio effects,audio controller,,))
155 $(eval $(call GstBuildPlugin,autodetect,format auto-detection,,,))
156 $(eval $(call GstBuildPlugin,cutter,audio cutter,audio,,))
157 $(eval $(call GstBuildPlugin,debug,debugging,,,))
158 $(eval $(call GstBuildPlugin,equalizer,audio equalizer,audio controller,,))
159 #$(eval $(call GstBuildPlugin,flac,FLAC codec,pbutils tag,,+libflac @BROKEN))
160 $(eval $(call GstBuildPlugin,id3demux,ID3v1/v2 demuxer,pbutils tag,,))
161 $(eval $(call GstBuildPlugin,interleave,audio interleave,audio,,))
162 $(eval $(call GstBuildPlugin,level,audio level,audio,,))
163 $(eval $(call GstBuildPlugin,multifile,multiple files access,,,))
164 $(eval $(call GstBuildPlugin,multipart,multipart stream handling,,,))
165 $(eval $(call GstBuildPlugin,ossaudio,OSS audio support,audio,,))
166 $(eval $(call GstBuildPlugin,replaygain,volume normalization,pbutils,,))
167 $(eval $(call GstBuildPlugin,rtp,RTP,audio rtp tag,,))
168 $(eval $(call GstBuildPlugin,rtsp,RTSP,interfaces rtp rtsp sdp,,))
169 $(eval $(call GstBuildPlugin,spectrum,spectrum data output,audio fft,,))
170 $(eval $(call GstBuildPlugin,udp,UDP,netbuffer,,))
171 $(eval $(call GstBuildPlugin,wavenc,Wav encoder,,,))
172 $(eval $(call GstBuildPlugin,wavparse,Wav parser,audio riff tag,,))
173
174 $(eval $(call BuildPackage,gst-plugins-good))