summaryrefslogtreecommitdiffstats
path: root/package/nano
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
committerEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
commit73f7be82904f487d167493e76b415fbe5b5f8c5a (patch)
tree8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/nano
parent0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff)
downloadbuildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz
buildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.zip
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/nano')
-rw-r--r--package/nano/nano.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/nano/nano.mk b/package/nano/nano.mk
new file mode 100644
index 000000000..b6565d309
--- /dev/null
+++ b/package/nano/nano.mk
@@ -0,0 +1,48 @@
+#############################################################
+#
+# nano
+#
+#############################################################
+NANO_VER:=1.3.4
+NANO_SOURCE:=nano-$(NANO_VER).tar.gz
+NANO_SITE:=http://www.nano-editor.org/dist/v1.3/$(NANO_SOURCE)
+NANO_DIR:=$(BUILD_DIR)/nano-$(NANO_VER)
+NANO_CAT:=zcat
+NANO_BINARY:=src/nano
+NANO_TARGET_BINARY:=bin/nano
+
+$(DL_DIR)/$(NANO_SOURCE):
+ $(WGET) -P $(DL_DIR) $(NANO_SITE)/$(NANO_SOURCE)
+
+$(NANO_DIR)/.unpacked: $(DL_DIR)/$(NANO_SOURCE)
+ $(NANO_CAT) $(DL_DIR)/$(NANO_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(NANO_DIR)/.unpacked
+
+$(NANO_DIR)/.configured: $(NANO_DIR)/.unpacked
+ (cd $(NANO_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ac_cv_header_regex_h=no \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/ \
+ --enable-tiny \
+ );
+ touch $(NANO_DIR)/.configured
+
+$(NANO_DIR)/$(NANO_BINARY): $(NANO_DIR)/.configured
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(NANO_DIR)
+
+$(TARGET_DIR)/$(NANO_TARGET_BINARY): $(NANO_DIR)/$(NANO_BINARY)
+ install -D $(NANO_DIR)/$(NANO_BINARY) $(TARGET_DIR)/$(NANO_TARGET_BINARY)
+
+nano: uclibc $(TARGET_DIR)/$(NANO_TARGET_BINARY)
+
+nano-clean:
+ rm -f $(TARGET_DIR)/$(NANO_TARGET_BINARY)
+ -$(MAKE) -C $(NANO_DIR) clean
+
+nano-dirclean:
+ rm -rf $(NANO_DIR)