2007-01-13 22:45:00 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dash
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
DASH_VERSION:=0.5.3
|
|
|
|
DASH_SOURCE:=dash_$(DASH_VERSION).orig.tar.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
DASH_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/d/dash
|
2007-01-13 22:45:00 +01:00
|
|
|
DASH_CAT:=$(ZCAT)
|
2007-07-11 16:06:06 +02:00
|
|
|
DASH_DIR:=$(BUILD_DIR)/dash-$(DASH_VERSION)
|
|
|
|
DASH_PATCH1:=dash_$(DASH_VERSION)-7.diff.gz
|
2007-01-13 22:45:00 +01:00
|
|
|
DASH_BINARY:=src/dash
|
|
|
|
DASH_TARGET_BINARY:=bin/dash
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DASH_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(DASH_SITE),$(DASH_SOURCE))
|
2007-01-13 22:45:00 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(DASH_PATCH1):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(DASH_SITE),$(DASH_PATCH1))
|
2007-01-13 22:45:00 +01:00
|
|
|
|
|
|
|
dash-source: $(DL_DIR)/$(DASH_SOURCE) $(DL_DIR)/$(DASH_PATCH1)
|
|
|
|
|
|
|
|
$(DASH_DIR)/.unpacked: $(DL_DIR)/$(DASH_SOURCE) $(DL_DIR)/$(DASH_PATCH1)
|
|
|
|
$(DASH_CAT) $(DL_DIR)/$(DASH_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
$(ZCAT) $(DL_DIR)/$(DASH_PATCH1) | patch -p1 -d $(DASH_DIR)
|
|
|
|
touch $(DASH_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(DASH_DIR)/.configured: $(DASH_DIR)/.unpacked
|
|
|
|
(cd $(DASH_DIR); rm -rf config.cache; \
|
2007-01-14 12:25:22 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-01-13 22:45:00 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-01-13 22:45:00 +01:00
|
|
|
touch $(DASH_DIR)/.configured
|
|
|
|
|
|
|
|
$(DASH_DIR)/$(DASH_BINARY): $(DASH_DIR)/.configured
|
|
|
|
$(MAKE1) CC=$(TARGET_CC) CC_FOR_BUILD="$(HOSTCC)" -C $(DASH_DIR)
|
|
|
|
touch -c $(DASH_DIR)/$(DASH_BINARY)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(DASH_TARGET_BINARY): $(DASH_DIR)/$(DASH_BINARY)
|
|
|
|
cp -a $(DASH_DIR)/$(DASH_BINARY) $(TARGET_DIR)/$(DASH_TARGET_BINARY)
|
|
|
|
touch -c $(TARGET_DIR)/$(DASH_TARGET_BINARY)
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
dash: $(TARGET_DIR)/$(DASH_TARGET_BINARY)
|
2007-01-13 22:45:00 +01:00
|
|
|
|
|
|
|
dash-clean:
|
|
|
|
$(MAKE1) CC=$(TARGET_CC) -C $(DASH_DIR) clean
|
|
|
|
rm -f $(TARGET_DIR)/$(DASH_TARGET_BINARY)
|
|
|
|
|
|
|
|
dash-dirclean:
|
|
|
|
rm -rf $(DASH_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DASH),y)
|
2007-01-13 22:45:00 +01:00
|
|
|
TARGETS+=dash
|
|
|
|
endif
|