summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-01-09 13:35:16 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-01-09 13:35:16 +0000
commit86884df4d1cb014122f4e59422bc5b5f69c66e9d (patch)
tree5ac4090ce8a86f953f1ede368bd5c275e50599c8
parent8bcb19eb508271d80883d85399e2d4783e705564 (diff)
ed: bump version, convert to Makefile.autotools.in format
-rw-r--r--package/editors/ed/ed.mk53
1 files changed, 2 insertions, 51 deletions
diff --git a/package/editors/ed/ed.mk b/package/editors/ed/ed.mk
index 237e78a2b..d9960db82 100644
--- a/package/editors/ed/ed.mk
+++ b/package/editors/ed/ed.mk
@@ -3,57 +3,8 @@
# ed
#
#############################################################
-ED_VERSION:=0.8
+ED_VERSION:=1.1
ED_SOURCE:=ed-$(ED_VERSION).tar.bz2
ED_SITE:=$(BR2_GNU_MIRROR)/ed/
-ED_CAT:=$(BZCAT)
-ED_DIR:=$(BUILD_DIR)/ed-$(ED_VERSION)
-ED_BINARY:=ed
-ED_TARGET_BINARY:=bin/ed
-$(DL_DIR)/$(ED_SOURCE):
- $(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_SOURCE)
-
-$(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE)
- $(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(ED_DIR) package/editors/ed/ ed-\*.patch
- touch $@
-
-$(ED_DIR)/.configured: $(ED_DIR)/.unpacked
- (cd $(ED_DIR); rm -rf config.cache; \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- ./configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --exec-prefix=/usr \
- )
- touch $@
-
-$(ED_DIR)/$(ED_BINARY): $(ED_DIR)/.configured
- $(MAKE) CC=$(TARGET_CC) -C $(ED_DIR)
-
-$(TARGET_DIR)/$(ED_TARGET_BINARY): $(ED_DIR)/$(ED_BINARY)
- $(INSTALL) -D $(ED_DIR)/$(ED_BINARY) $(TARGET_DIR)/$(ED_TARGET_BINARY)
-
-ed: uclibc $(TARGET_DIR)/$(ED_TARGET_BINARY)
-
-ed-source: $(DL_DIR)/$(ED_SOURCE)
-
-ed-clean:
- $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(ED_DIR) uninstall
- -$(MAKE) -C $(ED_DIR) clean
-
-ed-dirclean:
- rm -rf $(ED_DIR)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_ED),y)
-TARGETS+=ed
-endif
+$(eval $(call AUTOTARGETS,package/editors,ed))