pwrtray: Compilefix on avr32
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-good / Makefile
1 ## Copyright (C) 2009-2010 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=gst-plugins-good
10 PKG_VERSION:=0.10.23
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/
15 PKG_MD5SUM:=9cddbb0e7e90677f0cc05c23feffef5c
16
17 PKG_BUILD_DEPENDS:= gstreamer gst-plugins-base liboil
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/gstreamer/Default
25 CATEGORY:=Multimedia
26 SECTION:=multimedia
27 TITLE:=GStreamer
28 URL:=http://gstreamer.freedesktop.org/
29 DEPENDS:= @!LINUX_2_4
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-flv \
70 --disable-flx \
71 --disable-gconf \
72 --disable-gconftool \
73 --disable-gdk_pixbuf \
74 --disable-goom \
75 --disable-goom2k1 \
76 --disable-gst_v4l2 \
77 --disable-icydemux \
78 --disable-hal \
79 --disable-jpeg \
80 --disable-law \
81 --disable-libcaca \
82 --disable-libdv \
83 --disable-libpng \
84 --disable-matroska \
85 --disable-monoscope \
86 --disable-osx_audio \
87 --disable-osx_video \
88 --disable-pulse \
89 --disable-qtdemux \
90 --disable-rtspmanager \
91 --disable-smpte \
92 --disable-shout2 \
93 --disable-soup \
94 --disable-speex \
95 --disable-sunaudio \
96 --disable-taglib \
97 --disable-videobox \
98 --disable-videocrop \
99 --disable-videofilter \
100 --disable-videomixer \
101 --disable-wavpack \
102 --disable-x \
103 --disable-xshm \
104 --disable-xvideo \
105 --disable-y4m \
106 --disable-zlib \
107 \
108 --without-libiconv-prefix \
109 --without-libintl-prefix \
110 --without-x \
111
112 EXTRA_LDFLAGS+= \
113 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
114
115
116 define Package/gst-plugins-good/install
117 /bin/true
118 endef
119
120
121 # 1: short name
122 # 2: description
123 # 3: dependencies on other gstreamer libraries (short name)
124 # 4: dependencies on other gstreamer plugins (short name)
125 # 5: dependencies on other packages
126 define GstBuildPlugin
127
128 GST_DEPENDS += +gst-mod-$(1)
129
130 define Package/gst-mod-$(1)
131 $(call Package/gstreamer/Default)
132 TITLE+= $(2) plugin (good)
133 DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $$(foreach p,$(4),+gst-mod-$$(p)) $(5)
134 endef
135
136 define Package/gst-mod-$(1)/description
137 $(call Package/gstreamer/description/Default)
138 .
139 This package contains the GStreamer $(2) plugin.
140 endef
141
142 define Package/gst-mod-$(1)/install
143 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
144 ( cd $(PKG_INSTALL_DIR); $(CP) \
145 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
146 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
147 )
148 endef
149
150 $$(eval $$(call BuildPackage,gst-mod-$(1)))
151 endef
152
153 $(eval $(call GstBuildPlugin,audiofx,audio effects,audio controller,,))
154 $(eval $(call GstBuildPlugin,autodetect,format auto-detection,,,))
155 $(eval $(call GstBuildPlugin,cutter,audio cutter,audio,,))
156 $(eval $(call GstBuildPlugin,debug,debugging,,,))
157 $(eval $(call GstBuildPlugin,equalizer,audio equalizer,audio controller,,))
158 $(eval $(call GstBuildPlugin,flac,FLAC codec,pbutils tag,,+libflac))
159 $(eval $(call GstBuildPlugin,id3demux,ID3v1/v2 demuxer,pbutils tag,,))
160 $(eval $(call GstBuildPlugin,interleave,audio interleave,audio,,))
161 $(eval $(call GstBuildPlugin,level,audio level,audio,,))
162 $(eval $(call GstBuildPlugin,multifile,multiple files access,,,))
163 $(eval $(call GstBuildPlugin,multipart,multipart stream handling,,,))
164 $(eval $(call GstBuildPlugin,ossaudio,OSS audio support,audio,,))
165 $(eval $(call GstBuildPlugin,replaygain,volume normalization,pbutils,,))
166 $(eval $(call GstBuildPlugin,rtp,RTP,audio rtp tag,,))
167 $(eval $(call GstBuildPlugin,rtsp,RTSP,interfaces rtp rtsp sdp,,))
168 $(eval $(call GstBuildPlugin,spectrum,spectrum data output,audio fft,,))
169 $(eval $(call GstBuildPlugin,udp,UDP,netbuffer,,))
170 $(eval $(call GstBuildPlugin,wavenc,Wav encoder,,,))
171 $(eval $(call GstBuildPlugin,wavparse,Wav parser,audio riff tag,,))
172
173 $(eval $(call BuildPackage,gst-plugins-good))