libecore.mk 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ################################################################################
  2. #
  3. # libecore
  4. #
  5. ################################################################################
  6. LIBECORE_VERSION = $(EFL_VERSION)
  7. LIBECORE_SOURCE = ecore-$(LIBECORE_VERSION).tar.bz2
  8. LIBECORE_SITE = http://download.enlightenment.org/releases
  9. LIBECORE_LICENSE = BSD-2c
  10. LIBECORE_LICENSE_FILES = COPYING
  11. LIBECORE_INSTALL_STAGING = YES
  12. LIBECORE_DEPENDENCIES = host-pkgconf libeina
  13. HOST_LIBECORE_DEPENDENCIES = host-pkgconf host-libeina host-libevas
  14. HOST_LIBECORE_CONF_OPT += \
  15. --enable-ecore-evas \
  16. --disable-simple-x11 \
  17. --disable-ecore-directfb \
  18. --disable-ecore-x \
  19. --disable-ecore-x-xcb \
  20. --disable-ecore-imf-xim
  21. # default options
  22. LIBECORE_CONF_OPT = --disable-simple-x11
  23. ifeq ($(BR2_PACKAGE_TSLIB),y)
  24. LIBECORE_DEPENDENCIES += tslib
  25. endif
  26. ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
  27. LIBECORE_DEPENDENCIES += libglib2
  28. endif
  29. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  30. LIBECORE_DEPENDENCIES += openssl
  31. LIBECORE_CONF_OPT += --enable-openssl
  32. else
  33. LIBECORE_CONF_OPT += --disable-openssl
  34. endif
  35. ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
  36. LIBECORE_DEPENDENCIES += gnutls libgcrypt
  37. LIBECORE_CONF_OPT += --enable-gnutls --with-libgcrypt-prefix=$(STAGING_DIR)/usr
  38. else
  39. LIBECORE_CONF_OPT += --disable-gnutls
  40. endif
  41. ifeq ($(BR2_PACKAGE_LIBCURL),y)
  42. LIBECORE_DEPENDENCIES += libcurl
  43. endif
  44. # libecore
  45. ifeq ($(BR2_PACKAGE_LIBECORE_DIRECTFB),y)
  46. LIBECORE_CONF_OPT += --enable-ecore-directfb
  47. LIBECORE_DEPENDENCIES += directfb
  48. else
  49. LIBECORE_CONF_OPT += --disable-ecore-directfb
  50. endif
  51. ifeq ($(BR2_PACKAGE_LIBECORE_FB),y)
  52. LIBECORE_CONF_OPT += --enable-ecore-fb
  53. else
  54. LIBECORE_CONF_OPT += --disable-ecore-fb
  55. endif
  56. ifeq ($(BR2_PACKAGE_LIBECORE_SDL),y)
  57. LIBECORE_CONF_OPT += --enable-ecore-sdl
  58. LIBECORE_DEPENDENCIES += sdl
  59. else
  60. LIBECORE_CONF_OPT += --disable-ecore-sdl
  61. endif
  62. ifeq ($(BR2_PACKAGE_LIBECORE_X),y)
  63. LIBECORE_CONF_OPT += --enable-ecore-x
  64. LIBECORE_DEPENDENCIES += xlib_libXext xlib_libX11
  65. else
  66. LIBECORE_CONF_OPT += --disable-ecore-x --disable-ecore-imf-xim
  67. endif
  68. ifeq ($(BR2_PACKAGE_LIBECORE_X_XCB),y)
  69. LIBECORE_CONF_OPT += --enable-ecore-x-xcb
  70. LIBECORE_DEPENDENCIES += libxcb xlib_libX11 xcb-util pixman
  71. # src/util/makekeys is executed at build time to generate
  72. # ecore_xcb_keysym_table.h, so it should get compiled for the host.
  73. # The ecore makefile unfortunately doesn't know about cross
  74. # compilation so this doesn't work. Long term, we should probably
  75. # teach it about CC_FOR_BUILD, but for now simply build makekeys by
  76. # hand in advance
  77. define LIBECORE_BUILD_MAKEKEYS_FOR_HOST
  78. $(HOST_CONFIGURE_OPTS) $(MAKE1) -C $(@D)/src/util makekeys.o makekeys
  79. endef
  80. LIBECORE_POST_EXTRACT_HOOKS += LIBECORE_BUILD_MAKEKEYS_FOR_HOST
  81. else
  82. LIBECORE_CONF_OPT += --disable-ecore-x-xcb
  83. endif
  84. # libecore-evas
  85. ifeq ($(BR2_PACKAGE_LIBECORE_EVAS),y)
  86. LIBECORE_CONF_OPT += --enable-ecore-evas
  87. LIBECORE_DEPENDENCIES += libevas
  88. else
  89. LIBECORE_CONF_OPT += --disable-ecore-evas
  90. endif
  91. $(eval $(autotools-package))
  92. $(eval $(host-autotools-package))