d6a9db1f49dc98c192cb503400f0d4403ce4449c
[openwrt/svn-archive/feeds.git] / efl / 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:=38886
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)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/eina
29 SECTION:=xorg-lib
30 CATEGORY:=Xorg
31 SUBMENU:=libraries
32 TITLE:=Eina
33 URL:=http://wiki.enlightenment.org/index.php/Eina
34 endef
35
36 define Build/Configure
37 ( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
38 $(call Build/Configure/Default, \
39 --disable-cpu-mmx \
40 --disable-cpu-sse \
41 --disable-cpu-sse2 \
42 --disable-magic-debug \
43 --disable-doc \
44 )
45 endef
46
47 define Host/Configure
48 ( cd $(HOST_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
49 $(call Host/Configure/Default, \
50 --disable-cpu-mmx \
51 --disable-cpu-sse \
52 --disable-cpu-sse2 \
53 --disable-magic-debug \
54 --disable-doc \
55 )
56 endef
57
58 define Build/Compile
59 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
60 endef
61
62 define Build/InstallDev
63 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
66 endef
67
68 define Package/eina/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
71 $(FIND) $(1)/ -name "*.la" | $(XARGS) rm
72 $(FIND) $(1)/ -name "*.a" | $(XARGS) rm
73 endef
74
75 $(eval $(call HostBuild))
76 $(eval $(call BuildPackage,eina))