2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-14 13:45:58 +02:00
|
|
|
#
|
|
|
|
# libedit
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-14 13:45:58 +02:00
|
|
|
|
2015-04-26 14:36:07 +02:00
|
|
|
LIBEDIT_VERSION = 20150325-3.1
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBEDIT_SITE = http://www.thrysoee.dk/editline
|
2013-05-14 13:45:58 +02:00
|
|
|
LIBEDIT_INSTALL_STAGING = YES
|
2014-06-26 21:20:55 +02:00
|
|
|
LIBEDIT_DEPENDENCIES = ncurses
|
|
|
|
LIBEDIT_LICENSE = BSD-3c
|
|
|
|
LIBEDIT_LICENSE_FILES = COPYING
|
2013-07-29 18:44:17 +02:00
|
|
|
|
|
|
|
# We're patching configure.ac
|
2014-06-26 21:20:55 +02:00
|
|
|
LIBEDIT_AUTORECONF = YES
|
2013-07-29 18:44:17 +02:00
|
|
|
|
2015-04-26 14:36:07 +02:00
|
|
|
# Needed for autoreconf to work properly
|
|
|
|
define LIBEDIT_FIXUP_M4_DIR
|
|
|
|
mkdir $(@D)/m4
|
|
|
|
endef
|
|
|
|
LIBEDIT_POST_EXTRACT_HOOKS += LIBEDIT_FIXUP_M4_DIR
|
|
|
|
|
2013-07-31 19:12:35 +02:00
|
|
|
# Doesn't really support !wchar, but support is disabled otherwise
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEDIT_CONF_OPTS += --enable-widec
|
2013-07-31 19:12:35 +02:00
|
|
|
|
2016-01-07 01:41:17 +01:00
|
|
|
# musl is ISO 10646 compliant but doesn't define __STDC_ISO_10646__,
|
|
|
|
# so let's define it manually
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
|
|
|
LIBEDIT_CONF_OPTS += CFLAGS="$(TARGET_CFLAGS) -D__STDC_ISO_10646__=201103L"
|
|
|
|
endif
|
|
|
|
|
2013-07-29 18:44:17 +02:00
|
|
|
# Note: libbsd required for *vis functions, but works only with a toolchain
|
|
|
|
# with __progname; otherwise, some features are disabled, as if libbsd was
|
|
|
|
# missing entirely.
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBSD),y)
|
2014-06-26 21:20:55 +02:00
|
|
|
LIBEDIT_DEPENDENCIES += libbsd
|
2013-07-29 18:44:17 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|