# This file is part of MXE. # See index.html for further information. PKG := guile $(PKG)_IGNORE := 2% $(PKG)_VERSION := 1.8.8 $(PKG)_CHECKSUM := 548d6927aeda332b117f8fc5e4e82c39a05704f9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) $(PKG)_DEPS := gcc libltdl gmp libiconv gettext libunistring gc libffi readline libgnurx define $(PKG)_UPDATE $(WGET) -q -O- 'http://git.savannah.gnu.org/gitweb/?p=guile.git;a=tags' | \ grep ']*>[^0-9>]*\([0-9][^< ]*\)\.<.*,\1,p' | \ grep -v 2.* | \ $(SORT) -Vr | \ head -1 endef define $(PKG)_BUILD # The setting "scm_cv_struct_timespec=no" ensures that Guile # won't try to use the "struct timespec" from , # which would fail because we tell Guile not to use Pthreads. cd '$(1)' && CC_FOR_BUILD=gcc ./configure \ --host='$(TARGET)' \ --build="`config.guess`" \ --prefix='$(PREFIX)/$(TARGET)' \ --disable-shared \ --without-threads \ scm_cv_struct_timespec=no \ LIBS='-lunistring -lintl -liconv -ldl' \ CFLAGS='-Wno-unused-but-set-variable -Wno-unused-value' $(MAKE) -C '$(1)' -j '$(JOBS)' schemelib_DATA= $(MAKE) -C '$(1)' -j 1 install schemelib_DATA= '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-guile.exe' \ `'$(TARGET)-pkg-config' guile-$(call SHORT_PKG_VERSION,$(PKG)) --cflags --libs` \ -DGUILE_MAJOR_MINOR=\"$(call SHORT_PKG_VERSION,$(PKG))\" endef $(PKG)_BUILD_x86_64-w64-mingw32 = $(PKG)_BUILD_i686-w64-mingw32 = $(PKG)_BUILD_SHARED =