2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-26 18:42:36 +01:00
|
|
|
#
|
|
|
|
# libecore
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-26 18:42:36 +01:00
|
|
|
|
2013-07-07 17:07:22 +02:00
|
|
|
LIBECORE_VERSION = $(EFL_VERSION)
|
2012-01-26 18:42:36 +01:00
|
|
|
LIBECORE_SOURCE = ecore-$(LIBECORE_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBECORE_SITE = http://download.enlightenment.org/releases
|
2012-11-30 12:46:28 +01:00
|
|
|
LIBECORE_LICENSE = BSD-2c
|
|
|
|
LIBECORE_LICENSE_FILES = COPYING
|
|
|
|
|
2012-01-26 18:42:36 +01:00
|
|
|
LIBECORE_INSTALL_STAGING = YES
|
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
LIBECORE_DEPENDENCIES = host-pkgconf libeina
|
2012-01-26 18:42:36 +01:00
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
HOST_LIBECORE_DEPENDENCIES = host-pkgconf host-libeina host-libevas
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_LIBECORE_CONF_OPTS += \
|
2012-02-28 23:35:48 +01:00
|
|
|
--enable-ecore-evas \
|
|
|
|
--disable-simple-x11 \
|
|
|
|
--disable-ecore-directfb \
|
|
|
|
--disable-ecore-x \
|
|
|
|
--disable-ecore-x-xcb \
|
|
|
|
--disable-ecore-imf-xim
|
2012-01-26 18:42:36 +01:00
|
|
|
|
|
|
|
# default options
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS = --disable-simple-x11
|
2012-01-26 18:42:36 +01:00
|
|
|
|
2012-02-12 20:31:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TSLIB),y)
|
|
|
|
LIBECORE_DEPENDENCIES += tslib
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
|
|
LIBECORE_DEPENDENCIES += libglib2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBECORE_DEPENDENCIES += openssl
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-openssl
|
2013-01-01 04:23:58 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-openssl
|
2012-02-12 20:31:09 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-01 04:23:58 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
|
|
|
|
LIBECORE_DEPENDENCIES += gnutls libgcrypt
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-gnutls --with-libgcrypt-prefix=$(STAGING_DIR)/usr
|
2013-01-01 04:23:58 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-gnutls
|
2012-02-12 20:31:09 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
LIBECORE_DEPENDENCIES += libcurl
|
|
|
|
endif
|
|
|
|
|
2012-01-26 18:42:36 +01:00
|
|
|
# libecore
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBECORE_DIRECTFB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-ecore-directfb
|
2012-02-12 20:29:50 +01:00
|
|
|
LIBECORE_DEPENDENCIES += directfb
|
2012-01-26 18:42:36 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-ecore-directfb
|
2012-01-26 18:42:36 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBECORE_FB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-ecore-fb
|
2012-01-26 18:42:36 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-ecore-fb
|
2012-01-26 18:42:36 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBECORE_SDL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-ecore-sdl
|
2012-01-26 18:42:36 +01:00
|
|
|
LIBECORE_DEPENDENCIES += sdl
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-ecore-sdl
|
2012-01-26 18:42:36 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBECORE_X),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-ecore-x
|
2012-01-26 18:42:36 +01:00
|
|
|
LIBECORE_DEPENDENCIES += xlib_libXext xlib_libX11
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-ecore-x --disable-ecore-imf-xim
|
2012-01-26 18:42:36 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBECORE_X_XCB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-ecore-x-xcb
|
2012-04-30 21:42:14 +02:00
|
|
|
LIBECORE_DEPENDENCIES += libxcb xlib_libX11 xcb-util pixman
|
2012-01-26 18:42:36 +01:00
|
|
|
|
|
|
|
# src/util/makekeys is executed at build time to generate
|
|
|
|
# ecore_xcb_keysym_table.h, so it should get compiled for the host.
|
|
|
|
# The ecore makefile unfortunately doesn't know about cross
|
|
|
|
# compilation so this doesn't work. Long term, we should probably
|
|
|
|
# teach it about CC_FOR_BUILD, but for now simply build makekeys by
|
|
|
|
# hand in advance
|
|
|
|
define LIBECORE_BUILD_MAKEKEYS_FOR_HOST
|
2012-02-15 23:22:23 +01:00
|
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE1) -C $(@D)/src/util makekeys.o makekeys
|
2012-01-26 18:42:36 +01:00
|
|
|
endef
|
|
|
|
|
2012-02-15 23:22:23 +01:00
|
|
|
LIBECORE_POST_EXTRACT_HOOKS += LIBECORE_BUILD_MAKEKEYS_FOR_HOST
|
2012-01-26 18:42:36 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-ecore-x-xcb
|
2012-01-26 18:42:36 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# libecore-evas
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBECORE_EVAS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --enable-ecore-evas
|
2012-01-26 18:42:36 +01:00
|
|
|
LIBECORE_DEPENDENCIES += libevas
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBECORE_CONF_OPTS += --disable-ecore-evas
|
2012-01-26 18:42:36 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|