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