a62d6917dd1229c5216def64ebb611caeb2daa54
[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.12
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/
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/gst-plugins-base
23 SECTION:=multimedia
24 CATEGORY:=Multimedia
25 TITLE:=gst-plugins-base
26 URL:=http://gst-plugins-base.freedesktop.org/
27 DEPENDS:=gstreamer +liboil +pango
28 endef
29
30 define Package/gst-plugins-base/description
31 gstreamer base plugins
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR); \
36 if [ -x $(CONFIGURE_CMD) ]; then \
37 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
38 $(CONFIGURE_VARS) \
39 $(CONFIGURE_CMD) \
40 --disable-ogg --disable-vorbis\
41 $(CONFIGURE_ARGS) ;\
42 fi \
43 )
44 endef
45
46 define Build/Compile
47 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)
52 cp -r $(PKG_INSTALL_DIR)/* $(1)
53 endef
54
55 define Package/gst-plugins-base/install
56 mkdir -p $(1)
57 cp -r $(PKG_INSTALL_DIR)/* $(1)
58 endef
59
60 $(eval $(call BuildPackage,gst-plugins-base))