Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gst-plugins-good
12 PKG_VERSION:=0.10.10
13 PKG_RELEASE:=4
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/
17 PKG_MD5SUM:=a57b4f6bdb9a4a00351f9da74de35ae9
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 export PATH:=$(PKG_BUILD_DIR)/bin:$(TARGET_PATH)
23
24 #FIXME: Each plugin should be indepently selectable
25
26 PKG_INSTALL=1
27
28 EXTRA_CFLAGS+= \
29 -I$(STAGING_DIR)/usr/lib/libintl/include \
30 -I$(STAGING_DIR)/usr/lib/libiconv/include \
31 -I$(STAGING_DIR)/usr/include/gtk-2.0/gdk \
32 -I$(STAGING_DIR)/usr/include/gstreamer-0.10
33
34 EXTRA_LDFLAGS+= \
35 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
36 -L$(STAGING_DIR)/usr/lib/libintl/lib \
37 -L$(STAGING_DIR)/usr/lib/libiconv/lib
38
39 define Package/gst-plugins-good
40 SECTION:=multimedia
41 CATEGORY:=Multimedia
42 TITLE:=gst-plugins-good
43 URL:=http://gstreamer.freedesktop.org/
44 DEPENDS:=+gstreamer +liboil +pango +cairo +libpng +taglib +libspeex +libjpeg +zlib +gst-plugins-base
45 endef
46
47 define Package/gst-plugins-good/description
48 gstreamer good plugins
49 endef
50
51 define Build/Configure
52 $(call Build/Configure/Default, \
53 --disable-examples \
54 --disable-esd \
55 --disable-gconf \
56 --disable-gconftool \
57 --disable-shout2 \
58 --disable-aalib \
59 --disable-oss \
60 --disable-hal \
61 --disable-dv \
62 --disable-pulse \
63 --disable-dv1394 \
64 --disable-soup \
65 --disable-osx_audio \
66 --disable-osx_video \
67 --disable-directdraw \
68 --disable-directshow \
69 --disable-sunaudio \
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))