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
|
|
|
|
2015-07-06 10:02:03 +02:00
|
|
|
NANO_VERSION = 2.4.2
|
2015-03-24 14:21:00 +01:00
|
|
|
NANO_SITE = $(BR2_GNU_MIRROR)/nano
|
2012-08-19 22:18:26 +02:00
|
|
|
NANO_LICENSE = GPLv3+
|
|
|
|
NANO_LICENSE_FILES = COPYING
|
2015-05-28 20:41:46 +02:00
|
|
|
NANO_CONF_OPTS = \
|
|
|
|
--without-slang \
|
|
|
|
--with-wordbounds
|
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)
|
2015-03-31 09:21:57 +02: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
|
2015-03-31 09:21:57 +02:00
|
|
|
NANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=false
|
|
|
|
NANO_MAKE_ENV += CURSES_LIB="-lncurses"
|
2014-09-17 15:08:18 +02:00
|
|
|
endif
|
|
|
|
|
2013-11-14 17:54:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FILE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NANO_DEPENDENCIES += file
|
2013-11-14 17:54:42 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
NANO_CONF_ENV += ac_cv_lib_magic_magic_open=no
|
2013-11-14 17:54:42 +01:00
|
|
|
endif
|
|
|
|
|
2011-03-07 16:55:36 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NANO_TINY),y)
|
2015-03-31 09:21:57 +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))
|