flex.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ################################################################################
  2. #
  3. # flex
  4. #
  5. ################################################################################
  6. FLEX_VERSION = 2.6.4
  7. FLEX_SITE = https://github.com/westes/flex/files/981163
  8. FLEX_INSTALL_STAGING = YES
  9. FLEX_LICENSE = FLEX
  10. FLEX_LICENSE_FILES = COPYING
  11. FLEX_CPE_ID_VENDOR = westes
  12. # bug does not cause stack overflows in the generated code and has been
  13. # noted upstream as a bug in the code generator
  14. FLEX_IGNORE_CVES = CVE-2019-6293
  15. FLEX_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-m4
  16. HOST_FLEX_DEPENDENCIES = host-m4
  17. # 0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch
  18. # 0002-build-make-it-possible-to-disable-the-build-of-the-f.patch
  19. # 0003-build-make-it-possible-to-disable-the-build-of-the-d.patch
  20. FLEX_AUTORECONF = YES
  21. FLEX_AUTOPOINT = YES
  22. FLEX_CONF_ENV = ac_cv_path_M4=/usr/bin/m4 \
  23. ac_cv_func_reallocarray=no
  24. # Don't enable programs, they are not needed on the target, and
  25. # require MMU support.
  26. # Don't enable the doc, it's not needed on the target and requires
  27. # special tools (help2man) to build.
  28. FLEX_CONF_OPTS += --disable-program --disable-doc
  29. HOST_FLEX_CONF_OPTS = --disable-doc
  30. $(eval $(autotools-package))
  31. $(eval $(host-autotools-package))