move ksymoops from trunk/package/ to packages/devel/
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-good / Makefile
1 #
2 # Copyright (C) 2008 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.10
12 PKG_RELEASE:=4
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:=a57b4f6bdb9a4a00351f9da74de35ae9
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 export PATH:=$(PKG_BUILD_DIR)/bin:$(TARGET_PATH)
22
23 #FIXME: Each plugin should be indepently selectable
24
25 PKG_INSTALL=1
26
27 EXTRA_CFLAGS+= \
28 -I$(STAGING_DIR)/usr/lib/libintl/include \
29 -I$(STAGING_DIR)/usr/lib/libiconv/include \
30 -I$(STAGING_DIR)/usr/include/gtk-2.0/gdk \
31 -I$(STAGING_DIR)/usr/include/gstreamer-0.10
32
33 EXTRA_LDFLAGS+= \
34 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
35 -L$(STAGING_DIR)/usr/lib/libintl/lib \
36 -L$(STAGING_DIR)/usr/lib/libiconv/lib
37
38 define Package/gst-plugins-good
39 SECTION:=multimedia
40 CATEGORY:=Multimedia
41 TITLE:=gst-plugins-good
42 URL:=http://gstreamer.freedesktop.org/
43 DEPENDS:=+gstreamer +liboil +pango +cairo +libpng +taglib +libspeex +libjpeg +zlib +gst-plugins-base
44 endef
45
46 define Package/gst-plugins-good/description
47 gstreamer good plugins
48 endef
49
50 define Build/Configure
51 $(call Build/Configure/Default, \
52 --disable-examples \
53 --disable-esd \
54 --disable-gconf \
55 --disable-gconftool \
56 --disable-shout2 \
57 --disable-aalib \
58 --disable-oss \
59 --disable-hal \
60 --disable-dv \
61 --disable-pulse \
62 --disable-dv1394 \
63 --disable-soup \
64 --disable-osx_audio \
65 --disable-osx_video \
66 --disable-directdraw \
67 --disable-directshow \
68 --disable-sunaudio \
69 --without-x \
70 )
71 mkdir -p $(PKG_BUILD_DIR)/bin
72 touch $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
73 chmod +x $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
74 endef
75
76 define Build/InstallDev
77 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
78 $(CP) \
79 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,a,la} \
80 $(1)/usr/lib/gstreamer-0.10
81 endef
82
83 define Package/gst-plugins-good/install
84 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
85 $(CP) \
86 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.so* \
87 $(1)/usr/lib/gstreamer-0.10
88 endef
89
90 $(eval $(call BuildPackage,gst-plugins-good))