move efl-libs to own directory
[openwrt/svn-archive/archive.git] / Xorg / efl / ecore / Makefile.native
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:=ecore
12 PKG_VERSION:=
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=e17.libs.$(PKG_NAME)_anoncvs.enlightenment.org__20080825.tar.gz
16 PKG_SOURCE_URL:=http://downloads.openmoko.org/sources/
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}/
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ecore
24 SECTION:=xorg-lib
25 CATEGORY:=Xorg
26 SUBMENU:=lib
27 TITLE:=Ecore is the core event abstraction layer and X abstraction layer
28 URL:=http://wiki.enlightenment.org/index.php/Ecore
29 DEPENDS:=+eet +evas +libXcursor +libXrandr +libXtst +libiconv
30 endef
31
32 define Package/ecore/description
33 Ecore is the core event abstraction layer and X abstraction layer that makes doing selections, Xdnd, general X stuff, and event loops, timeouts and idle handlers fast, optimized, and convenient. It's a separate library so anyone can make use of the work put into Ecore to make this job easy for applications.
34 endef
35
36 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include
37 EXTRA_LDFLAGS+=-liconv -L$(STAGING_DIR)/usr/lib/libiconv/lib
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
41 $(call Build/Configure/Default, \
42 --with-iconv-link \
43 --enable-ecore-txt \
44 --disable-ecore-config \
45 --disable-ecore-x-xcb \
46 --enable-ecore-x \
47 --enable-ecore-job \
48 --disable-ecore-directfb \
49 --disable-ecore-sdl \
50 --enable-ecore-fb \
51 --enable-ecore-evas \
52 --enable-ecore-evas-fb \
53 --disable-ecore-evas-x11-gl \
54 --disable-ecore-evas-xrender \
55 --disable-ecore-evas-dfb \
56 --disable-ecore-evas-sdl \
57 --disable-openssl \
58 --enable-abstract-sockets \
59 --enable-ecore-con \
60 --enable-ecore-ipc \
61 --enable-ecore-file \
62 --enable-inotify \
63 --disable-poll \
64 --disable-curl \
65 --disable-ecore-desktop \
66 --disable-ecore-imf \
67 --disable-ecore-imf_evas \
68 )
69 endef
70
71 define Build/Compile
72 mkdir -p $(PKG_INSTALL_DIR)/host $(PKG_INSTALL_DIR)/target
73 $(MAKE) -C $(PKG_BUILD_DIR) all
74 DESTDIR="$(PKG_INSTALL_DIR)/target" $(MAKE) -C $(PKG_BUILD_DIR) all install
75 $(MAKE) -C $(PKG_BUILD_DIR) clean
76 $(MAKE) -C $(PKG_BUILD_DIR) all CC="$(HOSTCC)" CFLAGS="" LDFLAGS="-I$(STAGING_DIR_HOST)/usr/lib/"
77 DESTDIR="$(PKG_INSTALL_DIR)/host" $(MAKE) -C $(PKG_BUILD_DIR) all install
78 endef
79
80 define Build/InstallDev
81 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(STAGING_DIR_HOST)/usr/include $(STAGING_DIR_HOST)/usr/lib
82 $(CP) $(PKG_INSTALL_DIR)/target/usr/include/* $(1)/usr/include/
83 $(CP) $(PKG_INSTALL_DIR)/target/usr/lib/* $(1)/usr/lib/
84 $(CP) $(PKG_INSTALL_DIR)/host/usr/include/* $(STAGING_DIR_HOST)/usr/include/
85 $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/
86 endef
87
88 define Package/ecore/install
89 $(INSTALL_DIR) $(1)/usr/lib $(STAGING_DIR_HOST)/usr/lib
90 $(CP) $(PKG_INSTALL_DIR)/taget/usr/lib/* $(1)/usr/lib/
91 $(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/
92 endef
93
94 $(eval $(call BuildPackage,ecore))