1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# gauche 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunGAUCHE_VERSION = 0.9.9 8*4882a593SmuzhiyunGAUCHE_SOURCE = Gauche-$(GAUCHE_VERSION).tgz 9*4882a593SmuzhiyunGAUCHE_SITE = http://downloads.sourceforge.net/project/gauche/Gauche 10*4882a593SmuzhiyunGAUCHE_LICENSE = BSD-3-Clause, Boehm-gc, SRFI (srfi-11.scm), reload (reload.scm) 11*4882a593SmuzhiyunGAUCHE_LICENSE_FILES = COPYING 12*4882a593SmuzhiyunGAUCHE_DEPENDENCIES = host-gauche 13*4882a593Smuzhiyun# We're patching configure.ac 14*4882a593SmuzhiyunGAUCHE_AUTORECONF = YES 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunHOST_GAUCHE_CONF_OPTS = --without-zlib 17*4882a593SmuzhiyunGAUCHE_CONF_OPTS = --without-libatomic-ops 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun# Enable embedded axTLS 20*4882a593SmuzhiyunGAUCHE_TLS_LIBS = axtls 21*4882a593Smuzhiyun 22*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_MBEDTLS),y) 23*4882a593SmuzhiyunGAUCHE_TLS_LIBS += mbedtls 24*4882a593SmuzhiyunGAUCHE_DEPENDENCIES += mbedtls 25*4882a593Smuzhiyunendif 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunGAUCHE_CONF_OPTS += --with-tls="$(GAUCHE_TLS_LIBS)" 28*4882a593Smuzhiyun 29*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ZLIB),y) 30*4882a593SmuzhiyunGAUCHE_CONF_OPTS += --with-zlib=$(STAGING_DIR) 31*4882a593SmuzhiyunGAUCHE_DEPENDENCIES += zlib 32*4882a593Smuzhiyunelse 33*4882a593SmuzhiyunGAUCHE_CONF_OPTS += --without-zlib 34*4882a593Smuzhiyunendif 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun# Detection of c99 support in configure fails without WCHAR. To enable 37*4882a593Smuzhiyun# automatic detection of c99 support by configure, we need to enable 38*4882a593Smuzhiyun# WCHAR in toolchain. But actually we do not need WCHAR at gauche 39*4882a593Smuzhiyun# runtime. So reuesting WCHAR in toolchain just for automatic detection 40*4882a593Smuzhiyun# will be overkill. To solve this, explicitly -std=gnu99 is specified 41*4882a593Smuzhiyun# here. 42*4882a593SmuzhiyunGAUCHE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99" 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun$(eval $(autotools-package)) 45*4882a593Smuzhiyun$(eval $(host-autotools-package)) 46