blob: 53f4d038b6349cefe43dbd75d2d3980089a8373d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $
include $(TOPDIR)/rules.mk
PKG_NAME:=ecore
PKG_VERSION:=
PKG_RELEASE:=1
PKG_SOURCE:=e17.libs.$(PKG_NAME)_anoncvs.enlightenment.org__20080825.tar.gz
PKG_SOURCE_URL:=http://downloads.openmoko.org/sources/
PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}/
PKG_FIXUP = libtool
include $(INCLUDE_DIR)/package.mk
define Package/ecore
SECTION:=xorg-lib
CATEGORY:=Xorg
SUBMENU:=lib
TITLE:=Ecore is the core event abstraction layer and X abstraction layer
URL:=http://wiki.enlightenment.org/index.php/Ecore
DEPENDS:=+eet +evas +libXcursor +libXrandr +libXtst +libiconv
endef
define Package/ecore/description
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.
endef
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include
EXTRA_LDFLAGS+=-liconv -L$(STAGING_DIR)/usr/lib/libiconv/lib
define Build/Configure
(cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
$(call Build/Configure/Default, \
--with-iconv-link \
--enable-ecore-txt \
--disable-ecore-config \
--disable-ecore-x-xcb \
--enable-ecore-x \
--enable-ecore-job \
--disable-ecore-directfb \
--disable-ecore-sdl \
--enable-ecore-fb \
--enable-ecore-evas \
--enable-ecore-evas-fb \
--disable-ecore-evas-x11-gl \
--disable-ecore-evas-xrender \
--disable-ecore-evas-dfb \
--disable-ecore-evas-sdl \
--disable-openssl \
--enable-abstract-sockets \
--enable-ecore-con \
--enable-ecore-ipc \
--enable-ecore-file \
--enable-inotify \
--disable-poll \
--disable-curl \
--disable-ecore-desktop \
--disable-ecore-imf \
--disable-ecore-imf_evas \
)
endef
define Build/Compile
mkdir -p $(PKG_INSTALL_DIR)/host $(PKG_INSTALL_DIR)/target
$(MAKE) -C $(PKG_BUILD_DIR) all
DESTDIR="$(PKG_INSTALL_DIR)/target" $(MAKE) -C $(PKG_BUILD_DIR) all install
$(MAKE) -C $(PKG_BUILD_DIR) clean
$(MAKE) -C $(PKG_BUILD_DIR) all CC="$(HOSTCC)" CFLAGS="" LDFLAGS="-I$(STAGING_DIR_HOST)/usr/lib/"
DESTDIR="$(PKG_INSTALL_DIR)/host" $(MAKE) -C $(PKG_BUILD_DIR) all install
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(STAGING_DIR_HOST)/usr/include $(STAGING_DIR_HOST)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/target/usr/include/* $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/target/usr/lib/* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/host/usr/include/* $(STAGING_DIR_HOST)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/
endef
define Package/ecore/install
$(INSTALL_DIR) $(1)/usr/lib $(STAGING_DIR_HOST)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/taget/usr/lib/* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/host/usr/lib/* $(STAGING_DIR_HOST)/usr/lib/
endef
$(eval $(call BuildPackage,ecore))
|