Mercurial > mxe-octave
annotate src/guile.mk @ 1766:d9a35d002ab1
ignore version 2.0.0 of package guile (i.e. wait for the issues to be fixed in the next version)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Fri, 22 Apr 2011 21:16:04 +0200 |
parents | 4e48476ea587 |
children | 7e95e92292fe |
rev | line source |
---|---|
844 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # GNU Guile | |
5 PKG := guile | |
1766
d9a35d002ab1
ignore version 2.0.0 of package guile (i.e. wait for the issues to be fixed in the next version)
Volker Grabsch <vog@notjusthosting.com>
parents:
1707
diff
changeset
|
6 $(PKG)_IGNORE := 2.0.0 |
844 | 7 $(PKG)_VERSION := 1.8.7 |
8 $(PKG)_CHECKSUM := 24cd2f06439c76d41d982a7384fe8a0fe5313b54 | |
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_WEBSITE := http://www.gnu.org/software/$(PKG)/ | |
12 $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) | |
872 | 13 $(PKG)_DEPS := gcc libtool gmp libiconv gettext libunistring gc libffi readline |
844 | 14 |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=$(PKG).git;a=tags' | \ | |
17 grep '<a class="list subject"' | \ | |
18 $(SED) -n 's,.*<a[^>]*>[^0-9>]*\([0-9][^< ]*\)\.<.*,\1,p' | \ | |
19 head -1 | |
20 endef | |
21 | |
22 define $(PKG)_BUILD | |
937
2d9d50ec94e2
don't use "struct timespec" from <pthreads.h> in package guile
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
23 # The setting "scm_cv_struct_timespec=no" ensures that Guile |
2d9d50ec94e2
don't use "struct timespec" from <pthreads.h> in package guile
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
24 # won't try to use the "struct timespec" from <pthreads.h>, |
2d9d50ec94e2
don't use "struct timespec" from <pthreads.h> in package guile
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
25 # which would fail because we tell Guile not to use Pthreads. |
1666
9c1cb932b77a
package guile: wine confuses native build steps so set CC_FOR_BUILD and --build
Tony Theodore <tonyt@logyst.com>
parents:
937
diff
changeset
|
26 cd '$(1)' && CC_FOR_BUILD=gcc ./configure \ |
844 | 27 --host='$(TARGET)' \ |
1669 | 28 --build="`sh ./config.guess`" \ |
844 | 29 --prefix='$(PREFIX)/$(TARGET)' \ |
30 --disable-shared \ | |
935
9993be51f18d
disable the use of the buggy Pthreads-w32 library in packages freetds, guile, libmikmod, libshout, libxml2, sqlite, tiff, vorbis and xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
872
diff
changeset
|
31 --without-threads \ |
937
2d9d50ec94e2
don't use "struct timespec" from <pthreads.h> in package guile
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
32 scm_cv_struct_timespec=no \ |
1700
1749bf309c38
package guile: allow unused vars
Mark Brand <mabrand@mabrand.nl>
parents:
1669
diff
changeset
|
33 LIBS='-lunistring -lintl -liconv' \ |
1749bf309c38
package guile: allow unused vars
Mark Brand <mabrand@mabrand.nl>
parents:
1669
diff
changeset
|
34 CFLAGS='-Wno-unused-but-set-variable' |
864
f7b6430ab3be
don't generate guile-procedures.txt in package guile because this requires a native guile installation
Volker Grabsch <vog@notjusthosting.com>
parents:
860
diff
changeset
|
35 $(MAKE) -C '$(1)' -j '$(JOBS)' schemelib_DATA= |
f7b6430ab3be
don't generate guile-procedures.txt in package guile because this requires a native guile installation
Volker Grabsch <vog@notjusthosting.com>
parents:
860
diff
changeset
|
36 $(MAKE) -C '$(1)' -j 1 install schemelib_DATA= |
844 | 37 |
38 '$(TARGET)-gcc' \ | |
1707
4e48476ea587
fix compiler errors instead of suppressing them
Volker Grabsch <vog@notjusthosting.com>
parents:
1700
diff
changeset
|
39 -W -Wall -Werror -ansi -pedantic \ |
844 | 40 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-guile.exe' \ |
41 `'$(TARGET)-pkg-config' guile-1.8 --cflags --libs` | |
42 endef |