Update to O'Caml 3.12.1 Changes in Objective Caml 3.12.1: Features: - added '-ml-synonym' and '-mli-synonym' options to ocamldep - added '-ocamldoc' option to ocamlbuild - added possibility to add options to ocamlbuild - added access to current camlp4 parsers and printers - improved instruction selection for float operations on amd64 - stdlib: added a 'usage_string' function to Arg - allow with constraints to add a type equation to a datatype definition - ocamldoc: allow to merge '@before' tags like other ones - ocamlbuild: allow dependency on file "_oasis" Other changes: - Changed default minor heap size from 32k to 256k words. - Added new operation 'compare_ext' to custom blocks, called when comparing a custom block value with an unboxed integer. Multiple bug fixes.diff -r1.75 -r1.76 pkgsrc/lang/ocaml/Makefile
(asau)
@@ -1,21 +1,19 @@ | @@ -1,21 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.75 2011/12/06 00:19:07 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.76 2012/03/04 09:06:46 asau Exp $ | |
2 | 2 | |||
3 | PKG_DESTDIR_SUPPORT= user-destdir | 3 | PKG_DESTDIR_SUPPORT= user-destdir | |
4 | 4 | |||
5 | .include "Makefile.common" | 5 | .include "Makefile.common" | |
6 | 6 | |||
7 | PKGREVISION= 5 | |||
8 | ||||
9 | CONFIGURE_ARGS+= -no-tk | 7 | CONFIGURE_ARGS+= -no-tk | |
10 | CONFIGURE_ARGS+= -cc ${CC} | 8 | CONFIGURE_ARGS+= -cc ${CC} | |
11 | CONFIGURE_ENV+= disable_x11=yes | 9 | CONFIGURE_ENV+= disable_x11=yes | |
12 | 10 | |||
13 | BUILD_TARGET= world | 11 | BUILD_TARGET= world | |
14 | MAKE_JOBS_SAFE= no | 12 | MAKE_JOBS_SAFE= no | |
15 | UNLIMIT_RESOURCES= stacksize | 13 | UNLIMIT_RESOURCES= stacksize | |
16 | 14 | |||
17 | ### | 15 | ### | |
18 | ### PLIST components | 16 | ### PLIST components | |
19 | ### | 17 | ### | |
20 | 18 | |||
21 | # Stub libraries for functions missing from base system. | 19 | # Stub libraries for functions missing from base system. |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.31 2011/08/08 07:31:52 obache Exp $ | 1 | # $NetBSD: Makefile.common,v 1.32 2012/03/04 09:06:46 asau Exp $ | |
2 | 2 | |||
3 | # used by x11/labltk/Makefile | 3 | # used by x11/labltk/Makefile | |
4 | # used by x11/ocaml-graphics/Makefile | 4 | # used by x11/ocaml-graphics/Makefile | |
5 | DISTNAME= ocaml-3.12.0 | 5 | DISTNAME= ocaml-3.12.1 | |
6 | CATEGORIES= lang | 6 | CATEGORIES= lang | |
7 | MASTER_SITES= http://caml.inria.fr/pub/distrib/ocaml-3.12/ | 7 | MASTER_SITES= http://caml.inria.fr/pub/distrib/ocaml-3.12/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= adam@NetBSD.org | 10 | MAINTAINER= adam@NetBSD.org | |
11 | HOMEPAGE= http://caml.inria.fr/ocaml/ | 11 | HOMEPAGE= http://caml.inria.fr/ocaml/ | |
12 | COMMENT= The latest implementation of the Caml dialect of ML | 12 | COMMENT= The latest implementation of the Caml dialect of ML | |
13 | LICENSE= gnu-gpl-v2 | 13 | LICENSE= gnu-gpl-v2 | |
14 | 14 | |||
15 | USE_TOOLS+= gmake | 15 | USE_TOOLS+= gmake | |
16 | HAS_CONFIGURE= yes | 16 | HAS_CONFIGURE= yes | |
17 | CONFIGURE_ENV+= BDB_LIBS=${BDB_LIBS:Q} | 17 | CONFIGURE_ENV+= BDB_LIBS=${BDB_LIBS:Q} | |
18 | CONFIGURE_ENV+= BDB_BUILTIN=${USE_BUILTIN.${BDB_TYPE}:Q} | 18 | CONFIGURE_ENV+= BDB_BUILTIN=${USE_BUILTIN.${BDB_TYPE}:Q} |
@@ -1,40 +1,39 @@ | @@ -1,40 +1,39 @@ | |||
1 | $NetBSD: distinfo,v 1.59 2011/11/27 19:46:00 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.60 2012/03/04 09:06:46 asau Exp $ | |
2 | 2 | |||
3 | SHA1 (ocaml-3.12.0.tar.bz2) = 33ebbfb1115806f117808f37e40d206c8994943d | 3 | SHA1 (ocaml-3.12.1.tar.bz2) = 29b44117b116b1a5bc54a8b4514af483793a769f | |
4 | RMD160 (ocaml-3.12.0.tar.bz2) = 3d10d5f7431d8200688fa74122e7ed528126a0fa | 4 | RMD160 (ocaml-3.12.1.tar.bz2) = 61d38c0785491c8790ac02ab78fb2f26ea490fc1 | |
5 | Size (ocaml-3.12.0.tar.bz2) = 2639049 bytes | 5 | Size (ocaml-3.12.1.tar.bz2) = 2949124 bytes | |
6 | SHA1 (patch-aa) = 1bedb77b12c457966b2a8b86f756535bfef9c496 | 6 | SHA1 (patch-aa) = 288f8aa1c0a4c080e69e1d2b552250da98304597 | |
7 | SHA1 (patch-ab) = e91cbb94c0897ffd02daebc19835a24c257dccd9 | 7 | SHA1 (patch-ab) = e91cbb94c0897ffd02daebc19835a24c257dccd9 | |
8 | SHA1 (patch-ac) = efe8290b394f40d6675fc9d57557c49ddafdb239 | 8 | SHA1 (patch-ac) = efe8290b394f40d6675fc9d57557c49ddafdb239 | |
9 | SHA1 (patch-ad) = f2c1dcc3c31db31e2484fdea1076692a63252a87 | 9 | SHA1 (patch-ad) = f2c1dcc3c31db31e2484fdea1076692a63252a87 | |
10 | SHA1 (patch-ag) = f1b751098d3693b92feb26cda87970426bffcaf1 | 10 | SHA1 (patch-ag) = f1b751098d3693b92feb26cda87970426bffcaf1 | |
11 | SHA1 (patch-ah) = 3165bbcdb98d09f5161912e51a3131486aa0b488 | 11 | SHA1 (patch-ah) = 3165bbcdb98d09f5161912e51a3131486aa0b488 | |
12 | SHA1 (patch-aj) = 6fd989f1e5dd1263890c14459dd4ab85d75e86cd | 12 | SHA1 (patch-aj) = 6fd989f1e5dd1263890c14459dd4ab85d75e86cd | |
13 | SHA1 (patch-an) = 8fb8efecd2b3f0ec6f913a0840f4cfebcbb6161e | 13 | SHA1 (patch-an) = 8fb8efecd2b3f0ec6f913a0840f4cfebcbb6161e | |
14 | SHA1 (patch-asmcomp_amd64_emit.mlp) = 72854ca013303155573417c6c694d03f9f802ac9 | 14 | SHA1 (patch-at) = aebd0637ace414cc4504ef0c46486343e89728dd | |
15 | SHA1 (patch-at) = c0a806229548fc12948b7b1cab18a3869e10bc02 | |||
16 | SHA1 (patch-au) = 1e36bcdf39d40e781273ea51df213db05ff46c89 | 15 | SHA1 (patch-au) = 1e36bcdf39d40e781273ea51df213db05ff46c89 | |
17 | SHA1 (patch-av) = f56c8924b81a620602bc5a67b0c4459b721701d2 | 16 | SHA1 (patch-av) = f56c8924b81a620602bc5a67b0c4459b721701d2 | |
18 | SHA1 (patch-aw) = ce7b09f19f9f086b65b5036b6684c5243e990b8c | 17 | SHA1 (patch-aw) = cf66a2296cb86adfc0945e0009a6ed2805b57eed | |
19 | SHA1 (patch-ax) = d46667e6874aa8aa656f6fb15ddcedc493d7bdf1 | 18 | SHA1 (patch-ax) = d46667e6874aa8aa656f6fb15ddcedc493d7bdf1 | |
20 | SHA1 (patch-ay) = 702dd7d24ac94851bbb0f2c3f22e2141345ee8ea | 19 | SHA1 (patch-ay) = 702dd7d24ac94851bbb0f2c3f22e2141345ee8ea | |
21 | SHA1 (patch-az) = 9b9e1cfa8972e6bea9563d4d12866d567fdce668 | 20 | SHA1 (patch-az) = 9b9e1cfa8972e6bea9563d4d12866d567fdce668 | |
22 | SHA1 (patch-bb) = 50bd9aa5b46052d8f35c04f6e4c3cbb365d2f93c | 21 | SHA1 (patch-bb) = 50bd9aa5b46052d8f35c04f6e4c3cbb365d2f93c | |
23 | SHA1 (patch-bc) = 3b6cab5af3d34b2d25c7ba718e5dd89e2d1f2171 | 22 | SHA1 (patch-bc) = 3b6cab5af3d34b2d25c7ba718e5dd89e2d1f2171 | |
24 | SHA1 (patch-bd) = 50df69a687953e8c34a36366396ea32a111e64ed | 23 | SHA1 (patch-bd) = 50df69a687953e8c34a36366396ea32a111e64ed | |
25 | SHA1 (patch-be) = 6c7232154b4935b9b4606940fd35799e20fafde2 | 24 | SHA1 (patch-be) = 6c7232154b4935b9b4606940fd35799e20fafde2 | |
26 | SHA1 (patch-bf) = 0b4efd564362b816154bfd7ffacecae27c75c0ee | 25 | SHA1 (patch-bf) = 0b4efd564362b816154bfd7ffacecae27c75c0ee | |
27 | SHA1 (patch-bg) = 91cb75e2d7f347b9ef7f3f1814d0c7deccfedd3a | 26 | SHA1 (patch-bg) = 91cb75e2d7f347b9ef7f3f1814d0c7deccfedd3a | |
28 | SHA1 (patch-bh) = c7b1e218c67b9691452e7d1c8b53febe844d156c | 27 | SHA1 (patch-bh) = c7b1e218c67b9691452e7d1c8b53febe844d156c | |
29 | SHA1 (patch-bi) = aaf8fcb6ecde980cb914258efe93bd37ec9f0bf4 | 28 | SHA1 (patch-bi) = aaf8fcb6ecde980cb914258efe93bd37ec9f0bf4 | |
30 | SHA1 (patch-bo) = 318b5c023c692a3d6fb05b3276e755fae642d6b0 | 29 | SHA1 (patch-bo) = 318b5c023c692a3d6fb05b3276e755fae642d6b0 | |
31 | SHA1 (patch-bp) = 45038c5900aefdb8d21b8c3d3b8798b45014bae2 | 30 | SHA1 (patch-bp) = 45038c5900aefdb8d21b8c3d3b8798b45014bae2 | |
32 | SHA1 (patch-bq) = 2ac3b7c1cdf9bdf1e6dcd5905e54291169d069c6 | 31 | SHA1 (patch-bq) = 2ac3b7c1cdf9bdf1e6dcd5905e54291169d069c6 | |
33 | SHA1 (patch-br) = f9dacbd8742a9cdc9ae0232f297898f0df62a95b | 32 | SHA1 (patch-br) = f9dacbd8742a9cdc9ae0232f297898f0df62a95b | |
34 | SHA1 (patch-bs) = 24788a31a5bdfe502e9586002574fdc077455536 | 33 | SHA1 (patch-bs) = d169c3196d9f9c3f36764174c52e5db2512a3942 | |
35 | SHA1 (patch-bt) = 400ac1c2935690bd204da116272017ec167f4b0d | 34 | SHA1 (patch-bt) = 400ac1c2935690bd204da116272017ec167f4b0d | |
36 | SHA1 (patch-bu) = 0b3bbe273142ebed3a24e7e92d4cfd9f30a032b6 | 35 | SHA1 (patch-bu) = 0b3bbe273142ebed3a24e7e92d4cfd9f30a032b6 | |
37 | SHA1 (patch-bv) = 595641bb079174f393e420bdf5c48fe8ca1912cf | 36 | SHA1 (patch-bv) = 595641bb079174f393e420bdf5c48fe8ca1912cf | |
38 | SHA1 (patch-bw) = 6214af031d165f7485f5b422262e8a0e0cc95588 | 37 | SHA1 (patch-bw) = 6214af031d165f7485f5b422262e8a0e0cc95588 | |
39 | SHA1 (patch-bx) = 3cfcad488901f616a3a2f968247d7915f05891d7 | 38 | SHA1 (patch-bx) = 3cfcad488901f616a3a2f968247d7915f05891d7 | |
40 | SHA1 (patch-bytecomp_bytelink.ml) = 182c5f7cb9e79aadbfe62eaf0b5523ae121cb2b4 | 39 | SHA1 (patch-bytecomp_bytelink.ml) = 182c5f7cb9e79aadbfe62eaf0b5523ae121cb2b4 |
@@ -1,32 +1,13 @@ | @@ -1,32 +1,13 @@ | |||
1 | $NetBSD: patch-aa,v 1.9 2011/08/15 21:19:33 wiz Exp $ | 1 | $NetBSD: patch-aa,v 1.10 2012/03/04 09:06:46 asau Exp $ | |
2 | ||||
3 | Second chunk: fix build with binutils-2.21. | |||
4 | http://caml.inria.fr/mantis/view.php?id=5237 | |||
5 | 2 | |||
6 | --- asmcomp/i386/emit.mlp.orig 2010-01-20 16:26:46 +0000 | 3 | --- asmcomp/i386/emit.mlp.orig 2010-01-20 16:26:46 +0000 | |
7 | +++ asmcomp/i386/emit.mlp | 4 | +++ asmcomp/i386/emit.mlp | |
8 | @@ -861,7 +861,7 @@ let emit_profile () = | 5 | @@ -861,7 +861,7 @@ let emit_profile () = | |
9 | ` movl %esp, %ebp\n`; | 6 | ` movl %esp, %ebp\n`; | |
10 | ` pushl %ecx\n`; | 7 | ` pushl %ecx\n`; | |
11 | ` pushl %edx\n`; | 8 | ` pushl %edx\n`; | |
12 | - ` call .mcount\n`; | 9 | - ` call .mcount\n`; | |
13 | + ` call __mcount\n`; | 10 | + ` call __mcount\n`; | |
14 | ` popl %edx\n`; | 11 | ` popl %edx\n`; | |
15 | ` popl %ecx\n`; | 12 | ` popl %ecx\n`; | |
16 | ` popl %eax\n` | 13 | ` popl %eax\n` | |
17 | @@ -905,12 +905,12 @@ let fundecl fundecl = | |||
18 | emit_all true fundecl.fun_body; | |||
19 | List.iter emit_call_gc !call_gc_sites; | |||
20 | emit_call_bound_errors (); | |||
21 | - List.iter emit_float_constant !float_constants; | |||
22 | - match Config.system with | |||
23 | + begin match Config.system with | |||
24 | "linux_elf" | "bsd_elf" | "gnu" -> | |||
25 | ` .type {emit_symbol fundecl.fun_name},@function\n`; | |||
26 | ` .size {emit_symbol fundecl.fun_name},.-{emit_symbol fundecl.fun_name}\n` | |||
27 | - | _ -> () | |||
28 | + | _ -> () end; | |||
29 | + List.iter emit_float_constant !float_constants | |||
30 | ||||
31 | ||||
32 | (* Emission of data *) |
@@ -1,166 +1,164 @@ | @@ -1,166 +1,164 @@ | |||
1 | $NetBSD: patch-at,v 1.24 2011/11/27 19:11:59 marino Exp $ | 1 | $NetBSD: patch-at,v 1.25 2012/03/04 09:06:46 asau Exp $ | |
2 | 2 | |||
3 | . Include CFLAGS in bytecccompopts and LDFLAGS in bytecclinkopts. | 3 | . Include CFLAGS in bytecccompopts and LDFLAGS in bytecclinkopts. | |
4 | . Add cases for dragonfly support. | 4 | . Add cases for dragonfly support. | |
5 | . Use the portable `test x = y', not `test x == y' GNUism. | 5 | . Use the portable `test x = y', not `test x == y' GNUism. | |
6 | . Enable native dynamic loading on NetBSD/i386 and NetBSD/amd64. | 6 | . Enable native dynamic loading on NetBSD/i386 and NetBSD/amd64. | |
7 | . Fix pattern to match Solaris versions. | 7 | . Fix pattern to match Solaris versions. | |
8 | . Add cases for interix support. | 8 | . Add cases for interix support. | |
9 | . Add cases for NetBSD/arm support. | 9 | . Add cases for NetBSD/arm support. | |
10 | . Update Darwin patterns to match versions >=10. | 10 | . Update Darwin patterns to match versions >=10. | |
11 | . Enable profiling support on BSD/powerpc. | 11 | . Enable profiling support on BSD/powerpc. | |
12 | . Skip X11 library and header file checks when X11 support is disabled. | 12 | . Skip X11 library and header file checks when X11 support is disabled. | |
13 | . Frobnicate dbm detection. | 13 | . Frobnicate dbm detection. | |
14 | . Enable suport for x86_64-DragonFly | 14 | . Enable suport for x86_64-DragonFly | |
15 | . Enable profiling and native dynamic loading for all DragonFly platforms | 15 | . Enable profiling and native dynamic loading for all DragonFly platforms | |
16 | . Add pkgsrc X11 checks in case X11 support is enabled in the future | 16 | . Add pkgsrc X11 checks in case X11 support is enabled in the future | |
17 | 17 | |||
18 | --- configure.orig 2010-07-28 13:18:22.000000000 +0000 | 18 | --- configure.orig 2011-07-05 01:15:01.000000000 +0400 | |
19 | +++ configure | 19 | +++ configure 2012-03-04 07:07:17.000000000 +0400 | |
20 | @@ -328,6 +328,8 @@ case "$bytecc,$host" in | 20 | @@ -328,6 +328,8 @@ | |
21 | gcc*) | 21 | gcc*) | |
22 | bytecccompopts="-fno-defer-pop $gcc_warnings";; | 22 | bytecccompopts="-fno-defer-pop $gcc_warnings";; | |
23 | esac | 23 | esac | |
24 | +bytecccompopts="$bytecccompopts $CFLAGS" | 24 | +bytecccompopts="$bytecccompopts $CFLAGS" | |
25 | +bytecclinkopts="$bytecclinkopts $LDFLAGS" | 25 | +bytecclinkopts="$bytecclinkopts $LDFLAGS" | |
26 | 26 | |||
27 | # Configure compiler to use in further tests | 27 | # Configure compiler to use in further tests | |
28 | 28 | |||
29 | @@ -520,7 +522,7 @@ if test $withsharedlibs = "yes"; then | 29 | @@ -521,7 +523,7 @@ | |
30 | mksharedlib="$flexlink" | 30 | mksharedlib="$flexlink" | |
31 | mkmaindll="$flexlink -maindll" | 31 | mkmaindll="$flexlink -maindll" | |
32 | shared_libraries_supported=true;; | 32 | shared_libraries_supported=true;; | |
33 | - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*) | 33 | - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*) | |
34 | + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*|*-*-dragonfly) | 34 | + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*|*-*-dragonfly) | |
35 | sharedcccompopts="-fPIC" | 35 | sharedcccompopts="-fPIC" | |
36 | mksharedlib="$bytecc -shared" | 36 | mksharedlib="$bytecc -shared" | |
37 | bytecclinkopts="$bytecclinkopts -Wl,-E" | 37 | bytecclinkopts="$bytecclinkopts -Wl,-E" | |
38 | @@ -620,7 +622,7 @@ if test $withsharedlibs = "yes"; then | 38 | @@ -621,7 +623,7 @@ | |
39 | i[3456]86-*-linux*) natdynlink=true;; | 39 | i[3456]86-*-linux*) natdynlink=true;; | |
40 | x86_64-*-linux*) natdynlink=true;; | 40 | x86_64-*-linux*) natdynlink=true;; | |
41 | i[3456]86-*-darwin10.*) | 41 | i[3456]86-*-darwin10.*) | |
42 | - if test $arch64 == true; then | 42 | - if test $arch64 == true; then | |
43 | + if test $arch64 = true; then | 43 | + if test $arch64 = true; then | |
44 | natdynlink=true | 44 | natdynlink=true | |
45 | fi;; | 45 | fi;; | |
46 | i[3456]86-*-darwin[89]*) natdynlink=true;; | 46 | i[3456]86-*-darwin[89]*) natdynlink=true;; | |
47 | @@ -629,6 +631,10 @@ if test $withsharedlibs = "yes"; then | 47 | @@ -635,6 +637,8 @@ | |
48 | i686-*-kfreebsd*) natdynlink=true;; | 48 | x86_64-*-openbsd*) natdynlink=true;; | |
49 | x86_64-*-kfreebsd*) natdynlink=true;; | 49 | i[345]86-*-netbsd*) natdynlink=true;; | |
50 | i386-*-gnu0.3) natdynlink=true;; | 50 | x86_64-*-netbsd*) natdynlink=true;; | |
51 | + i[3456]86-*-netbsdelf) natdynlink=true;; | |||
52 | + i[3456]86-*-dragonfly) natdynlink=true;; | 51 | + i[3456]86-*-dragonfly) natdynlink=true;; | |
53 | + x86_64-*-netbsd) natdynlink=true;; | |||
54 | + x86_64-*-dragonfly) natdynlink=true;; | 52 | + x86_64-*-dragonfly) natdynlink=true;; | |
53 | i386-*-gnu0.3) natdynlink=true;; | |||
55 | esac | 54 | esac | |
56 | fi | 55 | fi | |
57 | 56 | @@ -660,12 +664,13 @@ | ||
58 | @@ -653,12 +659,13 @@ case "$host" in | |||
59 | alpha*-*-netbsd*) arch=alpha; system=netbsd;; | 57 | alpha*-*-netbsd*) arch=alpha; system=netbsd;; | |
60 | alpha*-*-openbsd*) arch=alpha; system=openbsd;; | 58 | alpha*-*-openbsd*) arch=alpha; system=openbsd;; | |
61 | sparc*-*-sunos4.*) arch=sparc; system=sunos;; | 59 | sparc*-*-sunos4.*) arch=sparc; system=sunos;; | |
62 | - sparc*-*-solaris2.*) arch=sparc; system=solaris;; | 60 | - sparc*-*-solaris2.*) arch=sparc; system=solaris;; | |
63 | + sparc*-*-solaris2*) arch=sparc; system=solaris;; | 61 | + sparc*-*-solaris2*) arch=sparc; system=solaris;; | |
64 | sparc*-*-*bsd*) arch=sparc; system=bsd;; | 62 | sparc*-*-*bsd*) arch=sparc; system=bsd;; | |
65 | sparc*-*-linux*) arch=sparc; system=linux;; | 63 | sparc*-*-linux*) arch=sparc; system=linux;; | |
66 | sparc*-*-gnu*) arch=sparc; system=gnu;; | 64 | sparc*-*-gnu*) arch=sparc; system=gnu;; | |
67 | i[3456]86-*-linux*) arch=i386; system=linux_`sh ./runtest elf.c`;; | 65 | i[3456]86-*-linux*) arch=i386; system=linux_`sh ./runtest elf.c`;; | |
68 | i[3456]86-*-*bsd*) arch=i386; system=bsd_`sh ./runtest elf.c`;; | 66 | i[3456]86-*-*bsd*) arch=i386; system=bsd_`sh ./runtest elf.c`;; | |
69 | + i[3456]86-*-dragonfly*) arch=i386; system=bsd_`sh ./runtest elf.c`;; | 67 | + i[3456]86-*-dragonfly*) arch=i386; system=bsd_`sh ./runtest elf.c`;; | |
70 | i[3456]86-*-nextstep*) arch=i386; system=nextstep;; | 68 | i[3456]86-*-nextstep*) arch=i386; system=nextstep;; | |
71 | i[3456]86-*-solaris*) if $arch64; then | 69 | i[3456]86-*-solaris*) if $arch64; then | |
72 | arch=amd64; system=solaris | 70 | arch=amd64; system=solaris | |
73 | @@ -667,6 +674,7 @@ case "$host" in | 71 | @@ -674,6 +679,7 @@ | |
74 | fi;; | 72 | fi;; | |
75 | i[3456]86-*-beos*) arch=i386; system=beos;; | 73 | i[3456]86-*-beos*) arch=i386; system=beos;; | |
76 | i[3456]86-*-cygwin*) arch=i386; system=cygwin;; | 74 | i[3456]86-*-cygwin*) arch=i386; system=cygwin;; | |
77 | + i[3456]86-*-interix3*) arch=i386; system=interix3;; | 75 | + i[3456]86-*-interix3*) arch=i386; system=interix3;; | |
78 | i[3456]86-*-darwin*) if $arch64; then | 76 | i[3456]86-*-darwin*) if $arch64; then | |
79 | arch=amd64; system=macosx | 77 | arch=amd64; system=macosx | |
80 | else | 78 | else | |
81 | @@ -683,17 +691,21 @@ case "$host" in | 79 | @@ -690,17 +696,21 @@ | |
82 | powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;; | 80 | powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;; | |
83 | powerpc-*-darwin*) arch=power; system=rhapsody | 81 | powerpc-*-darwin*) arch=power; system=rhapsody | |
84 | if $arch64; then model=ppc64; else model=ppc; fi;; | 82 | if $arch64; then model=ppc64; else model=ppc; fi;; | |
85 | + arm*-*-netbsd*) arch=arm; system=netbsd;; | 83 | + arm*-*-netbsd*) arch=arm; system=netbsd;; | |
86 | arm*-*-linux*) arch=arm; system=linux;; | 84 | arm*-*-linux*) arch=arm; system=linux;; | |
87 | arm*-*-gnu*) arch=arm; system=gnu;; | 85 | arm*-*-gnu*) arch=arm; system=gnu;; | |
88 | ia64-*-linux*) arch=ia64; system=linux;; | 86 | ia64-*-linux*) arch=ia64; system=linux;; | |
89 | ia64-*-gnu*) arch=ia64; system=gnu;; | 87 | ia64-*-gnu*) arch=ia64; system=gnu;; | |
90 | ia64-*-freebsd*) arch=ia64; system=freebsd;; | 88 | ia64-*-freebsd*) arch=ia64; system=freebsd;; | |
91 | + x86_64-*-dragonfly*) arch=amd64; system=dragonfly;; | 89 | + x86_64-*-dragonfly*) arch=amd64; system=dragonfly;; | |
92 | x86_64-*-linux*) arch=amd64; system=linux;; | 90 | x86_64-*-linux*) arch=amd64; system=linux;; | |
93 | x86_64-*-gnu*) arch=amd64; system=gnu;; | 91 | x86_64-*-gnu*) arch=amd64; system=gnu;; | |
94 | x86_64-*-freebsd*) arch=amd64; system=freebsd;; | 92 | x86_64-*-freebsd*) arch=amd64; system=freebsd;; | |
95 | x86_64-*-netbsd*) arch=amd64; system=netbsd;; | 93 | x86_64-*-netbsd*) arch=amd64; system=netbsd;; | |
96 | x86_64-*-openbsd*) arch=amd64; system=openbsd;; | 94 | x86_64-*-openbsd*) arch=amd64; system=openbsd;; | |
97 | + x86_64-*-solaris*) arch=amd64; system=solaris;; | 95 | + x86_64-*-solaris*) arch=amd64; system=solaris;; | |
98 | x86_64-*-darwin9.5) arch=amd64; system=macosx;; | 96 | x86_64-*-darwin9.5) arch=amd64; system=macosx;; | |
99 | + x86_64-*-darwin1[0-9]*) arch=amd64; system=macosx;; | 97 | + x86_64-*-darwin1[0-9]*) arch=amd64; system=macosx;; | |
100 | esac | 98 | esac | |
101 | 99 | |||
102 | # Some platforms exist both in 32-bit and 64-bit variants, not distinguished | 100 | # Some platforms exist both in 32-bit and 64-bit variants, not distinguished | |
103 | @@ -794,6 +806,8 @@ case "$arch,$model,$system" in | 101 | @@ -801,6 +811,8 @@ | |
104 | case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;; | 102 | case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;; | |
105 | amd64,*,linux) profiling='prof';; | 103 | amd64,*,linux) profiling='prof';; | |
106 | amd64,*,gnu) profiling='prof';; | 104 | amd64,*,gnu) profiling='prof';; | |
107 | + power,*,bsd) profiling='prof';; | 105 | + power,*,bsd) profiling='prof';; | |
108 | + *,*,dragonfly) profiling='prof';; | 106 | + *,*,dragonfly) profiling='prof';; | |
109 | *) profiling='noprof';; | 107 | *) profiling='noprof';; | |
110 | esac | 108 | esac | |
111 | 109 | |||
112 | @@ -1198,6 +1212,8 @@ if test "$pthread_wanted" = "yes"; then | 110 | @@ -1205,6 +1217,8 @@ | |
113 | pthread_caml_link="-cclib -lpthread -cclib -lposix4";; | 111 | pthread_caml_link="-cclib -lpthread -cclib -lposix4";; | |
114 | *-*-freebsd*) pthread_link="-pthread" | 112 | *-*-freebsd*) pthread_link="-pthread" | |
115 | pthread_caml_link="-cclib -pthread";; | 113 | pthread_caml_link="-cclib -pthread";; | |
116 | + *-*-dragonfly*) pthread_link="-pthread" | 114 | + *-*-dragonfly*) pthread_link="-pthread" | |
117 | + pthread_caml_link="-cclib -pthread";; | 115 | + pthread_caml_link="-cclib -pthread";; | |
118 | *-*-openbsd*) pthread_link="-pthread" | 116 | *-*-openbsd*) pthread_link="-pthread" | |
119 | pthread_caml_link="-cclib -pthread";; | 117 | pthread_caml_link="-cclib -pthread";; | |
120 | *) pthread_link="-lpthread" | 118 | *) pthread_link="-lpthread" | |
121 | @@ -1249,6 +1265,7 @@ fi | 119 | @@ -1256,6 +1270,7 @@ | |
122 | x11_include="not found" | 120 | x11_include="not found" | |
123 | x11_link="not found" | 121 | x11_link="not found" | |
124 | 122 | |||
125 | +if test "$disable_x11" != "yes"; then | 123 | +if test "$disable_x11" != "yes"; then | |
126 | for dir in \ | 124 | for dir in \ | |
127 | $x11_include_dir \ | 125 | $x11_include_dir \ | |
128 | \ | 126 | \ | |
129 | @@ -1287,6 +1304,7 @@ for dir in \ | 127 | @@ -1294,6 +1309,7 @@ | |
130 | /usr/XFree86/include/X11 \ | 128 | /usr/XFree86/include/X11 \ | |
131 | \ | 129 | \ | |
132 | /usr/include \ | 130 | /usr/include \ | |
133 | + /usr/pkg/include \ | 131 | + /usr/pkg/include \ | |
134 | /usr/local/include \ | 132 | /usr/local/include \ | |
135 | /usr/unsupported/include \ | 133 | /usr/unsupported/include \ | |
136 | /usr/athena/include \ | 134 | /usr/athena/include \ | |
137 | @@ -1301,6 +1319,7 @@ do | 135 | @@ -1308,6 +1324,7 @@ | |
138 | break | 136 | break | |
139 | fi | 137 | fi | |
140 | done | 138 | done | |
141 | +fi | 139 | +fi | |
142 | 140 | |||
143 | if test "$x11_include" = "not found"; then | 141 | if test "$x11_include" = "not found"; then | |
144 | x11_try_lib_dir='' | 142 | x11_try_lib_dir='' | |
145 | @@ -1343,6 +1362,7 @@ for dir in \ | 143 | @@ -1350,6 +1367,7 @@ | |
146 | \ | 144 | \ | |
147 | /usr/lib64 \ | 145 | /usr/lib64 \ | |
148 | /usr/lib \ | 146 | /usr/lib \ | |
149 | + /usr/pkg/lib/ \ | 147 | + /usr/pkg/lib/ \ | |
150 | /usr/local/lib \ | 148 | /usr/local/lib \ | |
151 | /usr/unsupported/lib \ | 149 | /usr/unsupported/lib \ | |
152 | /usr/athena/lib \ | 150 | /usr/athena/lib \ | |
153 | @@ -1395,31 +1415,8 @@ dbm_include="not found" | 151 | @@ -1402,31 +1420,8 @@ | |
154 | dbm_link="not found" | 152 | dbm_link="not found" | |
155 | use_gdbm_ndbm=no | 153 | use_gdbm_ndbm=no | |
156 | 154 | |||
157 | -for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do | 155 | -for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do | |
158 | - if test -f $dir/ndbm.h; then | 156 | - if test -f $dir/ndbm.h; then | |
159 | - dbm_include=$dir | 157 | - dbm_include=$dir | |
160 | - if sh ./hasgot dbm_open; then | 158 | - if sh ./hasgot dbm_open; then | |
161 | - dbm_link="" | 159 | - dbm_link="" | |
162 | - elif sh ./hasgot -lndbm dbm_open; then | 160 | - elif sh ./hasgot -lndbm dbm_open; then | |
163 | - dbm_link="-lndbm" | 161 | - dbm_link="-lndbm" | |
164 | - elif sh ./hasgot -ldb1 dbm_open; then | 162 | - elif sh ./hasgot -ldb1 dbm_open; then | |
165 | - dbm_link="-ldb1" | 163 | - dbm_link="-ldb1" | |
166 | - elif sh ./hasgot -lgdbm dbm_open; then | 164 | - elif sh ./hasgot -lgdbm dbm_open; then | |
@@ -174,24 +172,24 @@ $NetBSD: patch-at,v 1.24 2011/11/27 19:1 | @@ -174,24 +172,24 @@ $NetBSD: patch-at,v 1.24 2011/11/27 19:1 | |||
174 | - dbm_include=$dir | 172 | - dbm_include=$dir | |
175 | - use_gdbm_ndbm=yes | 173 | - use_gdbm_ndbm=yes | |
176 | - if sh ./hasgot -lgdbm_compat -lgdbm dbm_open; then | 174 | - if sh ./hasgot -lgdbm_compat -lgdbm dbm_open; then | |
177 | - dbm_link="-lgdbm_compat -lgdbm" | 175 | - dbm_link="-lgdbm_compat -lgdbm" | |
178 | - fi | 176 | - fi | |
179 | - break | 177 | - break | |
180 | - fi | 178 | - fi | |
181 | -done | 179 | -done | |
182 | +dbm_include=/usr/include | 180 | +dbm_include=/usr/include | |
183 | +dbm_link=${BDB_LIBS} | 181 | +dbm_link=${BDB_LIBS} | |
184 | if test "$dbm_include" = "not found" || test "$dbm_link" = "not found"; then | 182 | if test "$dbm_include" = "not found" || test "$dbm_link" = "not found"; then | |
185 | echo "NDBM not found, the \"dbm\" library will not be supported." | 183 | echo "NDBM not found, the \"dbm\" library will not be supported." | |
186 | else | 184 | else | |
187 | @@ -1429,8 +1426,8 @@ else | 185 | @@ -1436,8 +1431,8 @@ | |
188 | else | 186 | else | |
189 | dbm_include="-I$dbm_include" | 187 | dbm_include="-I$dbm_include" | |
190 | fi | 188 | fi | |
191 | - if test "$use_gdbm_ndbm" = "yes"; then | 189 | - if test "$use_gdbm_ndbm" = "yes"; then | |
192 | - echo "#define DBM_USES_GDBM_NDBM" >> s.h | 190 | - echo "#define DBM_USES_GDBM_NDBM" >> s.h | |
193 | + if test ${BDB_BUILTIN} = "yes"; then | 191 | + if test ${BDB_BUILTIN} = "yes"; then | |
194 | + echo "#define DBM_USES_DB" >> s.h | 192 | + echo "#define DBM_USES_DB" >> s.h | |
195 | fi | 193 | fi | |
196 | otherlibraries="$otherlibraries dbm" | 194 | otherlibraries="$otherlibraries dbm" | |
197 | fi | 195 | fi |
@@ -1,65 +1,42 @@ | @@ -1,65 +1,42 @@ | |||
1 | $NetBSD: patch-aw,v 1.8 2010/11/28 08:41:33 is Exp $ | 1 | $NetBSD: patch-aw,v 1.9 2012/03/04 09:06:46 asau Exp $ | |
2 | 2 | |||
3 | --- ocamldoc/Makefile.orig 2010-06-16 11:38:22.000000000 +0000 | 3 | --- ocamldoc/Makefile.orig 2011-05-02 17:14:14.000000000 +0400 | |
4 | +++ ocamldoc/Makefile | 4 | +++ ocamldoc/Makefile 2012-03-04 07:19:46.000000000 +0400 | |
5 | @@ -31,7 +31,7 @@ OCAMLPP=-pp './remove_DEBUG' | 5 | @@ -258,24 +258,24 @@ | |
6 | MKDIR=mkdir -p | |||
7 | CP=cp -f | |||
8 | OCAMLDOC=ocamldoc | |||
9 | -OCAMLDOC_RUN=./ocamldoc.opt #sh ./runocamldoc $(SUPPORTS_SHARED_LIBRARIES) | |||
10 | +OCAMLDOC_RUN=sh ./runocamldoc $(SUPPORTS_SHARED_LIBRARIES) | |||
11 | OCAMLDOC_OPT=$(OCAMLDOC).opt | |||
12 | OCAMLDOC_LIBCMA=odoc_info.cma | |||
13 | OCAMLDOC_LIBCMI=odoc_info.cmi | |||
14 | @@ -189,12 +189,13 @@ STDLIB_MLIS=../stdlib/*.mli \ | |||
15 | ../otherlibs/num/num.mli | |||
16 | ||||
17 | all: exe lib | |||
18 | + $(MAKE) manpages | |||
19 | ||||
20 | exe: $(OCAMLDOC) | |||
21 | lib: $(OCAMLDOC_LIBCMA) $(OCAMLDOC_LIBCMI) $(ODOC_TEST) | |||
22 | ||||
23 | opt.opt: exeopt libopt | |||
24 | - $(MAKE) manpages | |||
25 | + | |||
26 | exeopt: $(OCAMLDOC_OPT) | |||
27 | libopt: $(OCAMLDOC_LIBCMXA) $(OCAMLDOC_LIBCMI) | |||
28 | debug: | |||
29 | @@ -259,24 +260,24 @@ odoc_see_lexer.ml: odoc_see_lexer.mll | |||
30 | # Installation targets | 6 | # Installation targets | |
31 | ###################### | 7 | ###################### | |
32 | install: dummy | 8 | install: dummy | |
33 | - if test -d $(INSTALL_BINDIR); then : ; else $(MKDIR) $(INSTALL_BINDIR); fi | 9 | - if test -d $(INSTALL_BINDIR); then : ; else $(MKDIR) $(INSTALL_BINDIR); fi | |
34 | - if test -d $(INSTALL_LIBDIR); then : ; else $(MKDIR) $(INSTALL_LIBDIR); fi | 10 | - if test -d $(INSTALL_LIBDIR); then : ; else $(MKDIR) $(INSTALL_LIBDIR); fi | |
35 | - if test -d $(INSTALL_CUSTOMDIR); then : ; else $(MKDIR) $(INSTALL_CUSTOMDIR); fi | 11 | - if test -d $(INSTALL_CUSTOMDIR); then : ; else $(MKDIR) $(INSTALL_CUSTOMDIR); fi | |
36 | - $(CP) $(OCAMLDOC) $(INSTALL_BINDIR)/$(OCAMLDOC)$(EXE) | 12 | - $(CP) $(OCAMLDOC) $(INSTALL_BINDIR)/$(OCAMLDOC)$(EXE) | |
37 | - $(CP) ocamldoc.hva *.cmi $(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR) | 13 | - $(CP) ocamldoc.hva *.cmi $(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR) | |
38 | - $(CP) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | 14 | - $(CP) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | |
39 | + if test -d $(INSTALL_BINDIR); then : ; else ${BSD_INSTALL_PROGRAM_DIR} $(INSTALL_BINDIR); fi | 15 | - if test -d $(INSTALL_MANODIR); then : ; else $(MKDIR) $(INSTALL_MANODIR); fi | |
40 | + if test -d $(INSTALL_LIBDIR); then : ; else ${BSD_INSTALL_DATA_DIR} $(INSTALL_LIBDIR); fi | |||
41 | + if test -d $(INSTALL_CUSTOMDIR); then : ; else ${BSD_INSTALL_DATA_DIR} $(INSTALL_CUSTOMDIR); fi | |||
42 | + ${BSD_INSTALL_SCRIPT} $(OCAMLDOC) $(INSTALL_BINDIR)/$(OCAMLDOC)$(EXE) | |||
43 | + ${BSD_INSTALL_DATA} ocamldoc.hva *.cmi $(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR) | |||
44 | + ${BSD_INSTALL_DATA} $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | |||
45 | if test -d $(INSTALL_MANODIR); then : ; else $(MKDIR) $(INSTALL_MANODIR); fi | |||
46 | - if test -d stdlib_man; then $(CP) stdlib_man/* $(INSTALL_MANODIR); else : ; fi | 16 | - if test -d stdlib_man; then $(CP) stdlib_man/* $(INSTALL_MANODIR); else : ; fi | |
47 | + ${BSD_INSTALL_MAN} stdlib_man/* $(INSTALL_MANODIR) | 17 | + if test -d $(INSTALL_BINDIR); then : ; else $(BSD_INSTALL_PROGRAM_DIR) $(INSTALL_BINDIR); fi | |
18 | + if test -d $(INSTALL_LIBDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALL_LIBDIR); fi | |||
19 | + if test -d $(INSTALL_CUSTOMDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALL_CUSTOMDIR); fi | |||
20 | + $(BSD_INSTALL_SCRIPT) $(OCAMLDOC) $(INSTALL_BINDIR)/$(OCAMLDOC)$(EXE) | |||
21 | + $(BSD_INSTALL_DATA) ocamldoc.hva *.cmi $(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR) | |||
22 | + $(BSD_INSTALL_DATA) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | |||
23 | + if test -d $(INSTALL_MANODIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALL_MANODIR); fi | |||
24 | + if test -d stdlib_man; then $(BSD_INSTALL_DATA) stdlib_man/* $(INSTALL_MANODIR); else : ; fi | |||
48 | 25 | |||
49 | installopt: | 26 | installopt: | |
50 | if test -f $(OCAMLDOC_OPT) ; then $(MAKE) installopt_really ; fi | 27 | if test -f $(OCAMLDOC_OPT) ; then $(MAKE) installopt_really ; fi | |
51 | 28 | |||
52 | installopt_really: | 29 | installopt_really: | |
53 | - if test -d $(INSTALL_BINDIR); then : ; else $(MKDIR) $(INSTALL_BINDIR); fi | 30 | - if test -d $(INSTALL_BINDIR); then : ; else $(MKDIR) $(INSTALL_BINDIR); fi | |
54 | - if test -d $(INSTALL_LIBDIR); then : ; else $(MKDIR) $(INSTALL_LIBDIR); fi | 31 | - if test -d $(INSTALL_LIBDIR); then : ; else $(MKDIR) $(INSTALL_LIBDIR); fi | |
55 | - $(CP) $(OCAMLDOC_OPT) $(INSTALL_BINDIR)/$(OCAMLDOC_OPT)$(EXE) | 32 | - $(CP) $(OCAMLDOC_OPT) $(INSTALL_BINDIR)/$(OCAMLDOC_OPT)$(EXE) | |
56 | - $(CP) ocamldoc.hva $(OCAMLDOC_LIBA) $(OCAMLDOC_LIBCMXA) $(INSTALL_LIBDIR) | 33 | - $(CP) ocamldoc.hva $(OCAMLDOC_LIBA) $(OCAMLDOC_LIBCMXA) $(INSTALL_LIBDIR) | |
57 | - $(CP) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | 34 | - $(CP) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | |
58 | + if test -d $(INSTALL_BINDIR); then : ; else ${BSD_INSTALL_PROGRAM_DIR} $(INSTALL_BINDIR); fi | 35 | + if test -d $(INSTALL_BINDIR); then : ; else $(BSD_INSTALL_PROGRAM_DIR) $(INSTALL_BINDIR); fi | |
59 | + if test -d $(INSTALL_LIBDIR); then : ; else ${BSD_INSTALL_DATA_DIR} $(INSTALL_LIBDIR); fi | 36 | + if test -d $(INSTALL_LIBDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALL_LIBDIR); fi | |
60 | + ${BSD_INSTALL_PROGRAM} $(OCAMLDOC_OPT) $(INSTALL_BINDIR)/$(OCAMLDOC_OPT)$(EXE) | 37 | + $(BSD_INSTALL_PROGRAM) $(OCAMLDOC_OPT) $(INSTALL_BINDIR)/$(OCAMLDOC_OPT)$(EXE) | |
61 | + ${BSD_INSTALL_DATA} ocamldoc.hva $(OCAMLDOC_LIBA) $(OCAMLDOC_LIBCMXA) $(INSTALL_LIBDIR) | 38 | + $(BSD_INSTALL_DATA) ocamldoc.hva $(OCAMLDOC_LIBA) $(OCAMLDOC_LIBCMXA) $(INSTALL_LIBDIR) | |
62 | + ${BSD_INSTALL_DATA} $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | 39 | + $(BSD_INSTALL_DATA) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR) | |
63 | 40 | |||
64 | # Testing : | 41 | # Testing : | |
65 | ########### | 42 | ########### |
@@ -1,65 +1,58 @@ | @@ -1,65 +1,58 @@ | |||
1 | $NetBSD: patch-bs,v 1.7 2010/08/19 08:06:53 asau Exp $ | 1 | $NetBSD: patch-bs,v 1.8 2012/03/04 09:06:46 asau Exp $ | |
2 | 2 | |||
3 | --- tools/Makefile.shared.orig 2010-06-07 10:58:41.000000000 +0400 | 3 | --- tools/Makefile.shared.orig 2010-10-15 19:36:55.000000000 +0400 | |
4 | +++ tools/Makefile.shared 2010-08-12 14:44:51.000000000 +0400 | 4 | +++ tools/Makefile.shared 2012-03-04 07:13:54.000000000 +0400 | |
5 | @@ -52,9 +52,9 @@ | 5 | @@ -52,9 +52,9 @@ | |
6 | rm -f ocamldep.opt | 6 | rm -f ocamldep.opt | |
7 | 7 | |||
8 | install:: | 8 | install:: | |
9 | - cp ocamldep $(BINDIR)/ocamldep$(EXE) | 9 | - cp ocamldep $(BINDIR)/ocamldep$(EXE) | |
10 | + $(BSD_INSTALL_SCRIPT) ocamldep $(BINDIR)/ocamldep$(EXE) | 10 | + $(BSD_INSTALL_SCRIPT) ocamldep $(BINDIR)/ocamldep$(EXE) | |
11 | if test -f ocamldep.opt; \ | 11 | if test -f ocamldep.opt; \ | |
12 | - then cp ocamldep.opt $(BINDIR)/ocamldep.opt$(EXE); else :; fi | 12 | - then cp ocamldep.opt $(BINDIR)/ocamldep.opt$(EXE); else :; fi | |
13 | + then $(BSD_INSTALL_PROGRAM) ocamldep.opt $(BINDIR)/ocamldep.opt$(EXE); else :; fi | 13 | + then $(BSD_INSTALL_PROGRAM) ocamldep.opt $(BINDIR)/ocamldep.opt$(EXE); else :; fi | |
14 | 14 | |||
15 | # The profiler | 15 | # The profiler | |
16 | 16 | |||
17 | @@ -70,15 +70,15 @@ | 17 | @@ -70,9 +70,9 @@ | |
18 | $(CAMLC) $(LINKFLAGS) -o ocamlcp warnings.cmo main_args.cmo ocamlcp.cmo | 18 | $(CAMLC) $(LINKFLAGS) -o ocamlcp warnings.cmo main_args.cmo ocamlcp.cmo | |
19 | 19 | |||
20 | install:: | 20 | install:: | |
21 | - cp ocamlprof $(BINDIR)/ocamlprof$(EXE) | 21 | - cp ocamlprof $(BINDIR)/ocamlprof$(EXE) | |
22 | - cp ocamlcp $(BINDIR)/ocamlcp$(EXE) | 22 | - cp ocamlcp $(BINDIR)/ocamlcp$(EXE) | |
23 | - cp profiling.cmi profiling.cmo $(LIBDIR) | 23 | - cp profiling.cmi profiling.cmo $(LIBDIR) | |
24 | + $(BSD_INSTALL_SCRIPT) ocamlprof $(BINDIR)/ocamlprof$(EXE) | 24 | + $(BSD_INSTALL_SCRIPT) ocamlprof $(BINDIR)/ocamlprof$(EXE) | |
25 | + $(BSD_INSTALL_SCRIPT) ocamlcp $(BINDIR)/ocamlcp$(EXE) | 25 | + $(BSD_INSTALL_SCRIPT) ocamlcp $(BINDIR)/ocamlcp$(EXE) | |
26 | + $(BSD_INSTALL_DATA) profiling.cmi profiling.cmo $(LIBDIR) | 26 | + $(BSD_INSTALL_DATA) profiling.cmi profiling.cmo $(LIBDIR) | |
27 | 27 | |||
28 | clean:: | 28 | clean:: | |
29 | rm -f ocamlprof ocamlcp | 29 | rm -f ocamlprof ocamlcp | |
30 | 30 | @@ -93,7 +93,7 @@ | ||
31 | install:: | |||
32 | - cp ocamlmktop $(BINDIR)/ocamlmktop$(EXE) | |||
33 | + $(BSD_INSTALL_SCRIPT) ocamlmktop $(BINDIR)/ocamlmktop$(EXE) | |||
34 | ||||
35 | clean:: | |||
36 | rm -f ocamlmktop | |||
37 | @@ -98,7 +98,7 @@ | |||
38 | cp ../myocamlbuild_config.ml . | 31 | cp ../myocamlbuild_config.ml . | |
39 | 32 | |||
40 | install:: | 33 | install:: | |
41 | - cp ocamlmklib $(BINDIR)/ocamlmklib$(EXE) | 34 | - cp ocamlmklib $(BINDIR)/ocamlmklib$(EXE) | |
42 | + $(BSD_INSTALL_SCRIPT) ocamlmklib $(BINDIR)/ocamlmklib$(EXE) | 35 | + $(BSD_INSTALL_SCRIPT) ocamlmklib $(BINDIR)/ocamlmklib$(EXE) | |
43 | 36 | |||
44 | clean:: | 37 | clean:: | |
45 | rm -f ocamlmklib | 38 | rm -f ocamlmklib | |
46 | @@ -122,7 +122,7 @@ | 39 | @@ -117,7 +117,7 @@ | |
47 | # To make custom toplevels (see Makefile/Makefile.nt) | 40 | # To make custom toplevels (see Makefile/Makefile.nt) | |
48 | 41 | |||
49 | install:: | 42 | install:: | |
50 | - cp ocamlmktop $(BINDIR)/ocamlmktop$(EXE) | 43 | - cp ocamlmktop $(BINDIR)/ # no $(EXE) here, ocamlmktop is a script | |
51 | + $(BSD_INSTALL_SCRIPT) ocamlmktop $(BINDIR)/ocamlmktop$(EXE) | 44 | + $(BSD_INSTALL_SCRIPT) ocamlmktop $(BINDIR)/ # no $(EXE) here, ocamlmktop is a script | |
52 | 45 | |||
53 | clean:: | 46 | clean:: | |
54 | rm -f ocamlmktop | 47 | rm -f ocamlmktop | |
55 | @@ -239,8 +239,8 @@ | 48 | @@ -234,8 +234,8 @@ | |
56 | $(CAMLC) -o objinfo $(OBJINFO) | 49 | $(CAMLC) -o objinfo $(OBJINFO) | |
57 | 50 | |||
58 | install:: | 51 | install:: | |
59 | - cp objinfo $(BINDIR)/ocamlobjinfo$(EXE) | 52 | - cp objinfo $(BINDIR)/ocamlobjinfo$(EXE) | |
60 | - cp objinfo_helper$(EXE) $(LIBDIR)/objinfo_helper$(EXE) | 53 | - cp objinfo_helper$(EXE) $(LIBDIR)/objinfo_helper$(EXE) | |
61 | + $(BSD_INSTALL_SCRIPT) objinfo $(BINDIR)/ocamlobjinfo$(EXE) | 54 | + $(BSD_INSTALL_SCRIPT) objinfo $(BINDIR)/ocamlobjinfo$(EXE) | |
62 | + $(BSD_INSTALL_SCRIPT) objinfo_helper$(EXE) $(LIBDIR)/objinfo_helper$(EXE) | 55 | + $(BSD_INSTALL_SCRIPT) objinfo_helper$(EXE) $(LIBDIR)/objinfo_helper$(EXE) | |
63 | 56 | |||
64 | clean:: | 57 | clean:: | |
65 | rm -f objinfo objinfo_helper$(EXE) | 58 | rm -f objinfo objinfo_helper$(EXE) |