move efl-libs to own directory
[openwrt/svn-archive/archive.git] / Xorg / efl / ecore / 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:=ecore
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/ecore
28 SECTION:=xorg-lib
29 CATEGORY:=Xorg
30 SUBMENU:=lib
31 TITLE:=Ecore is the core event abstraction layer and X abstraction layer
32 URL:=http://wiki.enlightenment.org/index.php/Ecore
33 DEPENDS:=+eet +evas +libXcursor +libXrandr +libXtst +libiconv
34 endef
35
36 define Package/ecore/description
37 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.
38 endef
39
40 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include
41 EXTRA_LDFLAGS+=-liconv -L$(STAGING_DIR)/usr/lib/libiconv/lib
42
43 define Build/Configure
44 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
45 $(call Build/Configure/Default, \
46 --with-iconv-link \
47 --enable-ecore-txt \
48 --disable-ecore-config \
49 --disable-ecore-x-xcb \
50 --enable-ecore-x \
51 --enable-ecore-job \
52 --disable-ecore-directfb \
53 --disable-ecore-sdl \
54 --enable-ecore-fb \
55 --enable-ecore-evas \
56 --enable-ecore-evas-fb \
57 --disable-ecore-evas-x11-gl \
58 --enable-ecore-evas-xrender \
59 --disable-ecore-evas-dfb \
60 --disable-ecore-evas-sdl \
61 --disable-openssl \
62 --enable-abstract-sockets \
63 --enable-ecore-con \
64 --enable-ecore-ipc \
65 --enable-ecore-file \
66 --enable-inotify \
67 --disable-poll \
68 --disable-curl \
69 --disable-ecore-desktop \
70 --disable-gnutls \
71 )
72 endef
73
74 define Build/Compile
75 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
76 endef
77
78 define Build/InstallDev
79 mkdir -p $(1)/usr/include $(1)/usr/lib
80 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
82 endef
83
84 define Package/ecore/install
85 $(INSTALL_DIR) $(1)/usr/lib
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
87 endef
88
89 $(eval $(call BuildPackage,ecore))