Update gstreamer and gst-plugins-base packages to 0.10.21.
[openwrt/svn-archive/archive.git] / multimedia / gstreamer / 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:=gstreamer
12 PKG_VERSION:=0.10.21
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/
17 PKG_MD5SUM:=7bad90af3fd81a1535363cf85359125c
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 EXTRA_CFLAGS+= \
25 -I$(STAGING_DIR)/usr/lib/libintl/include \
26 -I$(STAGING_DIR)/usr/lib/libiconv/include
27
28 EXTRA_LDFLAGS+= \
29 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
30 -L$(STAGING_DIR)/usr/lib/libintl/lib \
31 -L$(STAGING_DIR)/usr/lib/libiconv/lib
32
33 define Package/gstreamer
34 SECTION:=multimedia
35 CATEGORY:=Multimedia
36 TITLE:=gstreamer
37 URL:=http://gstreamer.freedesktop.org/
38 DEPENDS:=+libxml2 +check +glib2
39 endef
40
41 define Package/gstreamer/description
42 A framework for streaming media.
43 endef
44
45 define Build/Configure
46 $(call Build/Configure/Default,\
47 --disable-tests \
48 --disable-examples \
49 )
50 endef
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include/
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/include/* \
56 $(1)/usr/include/
57
58 $(INSTALL_DIR) $(1)/usr/lib/
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} \
61 $(1)/usr/lib/
62
63 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10/
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,la} \
66 $(1)/usr/lib/gstreamer-0.10
67
68 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
71 $(1)/usr/lib/pkgconfig/
72
73 $(INSTALL_DIR) $(2)/share/aclocal/
74 $(INSTALL_DATA) \
75 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
76 $(2)/share/aclocal/
77 endef
78
79 define Package/gstreamer/install
80 $(INSTALL_DIR) $(1)/usr/bin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
82
83 $(INSTALL_DIR) $(1)/usr/lib/
84 $(INSTALL_DATA) \
85 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
86 $(1)/usr/lib/
87
88 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10/
89 $(INSTALL_DATA) \
90 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,a} \
91 $(1)/usr/lib/gstreamer-0.10
92 endef
93
94 $(eval $(call BuildPackage,gstreamer))