Cleanup makefile and fix compilation
[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 PKG_MD5SUM:=0ee35455a4eb507bcfbfcd44d9e15d1e
17
18 include $(INCLUDE_DIR)/package.mk
19
20 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/lib/libintl/include/ -I$(STAGING_DIR)/usr/lib/libiconv/include/ -I$(STAGING_DIR)/usr/include/gtk-2.0/gdk
21 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/
22
23 define Package/gst-plugins-base
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 TITLE:=gst-plugins-base
27 URL:=http://gst-plugins-base.freedesktop.org/
28 DEPENDS:=gstreamer +liboil +pango +gtk2
29 endef
30
31 define Package/gst-plugins-base/description
32 gstreamer base plugins
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default,\
37 --disable-ogg \
38 --disable-vorbis \
39 --without-x \
40 )
41 endef
42
43 define Build/Compile
44 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(1)
49 cp -r $(PKG_INSTALL_DIR)/* $(1)
50 endef
51
52 define Package/gst-plugins-base/install
53 mkdir -p $(1)
54 cp -r $(PKG_INSTALL_DIR)/* $(1)
55 endef
56
57 $(eval $(call BuildPackage,gst-plugins-base))