Mercurial > mxe-octave
annotate src/ocaml-native.mk @ 3926:ee802fc5dd9b
gcc: update to 5.1.0, update isl, libgpg_error
* src/build-gcc.mk: update version, checksum, remove cloog as a dependancy
* src/gcc-isl-1-fixes.patch: remove patch
* src/isl-1-fixes.patch: update patch
* src/isl.mk: update version, checksum
* src/libgpg_error-1-fixes.patch: remove patch
* src/libgpg_error.mk: update version, checksum
* src/native-gcc.mk: update version, checksum, remove cloog as a dependancy
* dist-files.mk: remove gcc-isl-1-fixes.patch, libgpg_error-1-fixes.patch
author | John D |
---|---|
date | Sun, 03 May 2015 20:38:29 -0400 |
parents | 13be64f9f16d |
children |
rev | line source |
---|---|
2834 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # zlib | |
5 PKG := ocaml-native | |
6 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
7 $(PKG)_VERSION := 4.00.0 |
2834 | 8 $(PKG)_CHECKSUM := 9653e76dd14f0fbb750d7b438415890ab9fe2f4e |
9 $(PKG)_SUBDIR := ocaml-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := ocaml-$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_URL := http://caml.inria.fr/pub/distrib/ocaml-4.00/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
12 $(PKG)_DEPS := |
2834 | 13 |
14 define $(PKG)_UPDATE | |
15 wget -q -O- 'http://caml.inria.fr/pub/distrib/ocaml-3.12' | \ | |
16 $(SED) -n 's,.*ocaml-\([0-9][^>]*\)\.tar.*,\1,ip' | \ | |
17 tail -1 | |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
21 # patched ocaml source to get ocamlbuild use $(MXE_TOOL_PREFIX)ocamlc, $(MXE_TOOL_PREFIX)ocamlfind, ... |
2834 | 22 cd '$(1)' && ./configure \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2837
diff
changeset
|
23 -prefix '$(HOST_PREFIX)' \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
24 -bindir '$(HOST_BINDIR)/ocaml-native' \ |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
25 -libdir '$(HOST_LIBDIR)/ocaml-native' \ |
2834 | 26 -no-tk \ |
27 -no-shared-libs \ | |
28 -verbose | |
2837
efb8519157c2
package ocaml-native: disable parallel building due to failures
Mark Brand <mabrand@mabrand.nl>
parents:
2834
diff
changeset
|
29 $(MAKE) -C '$(1)' -j 1 world opt |
2834 | 30 $(SED) -i "s,@target@,$(TARGET),g" $(1)/ocamlbuild/options.ml |
31 $(SED) -i "s,@target@,$(TARGET),g" $(1)/ocamlbuild/findlib.ml | |
32 $(MAKE) -C '$(1)' -j '$(JOBS)' ocamlbuild.native | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
33 cp -f '$(1)/_build/ocamlbuild/ocamlbuild.native' $(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)ocamlbuild |
2834 | 34 $(MAKE) -C '$(1)' install |
35 # the following script requires ocamlbuild with option -ocamlfind to work | |
36 #(echo '#!/bin/sh'; \ | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
37 # echo 'exec $(BUILD_TOOLS_PREFIX)/bin/ocamlbuild -use-ocamlfind -ocamlfind $(MXE_TOOL_PREFIX)ocamlfind "$$@"') \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
38 # > '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)ocamlbuild' |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
39 #chmod 0755 '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)ocamlbuild' |
2834 | 40 # test will be done once cross ocamlopt is built |
41 endef |