[package] update libIDL2 to 0.8.13 (#5924)
[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:=3
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 --without-x \
58 )
59 mkdir -p $(PKG_BUILD_DIR)/bin
60 touch $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
61 chmod +x $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
62 endef
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include/gstreamer-0.10/gst/
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/include/* \
68 $(1)/usr/include/
69
70 $(INSTALL_DIR) $(1)/usr/lib/
71 $(CP) \
72 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
73 $(1)/usr/lib/
74
75 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
76 $(CP) \
77 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,a,la} \
78 $(1)/usr/lib/gstreamer-0.10/
79
80 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
81 $(INSTALL_DATA) \
82 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
83 $(1)/usr/lib/pkgconfig/
84 endef
85
86 define Package/gst-plugins-base/install
87 $(INSTALL_DIR) $(1)/usr/lib/
88 $(CP) \
89 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
90 $(1)/usr/lib/
91
92 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
93 $(CP) \
94 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.so* \
95 $(1)/usr/lib/gstreamer-0.10
96 endef
97
98 $(eval $(call BuildPackage,gst-plugins-base))