[packages] gst-pluings-good: Enable flac plugin
[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 endef
30
31 define Package/gstreamer/description/Default
32 GStreamer open source multimedia framework
33 endef
34
35
36 define Package/gst-plugins-good
37 $(call Package/gstreamer/Default)
38 TITLE+= plugins collection (good)
39 DEPENDS+= $(GST_DEPENDS)
40 endef
41
42 define Package/gts-plugins-good/description
43 $(call Package/gstreamer/description/Default)
44 .
45 This meta package contains only dependencies to the other plugins from
46 the good plugins collection.
47 endef
48
49
50 GST_VERSION:=0.10
51
52 CONFIGURE_ARGS += \
53 --disable-debug \
54 --disable-examples \
55 \
56 --disable-aalib \
57 --disable-alpha \
58 --disable-annodex \
59 --disable-apetag \
60 --disable-auparse \
61 --disable-avi \
62 --disable-bz2 \
63 --disable-cairo \
64 --disable-directsound \
65 --disable-dv1394 \
66 --disable-effectv \
67 --disable-esd \
68 --disable-flv \
69 --disable-flx \
70 --disable-gconf \
71 --disable-gconftool \
72 --disable-gdk_pixbuf \
73 --disable-goom \
74 --disable-goom2k1 \
75 --disable-gst_v4l2 \
76 --disable-icydemux \
77 --disable-hal \
78 --disable-jpeg \
79 --disable-law \
80 --disable-libcaca \
81 --disable-libdv \
82 --disable-libpng \
83 --disable-matroska \
84 --disable-monoscope \
85 --disable-osx_audio \
86 --disable-osx_video \
87 --disable-pulse \
88 --disable-qtdemux \
89 --disable-rtspmanager \
90 --disable-smpte \
91 --disable-shout2 \
92 --disable-soup \
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,interleave,audio interleave,audio,,))
160 $(eval $(call GstBuildPlugin,level,audio level,audio,,))
161 $(eval $(call GstBuildPlugin,multifile,multiple files access,,,))
162 $(eval $(call GstBuildPlugin,multipart,multipart stream handling,,,))
163 $(eval $(call GstBuildPlugin,ossaudio,OSS audio support,audio,,))
164 $(eval $(call GstBuildPlugin,replaygain,volume normalization,pbutils,,))
165 $(eval $(call GstBuildPlugin,rtp,RTP,audio rtp tag,,))
166 $(eval $(call GstBuildPlugin,rtsp,RTSP,interfaces rtp rtsp sdp,,))
167 $(eval $(call GstBuildPlugin,spectrum,spectrum data output,audio fft,,))
168 $(eval $(call GstBuildPlugin,udp,UDP,netbuffer,,))
169 $(eval $(call GstBuildPlugin,wavenc,Wav encoder,,,))
170 $(eval $(call GstBuildPlugin,wavparse,Wav parser,audio riff tag,,))
171
172 $(eval $(call BuildPackage,gst-plugins-good))