mxe/src/guile.mk

46 lines
1.8 KiB
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2010-04-10 07:27:23 +01:00
PKG := guile
$(PKG)_WEBSITE := https://www.gnu.org/software/guile/
$(PKG)_DESCR := GNU Guile
$(PKG)_IGNORE := 2%
$(PKG)_VERSION := 1.8.8
$(PKG)_CHECKSUM := c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
2010-04-10 07:27:23 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
2017-03-04 10:33:47 +00:00
$(PKG)_URL := https://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := cc gc gettext gmp libffi libgnurx libiconv libltdl libunistring readline
2010-04-10 07:27:23 +01:00
define $(PKG)_UPDATE
2017-03-04 10:33:47 +00:00
$(WGET) -q -O- 'https://git.savannah.gnu.org/gitweb/?p=guile.git;a=tags' | \
grep '<a [^>]*class="list subject"' | \
2010-04-10 07:27:23 +01:00
$(SED) -n 's,.*<a[^>]*>[^0-9>]*\([0-9][^< ]*\)\.<.*,\1,p' | \
grep -v 2.* | \
$(SORT) -Vr | \
2010-04-10 07:27:23 +01:00
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 <pthreads.h>,
# which would fail because we tell Guile not to use Pthreads.
2018-08-13 14:11:27 +01:00
cd '$(BUILD_DIR)' && CC_FOR_BUILD=$(BUILD_CC) $(SOURCE_DIR)/configure \
$(MXE_CONFIGURE_OPTS) \
--without-threads \
scm_cv_struct_timespec=no \
2013-12-24 11:55:59 +00:00
LIBS='-lunistring -lintl -liconv -ldl' \
CFLAGS='-Wno-unused-but-set-variable -Wno-unused-value $($(PKG)_EXTRA_WARNINGS)'
2018-08-13 14:11:27 +01:00
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT) schemelib_DATA=
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT) schemelib_DATA=
2010-04-10 07:27:23 +01:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-guile.exe' \
2013-03-03 16:03:13 +00:00
`'$(TARGET)-pkg-config' guile-$(call SHORT_PKG_VERSION,$(PKG)) --cflags --libs` \
-DGUILE_MAJOR_MINOR=\"$(call SHORT_PKG_VERSION,$(PKG))\"
2010-04-10 07:27:23 +01:00
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_SHARED =