2004-10-08 20:00:32 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# nano
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
NANO_VERSION:=1.3.12
|
|
|
|
NANO_SOURCE:=nano-$(NANO_VERSION).tar.gz
|
2004-10-14 11:39:25 +02:00
|
|
|
NANO_SITE:=http://www.nano-editor.org/dist/v1.3/
|
2007-07-11 16:06:06 +02:00
|
|
|
NANO_DIR:=$(BUILD_DIR)/nano-$(NANO_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
NANO_CAT:=$(ZCAT)
|
2004-10-08 20:00:32 +02:00
|
|
|
NANO_BINARY:=src/nano
|
2008-03-26 14:55:18 +01:00
|
|
|
NANO_TARGET_BINARY:=usr/bin/nano
|
2004-10-08 20:00:32 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(NANO_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(NANO_SITE),$(NANO_SOURCE))
|
2004-10-08 20:00:32 +02:00
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
nano-source: $(DL_DIR)/$(NANO_SOURCE)
|
|
|
|
|
2004-10-08 20:00:32 +02:00
|
|
|
$(NANO_DIR)/.unpacked: $(DL_DIR)/$(NANO_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(NANO_CAT) $(DL_DIR)/$(NANO_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2008-02-12 01:35:03 +01:00
|
|
|
$(CONFIG_UPDATE) $(NANO_DIR)
|
2008-03-06 19:18:58 +01:00
|
|
|
touch $@
|
2004-10-08 20:00:32 +02:00
|
|
|
|
|
|
|
$(NANO_DIR)/.configured: $(NANO_DIR)/.unpacked
|
|
|
|
(cd $(NANO_DIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2004-10-08 20:00:32 +02:00
|
|
|
ac_cv_header_regex_h=no \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2004-10-08 20:00:32 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/ \
|
|
|
|
--enable-tiny \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2008-03-06 19:18:58 +01:00
|
|
|
touch $@
|
2004-10-08 20:00:32 +02:00
|
|
|
|
|
|
|
$(NANO_DIR)/$(NANO_BINARY): $(NANO_DIR)/.configured
|
2007-07-09 10:30:38 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(NANO_DIR)
|
2004-10-08 20:00:32 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(NANO_TARGET_BINARY): $(NANO_DIR)/$(NANO_BINARY)
|
|
|
|
install -D $(NANO_DIR)/$(NANO_BINARY) $(TARGET_DIR)/$(NANO_TARGET_BINARY)
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
nano: ncurses $(TARGET_DIR)/$(NANO_TARGET_BINARY)
|
2004-10-08 20:00:32 +02:00
|
|
|
|
|
|
|
nano-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(NANO_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(NANO_DIR) clean
|
|
|
|
|
|
|
|
nano-dirclean:
|
|
|
|
rm -rf $(NANO_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NANO),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=nano
|
|
|
|
endif
|