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