aboutsummaryrefslogtreecommitdiff
path: root/package/ed
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
commit73f7be82904f487d167493e76b415fbe5b5f8c5a (patch)
tree8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/ed
parent0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff)
downloadbuildroot-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz
buildroot-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.bz2
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/ed')
-rw-r--r--package/ed/ed.mk55
1 files changed, 55 insertions, 0 deletions
diff --git a/package/ed/ed.mk b/package/ed/ed.mk
new file mode 100644
index 0000000000..de6c3cb251
--- /dev/null
+++ b/package/ed/ed.mk
@@ -0,0 +1,55 @@
+#############################################################
+#
+# 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; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_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)
+