nano: make tiny flag optional
authorDaniele Salvatore Albano <info@daccii.it>
Mon, 7 Mar 2011 15:55:36 +0000 (16:55 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 18 Nov 2011 12:18:26 +0000 (13:18 +0100)
Closes #3421

[Peter: tweak Config.in]
Signed-off-by: Daniele Salvatore Albano <info@daccii.it>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/nano/Config.in
package/nano/nano.mk

index 8c780960f8c433c91acb78d62994d34d405fdc5b..ef7f69df3640752f17c1e206c39e811ba49ecccf 100644 (file)
@@ -6,3 +6,10 @@ config BR2_PACKAGE_NANO
          Great editor for new users.
 
          http://www.nano-editor.org/
+
+config BR2_PACKAGE_NANO_TINY
+       bool "optimize for size"
+       default y
+       depends on BR2_PACKAGE_NANO
+       help
+         Disable all features for the sake of size.
index 2bf712156a73ab5e729a0a2df43a3b0aaac0fdd7..439f58349b2e37cb7c819268fee24bc3eedcb4de 100644 (file)
@@ -7,9 +7,13 @@
 NANO_VERSION = 2.3.1
 NANO_SITE = http://www.nano-editor.org/dist/v2.3
 NANO_MAKE_ENV = CURSES_LIB="-lncurses"
-NANO_CONF_OPT = --without-slang --enable-tiny
+NANO_CONF_OPT = --without-slang
 NANO_DEPENDENCIES = ncurses
 
+ifeq ($(BR2_PACKAGE_NANO_TINY),y)
+       NANO_CONF_OPT += --enable-tiny
+endif
+
 define NANO_INSTALL_TARGET_CMDS
        $(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
 endef