summaryrefslogtreecommitdiffstats
path: root/make/ed.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-02-12 10:40:28 +0000
committerEric Andersen <andersen@codepoet.org>2003-02-12 10:40:28 +0000
commit089db85919e922846426e9942fae37ccc146739f (patch)
tree661c6e0eba866b08950ab557052ebb5b9c64b745 /make/ed.mk
parentd4ef2a6a25ec7cd1a968f7367706925825868452 (diff)
downloadbuildroot-novena-089db85919e922846426e9942fae37ccc146739f.tar.gz
buildroot-novena-089db85919e922846426e9942fae37ccc146739f.zip
Add support for several new utilities
Diffstat (limited to 'make/ed.mk')
-rw-r--r--make/ed.mk52
1 files changed, 52 insertions, 0 deletions
diff --git a/make/ed.mk b/make/ed.mk
new file mode 100644
index 000000000..323e9dc11
--- /dev/null
+++ b/make/ed.mk
@@ -0,0 +1,52 @@
+#############################################################
+#
+# ed
+#
+#############################################################
+ED_SOURCE:=ed_0.2.orig.tar.gz
+ED_PATCH:=ed_0.2-19.diff.gz
+ED_SITE:=http://ftp.debian.org/debian/pool/main/e/ed
+ED_CAT:=zcat
+ED_DIR:=$(BUILD_DIR)/ed-0.2
+ED_BINARY:=ed
+ED_TARGET_BINARY:=bin/ed
+
+$(DL_DIR)/$(ED_SOURCE):
+ $(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_SOURCE)
+
+$(DL_DIR)/$(ED_PATCH):
+ $(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_PATCH)
+
+ed-source: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
+
+$(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
+ $(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ $(SOURCE_DIR)/patch-kernel.sh $(ED_DIR) $(DL_DIR) $(ED_PATCH)
+ touch $(ED_DIR)/.unpacked
+
+$(ED_DIR)/.configured: $(ED_DIR)/.unpacked
+ (cd $(ED_DIR); rm -rf config.cache; \
+ PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --disable-nls \
+ );
+ touch $(ED_DIR)/.configured
+
+$(ED_DIR)/$(ED_BINARY): $(ED_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(ED_DIR)
+
+$(TARGET_DIR)/$(ED_TARGET_BINARY): $(ED_DIR)/$(ED_BINARY)
+ cp -a $(ED_DIR)/$(ED_BINARY) $(TARGET_DIR)/$(ED_TARGET_BINARY)
+
+ed: uclibc $(TARGET_DIR)/$(ED_TARGET_BINARY)
+
+ed-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(ED_DIR) uninstall
+ -$(MAKE) -C $(ED_DIR) clean
+
+ed-dirclean:
+ rm -rf $(ED_DIR)
+