boost: bump to version 1.63.0
[buildroot-gz.git] / package / nano / nano.mk
blob4632bed3b1ecd02fdfbec131a5a48d1387035f05
1 ################################################################################
3 # nano
5 ################################################################################
7 NANO_VERSION_MAJOR = 2.7
8 NANO_VERSION = $(NANO_VERSION_MAJOR).4
9 NANO_SITE = https://www.nano-editor.org/dist/v$(NANO_VERSION_MAJOR)
10 NANO_SOURCE = nano-$(NANO_VERSION).tar.xz
11 NANO_LICENSE = GPLv3+
12 NANO_LICENSE_FILES = COPYING
13 NANO_CONF_OPTS = \
14 --without-slang \
15 --with-wordbounds
16 NANO_DEPENDENCIES = ncurses
18 ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
19 NANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
20 else
21 NANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=false
22 NANO_MAKE_ENV += CURSES_LIB="-lncurses"
23 endif
25 ifeq ($(BR2_PACKAGE_FILE),y)
26 NANO_DEPENDENCIES += file
27 else
28 NANO_CONF_ENV += ac_cv_lib_magic_magic_open=no
29 endif
31 ifeq ($(BR2_PACKAGE_NANO_TINY),y)
32 NANO_CONF_OPTS += --enable-tiny
33 define NANO_INSTALL_TARGET_CMDS
34 $(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
35 endef
36 endif
38 $(eval $(autotools-package))