pcre2.mk 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ################################################################################
  2. #
  3. # pcre2
  4. #
  5. ################################################################################
  6. PCRE2_VERSION = 10.42
  7. PCRE2_SITE = https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$(PCRE2_VERSION)
  8. PCRE2_SOURCE = pcre2-$(PCRE2_VERSION).tar.bz2
  9. PCRE2_LICENSE = BSD-3-Clause
  10. PCRE2_LICENSE_FILES = LICENCE
  11. PCRE2_CPE_ID_VENDOR = pcre
  12. PCRE2_INSTALL_STAGING = YES
  13. PCRE2_CONFIG_SCRIPTS = pcre2-config
  14. PCRE2_CONF_OPTS += --enable-pcre2-8
  15. PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_16),--enable-pcre2-16,--disable-pcre2-16)
  16. PCRE2_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE2_32),--enable-pcre2-32,--disable-pcre2-32)
  17. ifeq ($(BR2_PACKAGE_PCRE2_JIT),y)
  18. PCRE2_CONF_OPTS += --enable-jit
  19. else
  20. PCRE2_CONF_OPTS += --disable-jit
  21. endif
  22. # disable fork usage if not available
  23. ifeq ($(BR2_USE_MMU),)
  24. PCRE2_CONF_OPTS += --disable-pcre2grep-callout
  25. endif
  26. # needed for qt6base
  27. HOST_PCRE2_CONF_OPTS = --enable-pcre2-16
  28. $(eval $(autotools-package))
  29. $(eval $(host-autotools-package))