2006-04-11 01:34:06 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# haserl
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2007-10-30 23:10:17 +01:00
|
|
|
HASERL_VERSION:=$(strip $(subst ",,$(BR2_PACKAGE_HASERL_VERSION)))
|
|
|
|
#"))
|
|
|
|
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)
|
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) -
|
2007-10-12 16:28:56 +02:00
|
|
|
toolchain/patch-kernel.sh $(HASERL_DIR) package/haserl/ haserl-$(HASERL_VERSION)\*.patch
|
2007-05-31 17:19:37 +02:00
|
|
|
touch $@
|
2006-04-11 01:34:06 +02:00
|
|
|
|
|
|
|
$(HASERL_DIR)/.configured: $(HASERL_DIR)/.unpacked
|
|
|
|
(cd $(HASERL_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2006-04-11 01:34:06 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-05-31 17:19:37 +02:00
|
|
|
touch $@
|
2006-04-11 01:34:06 +02:00
|
|
|
|
2007-05-31 17:19:37 +02:00
|
|
|
$(HASERL_DIR)/src/haserl: $(HASERL_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(HASERL_DIR)
|
2006-04-11 01:34:06 +02:00
|
|
|
|
2007-05-31 17:19:37 +02:00
|
|
|
$(HASERL_DIR)/.installed: $(HASERL_DIR)/src/haserl
|
|
|
|
cp $(HASERL_DIR)/src/haserl $(TARGET_DIR)/usr/bin
|
|
|
|
touch $@
|
2006-04-11 01:34:06 +02:00
|
|
|
|
2007-08-20 19:21:16 +02:00
|
|
|
haserl: uclibc $(HASERL_DIR)/.installed
|
2006-04-11 01:34:06 +02:00
|
|
|
|
|
|
|
haserl-source: $(DL_DIR)/$(HASERL_SOURCE)
|
|
|
|
|
2007-10-12 16:28:56 +02:00
|
|
|
haserl-unpacked: $(HASERL_DIR)/.unpacked
|
|
|
|
|
2006-04-11 01:34:06 +02:00
|
|
|
haserl-clean:
|
2007-05-31 17:19:37 +02:00
|
|
|
-$(MAKE) -C $(HASERL_DIR) clean
|
2006-04-11 01:34:06 +02:00
|
|
|
|
|
|
|
haserl-dirclean:
|
2007-05-31 17:19:37 +02:00
|
|
|
rm -rf $(HASERL_DIR)
|
2006-04-11 01:34:06 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_HASERL)),y)
|
|
|
|
TARGETS+=haserl
|
|
|
|
endif
|