2006-04-11 01:34:06 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# 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)/${shell basename $(HASERL_SOURCE) .tar.gz}
|
|
|
|
HASERL_WORKDIR=$(BUILD_DIR)/haserl-$(HASERL_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
HASERL_CAT:=$(ZCAT)
|
2006-04-11 01:34:06 +02:00
|
|
|
|
|
|
|
$(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)/.unpacked
|
|
|
|
|
|
|
|
$(HASERL_DIR)/.configured: $(HASERL_DIR)/.unpacked
|
|
|
|
(cd $(HASERL_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
);
|
|
|
|
touch $(HASERL_DIR)/.configured
|
|
|
|
|
|
|
|
$(HASERL_WORKDIR)/src/haserl: $(HASERL_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(HASERL_WORKDIR)
|
|
|
|
|
|
|
|
$(HASERL_WORKDIR)/.installed: $(HASERL_WORKDIR)/src/haserl
|
|
|
|
cp $(HASERL_WORKDIR)/src/haserl $(TARGET_DIR)/usr/bin
|
|
|
|
touch $(HASERL_WORKDIR)/.installed
|
|
|
|
|
|
|
|
haserl: uclibc $(HASERL_WORKDIR)/.installed
|
|
|
|
|
|
|
|
haserl-source: $(DL_DIR)/$(HASERL_SOURCE)
|
|
|
|
|
|
|
|
haserl-clean:
|
|
|
|
@if [ -d $(HASERL_WORKDIR)/Makefile ] ; then \
|
|
|
|
$(MAKE) -C $(HASERL_WORKDIR) clean ; \
|
|
|
|
fi;
|
|
|
|
|
|
|
|
haserl-dirclean:
|
|
|
|
rm -rf $(HASERL_DIR) $(HASERL_WORKDIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_HASERL)),y)
|
|
|
|
TARGETS+=haserl
|
|
|
|
endif
|