mxe/src/guile.mk

45 lines
1.7 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2010-04-10 07:27:23 +01:00
PKG := guile
$(PKG)_IGNORE := 2%
$(PKG)_VERSION := 1.8.7
2010-04-10 07:27:23 +01:00
$(PKG)_CHECKSUM := 24cd2f06439c76d41d982a7384fe8a0fe5313b54
$(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
2010-04-10 07:27:23 +01:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://git.savannah.gnu.org/gitweb/?p=$(PKG).git;a=tags' | \
2010-04-10 07:27:23 +01:00
grep '<a class="list subject"' | \
$(SED) -n 's,.*<a[^>]*>[^0-9>]*\([0-9][^< ]*\)\.<.*,\1,p' | \
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.
cd '$(1)' && CC_FOR_BUILD=gcc ./configure \
2010-04-10 07:27:23 +01:00
--host='$(TARGET)' \
--build="`config.guess`" \
2010-04-10 07:27:23 +01:00
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--without-threads \
scm_cv_struct_timespec=no \
2013-12-24 11:55:59 +00:00
LIBS='-lunistring -lintl -liconv -ldl' \
2011-03-26 00:25:02 +00:00
CFLAGS='-Wno-unused-but-set-variable'
$(MAKE) -C '$(1)' -j '$(JOBS)' schemelib_DATA=
$(MAKE) -C '$(1)' -j 1 install schemelib_DATA=
2010-04-10 07:27:23 +01:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
2010-04-10 07:27:23 +01:00
'$(2).c' -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_i686-w64-mingw32 =