3d8bd08ea9be95ed14b9a5c4d7e771a7cd4dcabe
[openwrt/svn-archive/feeds.git] / 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:=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)/package.mk
26
27 define Package/ecore
28 SECTION:=xorg-lib
29 CATEGORY:=Xorg
30 SUBMENU:=libraries
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 @!LINUX_2_4 \
34 +libXdamage +libXfixes +libXrender +libXtest
35 endef
36
37 define Package/ecore/description
38 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.
39 endef
40
41 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include
42 EXTRA_LDFLAGS+= \
43 -liconv -L$(STAGING_DIR)/usr/lib/libiconv/lib \
44 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
45 -Wl,-rpath=/usr/lib
46
47 define Build/Configure
48 (cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
49 $(call Build/Configure/Default, \
50 --with-iconv-link \
51 --enable-ecore-txt \
52 --disable-ecore-config \
53 --disable-ecore-x-xcb \
54 --enable-ecore-x \
55 --enable-ecore-job \
56 --disable-ecore-directfb \
57 --disable-ecore-sdl \
58 --enable-ecore-fb \
59 --enable-ecore-evas \
60 --enable-ecore-evas-fb \
61 --disable-ecore-evas-x11-gl \
62 --enable-ecore-evas-xrender \
63 --disable-ecore-evas-dfb \
64 --disable-ecore-evas-sdl \
65 --disable-openssl \
66 --enable-abstract-sockets \
67 --enable-ecore-con \
68 --enable-ecore-ipc \
69 --enable-ecore-file \
70 --enable-inotify \
71 --disable-poll \
72 --disable-curl \
73 --disable-ecore-desktop \
74 --disable-gnutls \
75 )
76 endef
77
78 define Build/Compile
79 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) all install
80 endef
81
82 define Build/InstallDev
83 mkdir -p $(1)/usr/include $(1)/usr/lib
84 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
85 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
86 endef
87
88 define Package/ecore/install
89 $(INSTALL_DIR) $(1)/usr/lib
90 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
91 endef
92
93 $(eval $(call BuildPackage,ecore))