f382dd7c6db8a0f87bdb2b010b8962af36f21c2d
[packages.git] / multimedia / gst-plugins-good / Makefile
1 ## Copyright (C) 2009-2011 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:=autoreconf
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/nls.mk
24
25 define Package/gstreamer/Default
26   CATEGORY:=Multimedia
27   SECTION:=multimedia
28   TITLE:=GStreamer
29   URL:=http://gstreamer.freedesktop.org/
30   DEPENDS:= @!LINUX_2_4
31 endef
32
33 define Package/gstreamer/description/Default
34  GStreamer open source multimedia framework
35 endef
36
37
38 define Package/gst-plugins-good
39 $(call Package/gstreamer/Default)
40   TITLE+= plugins collection (good)
41   DEPENDS+= $(GST_DEPENDS)
42 endef
43
44 define Package/gts-plugins-good/description
45 $(call Package/gstreamer/description/Default)
46  .
47  This meta package contains only dependencies to the other plugins from
48  the good plugins collection.
49 endef
50
51
52 GST_VERSION:=0.10
53
54 CONFIGURE_ARGS += \
55         --disable-debug \
56         --disable-examples \
57         \
58         --disable-aalib \
59         --disable-alpha \
60         --disable-annodex \
61         --disable-apetag \
62         --disable-auparse \
63         --disable-avi \
64         --disable-bz2 \
65         --disable-cairo \
66         --disable-directsound \
67         --disable-dv1394 \
68         --disable-effectv \
69         --disable-esd \
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-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-speex \
94         --disable-sunaudio \
95         --disable-taglib \
96         --disable-videobox \
97         --disable-videocrop \
98         --disable-videofilter \
99         --disable-videomixer \
100         --disable-wavpack \
101         --disable-x \
102         --disable-xshm \
103         --disable-xvideo \
104         --disable-y4m \
105         --disable-zlib \
106         \
107         --without-libiconv-prefix \
108         --without-libintl-prefix \
109         --without-x \
110
111 EXTRA_LDFLAGS+= \
112         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
113
114
115 define Package/gst-plugins-good/install
116         /bin/true
117 endef
118
119
120 # 1: short name
121 # 2: description
122 # 3: dependencies on other gstreamer libraries (short name)
123 # 4: dependencies on other gstreamer plugins (short name)
124 # 5: dependencies on other packages
125 define GstBuildPlugin
126
127   GST_DEPENDS += +gst-mod-$(1)
128
129   define Package/gst-mod-$(1)
130     $(call Package/gstreamer/Default)
131     TITLE+= $(2) plugin (good)
132     DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $$(foreach p,$(4),+gst-mod-$$(p)) $(5)
133   endef
134
135   define Package/gst-mod-$(1)/description
136    $(call Package/gstreamer/description/Default)
137    .
138    This package contains the GStreamer $(2) plugin.
139   endef
140
141   define Package/gst-mod-$(1)/install
142         $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
143         ( cd $(PKG_INSTALL_DIR); $(CP) \
144                 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
145                 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
146         )
147   endef
148
149   $$(eval $$(call BuildPackage,gst-mod-$(1)))
150 endef
151
152 $(eval $(call GstBuildPlugin,audiofx,audio effects,audio controller,,))
153 $(eval $(call GstBuildPlugin,autodetect,format auto-detection,,,))
154 $(eval $(call GstBuildPlugin,cutter,audio cutter,audio,,))
155 $(eval $(call GstBuildPlugin,debug,debugging,,,))
156 $(eval $(call GstBuildPlugin,equalizer,audio equalizer,audio controller,,))
157 $(eval $(call GstBuildPlugin,flac,FLAC codec,pbutils tag,,+libflac))
158 $(eval $(call GstBuildPlugin,id3demux,ID3v1/v2 demuxer,pbutils tag,,))
159 $(eval $(call GstBuildPlugin,icydemux,icy demuxer,audio,,))
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,souphttpsrc,soup input,audio,,+libsoup))
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))