kumquat-buildroot/package/haserl/haserl.mk
Bernhard Reutner-Fischer 74d518dc2a - add endian handling, mmap, memcmp checks to TARGET_CONFIGURE_ARGS
- use TARGET_CONFIGURE_ARGS where appropriate.
2007-06-27 12:01:27 +00:00

57 lines
1.5 KiB
Makefile

#############################################################
#
# haserl
#
#############################################################
HASERL_VERSION=0.8.0
HASERL_SOURCE=haserl-$(HASERL_VERSION).tar.gz
HASERL_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/haserl/
HASERL_DIR=$(BUILD_DIR)/haserl-$(HASERL_VERSION)
HASERL_CAT:=$(ZCAT)
$(DL_DIR)/$(HASERL_SOURCE):
$(WGET) -P $(DL_DIR) $(HASERL_SITE)/$(HASERL_SOURCE)
$(HASERL_DIR)/.unpacked: $(DL_DIR)/$(HASERL_SOURCE)
$(HASERL_CAT) $(DL_DIR)/$(HASERL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
touch $@
$(HASERL_DIR)/.configured: $(HASERL_DIR)/.unpacked
(cd $(HASERL_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 \
--sysconfdir=/etc \
);
touch $@
$(HASERL_DIR)/src/haserl: $(HASERL_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(HASERL_DIR)
$(HASERL_DIR)/.installed: $(HASERL_DIR)/src/haserl
cp $(HASERL_DIR)/src/haserl $(TARGET_DIR)/usr/bin
touch $@
haserl: uclibc $(HASERL_DIR)/.installed
haserl-source: $(DL_DIR)/$(HASERL_SOURCE)
haserl-clean:
-$(MAKE) -C $(HASERL_DIR) clean
haserl-dirclean:
rm -rf $(HASERL_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_HASERL)),y)
TARGETS+=haserl
endif