apply gstreamer fix to its plugins
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-base / 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-base
11 PKG_VERSION:=0.10.21
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/
16 PKG_MD5SUM:=0e0cd485311502ad1c0c028148e3186
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 export PATH:=$(PKG_BUILD_DIR)/bin:$(TARGET_PATH)
22
23 PKG_INSTALL=1
24
25 EXTRA_CFLAGS+= \
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/lib/libiconv/include \
28 -I$(STAGING_DIR)/usr/include/gtk-2.0/gdk \
29 -I$(STAGING_DIR)/usr/include/gstreamer-0.10
30
31 EXTRA_LDFLAGS+= \
32 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
33 -L$(STAGING_DIR)/usr/lib/libintl/lib \
34 -L$(STAGING_DIR)/usr/lib/libiconv/lib
35
36 define Package/gst-plugins-base
37 SECTION:=multimedia
38 CATEGORY:=Multimedia
39 TITLE:=gst-plugins-base
40 URL:=http://gstreamer.freedesktop.org/
41 DEPENDS:=+gstreamer +liboil +pango +libXv +libogg +libvorbis +libtheora +alsa-lib
42 endef
43
44 define Package/gst-plugins-base/description
45 gstreamer base plugins
46 endef
47
48 define Build/Configure
49 $(call Build/Configure/Default, \
50 --disable-gnome_vfs \
51 --disable-examples \
52 --disable-cdparanoia \
53 --disable-libvisual \
54 --disable-oggtest \
55 --disable-vorbistest \
56 --disable-freetypetest \
57 )
58 mkdir -p $(PKG_BUILD_DIR)/bin
59 touch $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
60 chmod +x $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
61 endef
62
63 define Build/InstallDev
64 $(INSTALL_DIR) $(1)/usr/include/gstreamer-0.10/gst/
65 $(CP) \
66 $(PKG_INSTALL_DIR)/usr/include/* \
67 $(1)/usr/include/
68
69 $(INSTALL_DIR) $(1)/usr/lib/
70 $(INSTALL_DATA) \
71 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} \
72 $(1)/usr/lib/
73
74 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,la} \
77 $(1)/usr/lib/gstreamer-0.10/
78
79 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
80 $(INSTALL_DATA) \
81 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
82 $(1)/usr/lib/pkgconfig/
83 endef
84
85 define Package/gst-plugins-base/install
86 $(INSTALL_DIR) $(1)/usr/lib/
87 $(INSTALL_DATA) \
88 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
89 $(1)/usr/lib/
90
91 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
92 $(INSTALL_DATA) \
93 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,a} \
94 $(1)/usr/lib/gstreamer-0.10
95 endef
96
97 $(eval $(call BuildPackage,gst-plugins-base))