annotate src/ocaml-native.mk @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents 13be64f9f16d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2834
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
2 # See doc/index.html for further information.
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
3
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
4 # zlib
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
5 PKG := ocaml-native
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
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
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 9653e76dd14f0fbb750d7b438415890ab9fe2f4e
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
9 $(PKG)_SUBDIR := ocaml-$($(PKG)_VERSION)
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
10 $(PKG)_FILE := ocaml-$($(PKG)_VERSION).tar.gz
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
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
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
13
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
14 define $(PKG)_UPDATE
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
15 wget -q -O- 'http://caml.inria.fr/pub/distrib/ocaml-3.12' | \
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
16 $(SED) -n 's,.*ocaml-\([0-9][^>]*\)\.tar.*,\1,ip' | \
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
17 tail -1
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
18 endef
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
19
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
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
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
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
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
26 -no-tk \
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
27 -no-shared-libs \
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
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
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
30 $(SED) -i "s,@target@,$(TARGET),g" $(1)/ocamlbuild/options.ml
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
31 $(SED) -i "s,@target@,$(TARGET),g" $(1)/ocamlbuild/findlib.ml
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
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
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
34 $(MAKE) -C '$(1)' install
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
35 # the following script requires ocamlbuild with option -ocamlfind to work
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
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
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
40 # test will be done once cross ocamlopt is built
fe0a6e45513f add package ocaml-native
William <r.3@libertysurf.fr>
parents:
diff changeset
41 endef