libedit.mk 951 B

12345678910111213141516171819202122232425262728293031
  1. ################################################################################
  2. #
  3. # libedit
  4. #
  5. ################################################################################
  6. LIBEDIT_VERSION = 20221030-3.1
  7. LIBEDIT_SITE = https://www.thrysoee.dk/editline
  8. LIBEDIT_INSTALL_STAGING = YES
  9. LIBEDIT_DEPENDENCIES = ncurses
  10. LIBEDIT_LICENSE = BSD-3-Clause
  11. LIBEDIT_LICENSE_FILES = COPYING
  12. LIBEDIT_CPE_ID_VALID = YES
  13. # We're patching configure.ac
  14. LIBEDIT_AUTORECONF = YES
  15. # musl is ISO 10646 compliant but doesn't define __STDC_ISO_10646__,
  16. # so let's define it manually
  17. ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
  18. LIBEDIT_CONF_OPTS += CFLAGS="$(TARGET_CFLAGS) -D__STDC_ISO_10646__=201103L"
  19. endif
  20. # Note: libbsd required for *vis functions, but works only with a toolchain
  21. # with __progname; otherwise, some features are disabled, as if libbsd was
  22. # missing entirely.
  23. ifeq ($(BR2_PACKAGE_LIBBSD),y)
  24. LIBEDIT_DEPENDENCIES += libbsd
  25. endif
  26. $(eval $(autotools-package))