1 ################################################################################
5 ################################################################################
7 LIBECORE_VERSION = $(EFL_VERSION)
8 LIBECORE_SOURCE = ecore-$(LIBECORE_VERSION).tar.bz2
9 LIBECORE_SITE = http://download.enlightenment.org/releases
10 LIBECORE_LICENSE = BSD-2c
11 LIBECORE_LICENSE_FILES = COPYING
13 LIBECORE_INSTALL_STAGING = YES
15 LIBECORE_DEPENDENCIES = host-pkgconf libeina
17 HOST_LIBECORE_DEPENDENCIES = host-pkgconf host-libeina host-libevas
18 HOST_LIBECORE_CONF_OPTS += \
20 --disable-simple-x11 \
21 --disable-ecore-directfb \
23 --disable-ecore-x-xcb \
24 --disable-ecore-imf-xim
27 LIBECORE_CONF_OPTS = --disable-simple-x11
29 ifeq ($(BR2_PACKAGE_TSLIB),y)
30 LIBECORE_DEPENDENCIES += tslib
33 ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
34 LIBECORE_DEPENDENCIES += libglib2
37 ifeq ($(BR2_PACKAGE_OPENSSL),y)
38 LIBECORE_DEPENDENCIES += openssl
39 LIBECORE_CONF_OPTS += --enable-openssl
41 LIBECORE_CONF_OPTS += --disable-openssl
44 ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
45 LIBECORE_DEPENDENCIES += gnutls libgcrypt
46 LIBECORE_CONF_OPTS += --enable-gnutls --with-libgcrypt-prefix=$(STAGING_DIR)/usr
48 LIBECORE_CONF_OPTS += --disable-gnutls
51 ifeq ($(BR2_PACKAGE_LIBCURL),y)
52 LIBECORE_DEPENDENCIES += libcurl
56 ifeq ($(BR2_PACKAGE_LIBECORE_DIRECTFB),y)
57 LIBECORE_CONF_OPTS += --enable-ecore-directfb
58 LIBECORE_DEPENDENCIES += directfb
60 LIBECORE_CONF_OPTS += --disable-ecore-directfb
63 ifeq ($(BR2_PACKAGE_LIBECORE_FB),y)
64 LIBECORE_CONF_OPTS += --enable-ecore-fb
66 LIBECORE_CONF_OPTS += --disable-ecore-fb
69 ifeq ($(BR2_PACKAGE_LIBECORE_SDL),y)
70 LIBECORE_CONF_OPTS += --enable-ecore-sdl
71 LIBECORE_DEPENDENCIES += sdl
73 LIBECORE_CONF_OPTS += --disable-ecore-sdl
76 ifeq ($(BR2_PACKAGE_LIBECORE_X),y)
77 LIBECORE_CONF_OPTS += --enable-ecore-x \
78 --with-x=$(STAGING_DIR) \
79 --x-includes=$(STAGING_DIR)/usr/include \
80 --x-libraries=$(STAGING_DIR)/usr/lib
81 LIBECORE_DEPENDENCIES += xlib_libXext xlib_libX11
83 LIBECORE_CONF_OPTS += --disable-ecore-x --disable-ecore-imf-xim
86 ifeq ($(BR2_PACKAGE_LIBECORE_X_XCB),y)
87 LIBECORE_CONF_OPTS += --enable-ecore-x-xcb
88 LIBECORE_DEPENDENCIES += libxcb xlib_libX11 xcb-util pixman
90 # src/util/makekeys is executed at build time to generate
91 # ecore_xcb_keysym_table.h, so it should get compiled for the host.
92 # The ecore makefile unfortunately doesn't know about cross
93 # compilation so this doesn't work. Long term, we should probably
94 # teach it about CC_FOR_BUILD, but for now simply build makekeys by
96 define LIBECORE_BUILD_MAKEKEYS_FOR_HOST
97 $(HOST_CONFIGURE_OPTS) $(MAKE1) -C $(@D)/src/util makekeys.o makekeys
100 LIBECORE_POST_EXTRACT_HOOKS += LIBECORE_BUILD_MAKEKEYS_FOR_HOST
102 LIBECORE_CONF_OPTS += --disable-ecore-x-xcb
106 ifeq ($(BR2_PACKAGE_LIBECORE_EVAS),y)
107 LIBECORE_CONF_OPTS += --enable-ecore-evas
108 LIBECORE_DEPENDENCIES += libevas
110 LIBECORE_CONF_OPTS += --disable-ecore-evas
113 $(eval $(autotools-package))
114 $(eval $(host-autotools-package))