adds gstreamer and basic plugins
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gstreamer
11 PKG_VERSION:=0.10.12
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/
15 PKG_FIXUP:=libtool
16
17 include $(INCLUDE_DIR)/package.mk
18
19 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/lib/libintl/include/ -I$(STAGING_DIR)/usr/lib/libiconv/include/
20 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/
21
22 define Package/gstreamer
23 SECTION:=multimedia
24 CATEGORY:=Multimedia
25 TITLE:=gstreamer
26 URL:=http://gstreamer.freedesktop.org/
27 DEPENDS:=+libxml2 +check
28 MENU:=1
29 endef
30
31 define Package/gstreamer/description
32 gnu streamer
33 endef
34
35 define Build/Configure
36 (cd $(PKG_BUILD_DIR); \
37 if [ -x $(CONFIGURE_CMD) ]; then \
38 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
39 $(CONFIGURE_VARS) \
40 $(CONFIGURE_CMD) \
41 --disable-tests \
42 $(CONFIGURE_ARGS) ;\
43 fi \
44 )
45 endef
46
47 define Build/Compile
48 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
49 cd $(PKG_INSTALL_DIR)/usr/include/; ln -s gstreamer-0.10/gst/
50 endef
51
52 define Build/InstallDev
53 mkdir -p $(1)
54 cp -r $(PKG_INSTALL_DIR)/* $(1)
55 endef
56
57 define Package/gstreamer/install
58 mkdir -p $(1)
59 cp -r $(PKG_INSTALL_DIR)/* $(1)
60 endef
61
62 $(eval $(call BuildPackage,gstreamer))