package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / guile / guile.mk
blob0e0b1a34c186d790d7d7c8e5b83069b81428b604
1 ################################################################################
3 # guile
5 ################################################################################
7 GUILE_VERSION = 2.0.11
8 GUILE_SOURCE = guile-$(GUILE_VERSION).tar.xz
9 GUILE_SITE = $(BR2_GNU_MIRROR)/guile
10 GUILE_INSTALL_STAGING = YES
11 # For 0002-calculate-csqrt_manually.patch
12 GUILE_AUTORECONF = YES
13 GUILE_LICENSE = LGPLv3+
14 GUILE_LICENSE_FILES = LICENSE COPYING COPYING.LESSER
16 # libtool dependency is needed because guile uses libltdl
17 GUILE_DEPENDENCIES = host-guile libunistring libffi gmp bdwgc host-pkgconf libtool
18 HOST_GUILE_DEPENDENCIES = host-libunistring host-libffi host-gmp host-bdwgc host-flex host-pkgconf host-gettext
20 # The HAVE_GC* CFLAGS specify that we will use internal callbacks
21 # instead of the ones provided by
22 # bdwgc. Eg. HAVE_GC_SET_FINALIZER_NOTIFIER specifies that we won't
23 # use bdwgc's GC_finalizer_notifier callback. Trying to use these
24 # specific bdwgc's callbacks breaks guile's building.
25 GUILE_CFLAGS = \
26 -DHAVE_GC_SET_FINALIZER_NOTIFIER \
27 -DHAVE_GC_GET_HEAP_USAGE_SAFE \
28 -DHAVE_GC_GET_FREE_SPACE_DIVISOR \
29 -DHAVE_GC_SET_FINALIZE_ON_DEMAND
31 ifeq ($(BR2_STATIC_LIBS),y)
32 GUILE_CFLAGS += -DGC_NO_DLOPEN
33 endif
35 # It can use readline, but on the condition that it was build against
36 # ncurses. If both aren't present disable readline support since the
37 # host readline/ncurses support can poison the build.
38 ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy)
39 GUILE_CONF_OPTS += --with-libreadline-prefix=$(STAGING_DIR)/usr
40 GUILE_DEPENDENCIES += readline
41 else
42 GUILE_CONF_OPTS += --without-libreadline-prefix
43 endif
45 GUILE_CONF_ENV += GUILE_FOR_BUILD=$(HOST_DIR)/usr/bin/guile \
46 CFLAGS="$(TARGET_CFLAGS) $(GUILE_CFLAGS)"
48 GUILE_CONF_OPTS += \
49 --with-libltdl-prefix=$(STAGING_DIR)/usr/lib \
50 --with-libgmp-prefix=$(STAGING_DIR)/usr/lib \
51 --with-libunistring-prefix=$(STAGING_DIR)/usr/lib
53 $(eval $(autotools-package))
54 $(eval $(host-autotools-package))