b558ed027d93020db2edd45f2d0d8f1b46bfddcd
[openwrt/svn-archive/archive.git] / Xorg / lib / eina / Makefile
1 #
2 # Copyright (C) 2006-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: Makefile 12228 2008-08-06 22:43:15Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=eina
12 PKG_REV:=37637
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_PROTO:=svn
17 PKG_SOURCE_VERSION:=$(PKG_REV)
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_SOURCE_URL:=http://svn.enlightenment.org/svn/e/trunk/$(PKG_NAME)
21 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
22
23 PKG_FIXUP = libtool
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/eina
28 SECTION:=xorg-lib
29 CATEGORY:=Xorg
30 SUBMENU:=lib
31 TITLE:=Eina
32 URL:=http://wiki.enlightenment.org/index.php/Eina
33 # DEPENDS:=+libjpeg +zlib +eet +evas +ecore +embryo
34 endef
35
36 define Package/eina/description
37 foobar
38 endef
39
40 EXTRA_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
41
42 define Build/Configure
43 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
44 $(call Build/Configure/Default)
45 endef
46
47 define Build/Compile
48 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
55 endef
56
57 define Package/eina/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
60 find $(1)/usr/lib -name *.la -name *.a | xargs rm -f
61 endef
62
63 $(eval $(call BuildPackage,eina))