Update gstreamer and gst-plugins-base packages to 0.10.21.
[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 PKG_INSTALL=1
22
23 EXTRA_CFLAGS+= \
24 -I$(STAGING_DIR)/usr/lib/libintl/include \
25 -I$(STAGING_DIR)/usr/lib/libiconv/include \
26 -I$(STAGING_DIR)/usr/include/gtk-2.0/gdk \
27 -I$(STAGING_DIR)/usr/include/gstreamer-0.10
28
29 EXTRA_LDFLAGS+= \
30 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
31 -L$(STAGING_DIR)/usr/lib/libintl/lib \
32 -L$(STAGING_DIR)/usr/lib/libiconv/lib
33
34 define Package/gst-plugins-base
35 SECTION:=multimedia
36 CATEGORY:=Multimedia
37 TITLE:=gst-plugins-base
38 URL:=http://gstreamer.freedesktop.org/
39 DEPENDS:=+gstreamer +liboil +pango +libXv +libogg +libvorbis +libtheora +alsa-lib
40 endef
41
42 define Package/gst-plugins-base/description
43 gstreamer base plugins
44 endef
45
46 define Build/Configure
47 $(call Build/Configure/Default, \
48 --disable-gnome_vfs \
49 --disable-examples \
50 --disable-cdparanoia \
51 --disable-libvisual \
52 --disable-oggtest \
53 --disable-vorbistest \
54 --disable-freetypetest \
55 )
56 endef
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include/gstreamer-0.10/gst/
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/include/* \
62 $(1)/usr/include/
63
64 $(INSTALL_DIR) $(1)/usr/lib/
65 $(INSTALL_DATA) \
66 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} \
67 $(1)/usr/lib/
68
69 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
70 $(INSTALL_DATA) \
71 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,la} \
72 $(1)/usr/lib/gstreamer-0.10/
73
74 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
77 $(1)/usr/lib/pkgconfig/
78 endef
79
80 define Package/gst-plugins-base/install
81 $(INSTALL_DIR) $(1)/usr/lib/
82 $(INSTALL_DATA) \
83 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
84 $(1)/usr/lib/
85
86 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
87 $(INSTALL_DATA) \
88 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,a} \
89 $(1)/usr/lib/gstreamer-0.10
90 endef
91
92 $(eval $(call BuildPackage,gst-plugins-base))