2003-02-12 11:40:28 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ed
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-05 19:52:31 +02:00
|
|
|
ED_VERSION:=0.6
|
|
|
|
ED_SOURCE:=ed-$(ED_VERSION).tar.bz2
|
|
|
|
ED_SITE:=http://ftp.gnu.org/gnu/ed/
|
|
|
|
ED_CAT:=$(BZCAT)
|
|
|
|
ED_DIR:=$(BUILD_DIR)/ed-$(ED_VERSION)
|
2003-02-12 11:40:28 +01:00
|
|
|
ED_BINARY:=ed
|
|
|
|
ED_TARGET_BINARY:=bin/ed
|
|
|
|
|
|
|
|
$(DL_DIR)/$(ED_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_SOURCE)
|
|
|
|
|
2007-07-17 17:37:08 +02:00
|
|
|
$(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-06-20 15:25:44 +02:00
|
|
|
toolchain/patch-kernel.sh $(ED_DIR) package/ed/ ed-\*.patch
|
2007-01-18 17:34:34 +01:00
|
|
|
touch $@
|
2003-02-12 11:40:28 +01:00
|
|
|
|
|
|
|
$(ED_DIR)/.configured: $(ED_DIR)/.unpacked
|
|
|
|
(cd $(ED_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2003-02-12 11:40:28 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-02-12 11:40:28 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2003-02-12 11:40:28 +01:00
|
|
|
);
|
2007-01-18 17:34:34 +01:00
|
|
|
touch $@
|
2003-02-12 11:40:28 +01:00
|
|
|
|
|
|
|
$(ED_DIR)/$(ED_BINARY): $(ED_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(ED_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(ED_TARGET_BINARY): $(ED_DIR)/$(ED_BINARY)
|
2007-01-18 17:34:34 +01:00
|
|
|
cp -dpf $(ED_DIR)/$(ED_BINARY) $(TARGET_DIR)/$(ED_TARGET_BINARY)
|
2003-02-12 11:40:28 +01:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_ED)),y)
|
|
|
|
TARGETS+=ed
|
|
|
|
endif
|