2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-04-11 01:34:06 +02:00
|
|
|
#
|
|
|
|
# haserl
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-04-11 01:34:06 +02:00
|
|
|
|
2011-04-20 19:41:55 +02:00
|
|
|
HASERL_VERSION = $(call qstrip,$(BR2_PACKAGE_HASERL_VERSION))
|
2013-06-30 10:19:39 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HASERL_VERSION_0_8_X),y)
|
|
|
|
HASERL_SITE = http://downloads.sourceforge.net/project/haserl/haserl/$(HASERL_VERSION)
|
|
|
|
else
|
|
|
|
HASERL_SITE = http://downloads.sourceforge.net/project/haserl/haserl-devel
|
|
|
|
endif
|
2013-01-21 12:29:47 +01:00
|
|
|
HASERL_LICENSE = GPLv2
|
|
|
|
HASERL_LICENSE_FILES = COPYING
|
2006-04-11 01:34:06 +02:00
|
|
|
|
2010-04-29 23:04:20 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HASERL_WITH_LUA),y)
|
|
|
|
HASERL_CONF_OPT += --with-lua=$(STAGING_DIR) \
|
|
|
|
--with-lua-headers=$(STAGING_DIR)
|
2012-04-05 21:11:00 +02:00
|
|
|
HASERL_DEPENDENCIES += lua host-lua
|
|
|
|
# lua2c is built for host, so needs to find host libs/headers
|
|
|
|
HASERL_MAKE_OPT += lua2c_LDFLAGS='$(HOST_CFLAGS) $(HOST_LDFLAGS)'
|
2010-04-29 23:04:20 +02:00
|
|
|
endif
|
2006-04-11 01:34:06 +02:00
|
|
|
|
2010-09-02 00:04:13 +02:00
|
|
|
define HASERL_REMOVE_EXAMPLES
|
2008-08-19 11:40:20 +02:00
|
|
|
rm -rf $(TARGET_DIR)/usr/share/haserl
|
2010-09-02 00:04:13 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
HASERL_POST_INSTALL_TARGET_HOOKS += HASERL_REMOVE_EXAMPLES
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|