2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2004-10-08 20:00:32 +02:00
|
|
|
#
|
|
|
|
# nano
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2004-10-08 20:00:32 +02:00
|
|
|
|
2013-12-18 19:20:02 +01:00
|
|
|
NANO_VERSION_MAJOR = 2.3
|
2014-08-06 23:23:48 +02:00
|
|
|
NANO_VERSION = $(NANO_VERSION_MAJOR).6
|
2013-12-18 19:20:02 +01:00
|
|
|
NANO_SITE = http://www.nano-editor.org/dist/v$(NANO_VERSION_MAJOR)
|
2012-08-19 22:18:26 +02:00
|
|
|
NANO_LICENSE = GPLv3+
|
|
|
|
NANO_LICENSE_FILES = COPYING
|
2014-09-27 21:32:44 +02:00
|
|
|
NANO_CONF_OPTS = --without-slang
|
2010-02-18 20:01:01 +01:00
|
|
|
NANO_DEPENDENCIES = ncurses
|
2004-10-08 20:00:32 +02:00
|
|
|
|
2014-09-17 15:08:18 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
2014-12-13 08:18:59 +01:00
|
|
|
NANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
|
2014-09-17 15:08:18 +02:00
|
|
|
else
|
|
|
|
NANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=false
|
|
|
|
NANO_MAKE_ENV += CURSES_LIB="-lncurses"
|
|
|
|
endif
|
|
|
|
|
2013-11-14 17:54:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FILE),y)
|
|
|
|
NANO_DEPENDENCIES += file
|
|
|
|
else
|
|
|
|
NANO_CONF_ENV += ac_cv_lib_magic_magic_open=no
|
|
|
|
endif
|
|
|
|
|
2011-03-07 16:55:36 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NANO_TINY),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
NANO_CONF_OPTS += --enable-tiny
|
2010-09-01 23:45:56 +02:00
|
|
|
define NANO_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
|
|
|
|
endef
|
2014-07-12 19:41:41 +02:00
|
|
|
endif
|
2004-10-08 20:00:32 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|