You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
44 lines
1.1 KiB
################################################################################
|
|
#
|
|
# nano
|
|
#
|
|
################################################################################
|
|
|
|
NANO_VERSION = 6.3
|
|
NANO_DIR = nano-$(NANO_VERSION)
|
|
NANO_SOURCE = nano-$(NANO_VERSION).tar.gz
|
|
NANO_SITE = $(GNU_MIRROR)/nano
|
|
|
|
NANO_DEPENDENCIES = ncurses
|
|
|
|
ifeq ($(BS_PACKAGE_NCURSES_WCHAR),y)
|
|
NANO_CONF_ENV = \
|
|
ac_cv_prog_NCURSESW_CONFIG=$(HOST_DIR)/bin/$(NCURSES_CONFIG_SCRIPTS)
|
|
else
|
|
NANO_CONF_ENV = \
|
|
ac_cv_prog_NCURSESW_CONFIG=false
|
|
NANO_MAKE_ENV = \
|
|
CURSES_LIB="-lncurses"
|
|
endif
|
|
|
|
NANO_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--disable-nls \
|
|
--disable-libmagic \
|
|
--enable-tiny \
|
|
--without-slang \
|
|
--with-wordbounds
|
|
|
|
define NANO_INSTALL_PROFILE_D_SCRIPT
|
|
$(INSTALL) -d $(TARGET_sysconfdir)/profile.d
|
|
echo "export EDITOR=nano" > $(TARGET_sysconfdir)/profile.d/editor.sh
|
|
endef
|
|
NANO_TARGET_FINALIZE_HOOKS += NANO_INSTALL_PROFILE_D_SCRIPT
|
|
|
|
nano: | $(TARGET_DIR)
|
|
$(call PREPARE)
|
|
$(call TARGET_CONFIGURE)
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$(NANO_MAKE_ENV) $(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(call TARGET_FOLLOWUP)
|
|
|