pcre.mk 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. ################################################################################
  2. #
  3. # pcre
  4. #
  5. ################################################################################
  6. PCRE_VERSION = 8.45
  7. PCRE_SITE = http://downloads.sourceforge.net/project/pcre/pcre/$(PCRE_VERSION)
  8. PCRE_SOURCE = pcre-$(PCRE_VERSION).tar.bz2
  9. PCRE_LICENSE = BSD-3-Clause
  10. PCRE_LICENSE_FILES = LICENCE
  11. PCRE_CPE_ID_VENDOR = pcre
  12. PCRE_INSTALL_STAGING = YES
  13. PCRE_CONFIG_SCRIPTS = pcre-config
  14. # They're required for host-libglib2
  15. HOST_PCRE_CONF_OPTS = --enable-unicode-properties
  16. ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
  17. # pcre will use the host g++ if a cross version isn't available
  18. PCRE_CONF_OPTS += --disable-cpp
  19. endif
  20. PCRE_CONF_OPTS += --enable-pcre8
  21. PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_16),--enable-pcre16,--disable-pcre16)
  22. PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32)
  23. PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-utf,--disable-utf)
  24. PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties)
  25. $(eval $(autotools-package))
  26. $(eval $(host-autotools-package))