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