Commit Graph

140 Commits

Author SHA1 Message Date
robert
af23240570 unbreak after switching llvm-ranlib; it only takes one archive at a time 2022-03-24 14:39:17 +00:00
naddy
e93f9d0ca9 drop RCS Ids 2022-03-11 19:28:46 +00:00
daniel
b11e88b6e2 revert previous change which breaks ocaml on i386 as found by sthen
and as run into by me as well.
2022-01-13 04:19:45 +00:00
chrisz
35415d1650 fix test suite 2022-01-12 21:30:14 +00:00
chrisz
4d6f554b64 remove obsolete fiddling with CFLAGS
fixed upstream:
https://github.com/ocaml/ocaml/pull/8750
2022-01-11 19:01:28 +00:00
jca
73842f55a7 Move files built only on native archs to the right place.
Fixes packaging on sparc64, riscv64 and likely all non-native archs.
ok daniel@
2021-12-18 01:57:22 +00:00
daniel
efd5a97f0a update ocaml to 4.12.1
The ocaml update requires ocaml-camlp4 to be updated in sync and all
dependant ports need a bump.

ok avsm@ (MAINTAINER)
2021-12-10 04:10:59 +00:00
chrisz
d3766ad015 lang/ocaml supports native code on aarch64
ok daniel@
2021-12-04 21:17:10 +00:00
daniel
68420eccff update ocaml to to 4.11.2 and bump all dependant ports
As usual camlp4 and camlp4 need to be updated in sync with ocaml. All
ocaml ports were successfully builds- tested on amd64. coccinelle remains
broken, but was built with the proposed diff floating on ports@

ok chrisz@
2021-12-02 03:59:19 +00:00
naddy
ae34169fff lang/ocaml: fix build with LLVM11 on amd64, from upstream
ok chrisz@, lgtm avsm@
2021-03-15 20:47:22 +00:00
jca
c2b19727ec Let OCaml ports declare a rundep on lang/ocaml as appropriate
Some OCaml ports build native-code programs on architectures where
supported, most of them probably don't need the big ocaml package at
runtime (for example net/unison).  This commit introduces
MODOCAML_RUNDEP, setting it to `if-not-native' should do the right
thing.

Earlier diffs by bket@.  ok sthen@ bket@
2021-02-01 00:17:55 +00:00
chrisz
8f34a2e806 Update lang/ocaml to 4.10.0
tested on sparc64, update to lang/camlp4 and ok by jca@
ok daniel@
thanks.
2020-06-09 17:34:13 +00:00
chrisz
2dd0fda6b6 Update OCaml to 4.09
reviewed ports wise and help with @pkgpath, ok by sthen@
reviewed and help with bytecode-only plists, minor nits and ok by jca@
tested on sparc 64 by @jca
tested on aarch64 by Kurt Miller
tested on amd64 by me

Thanks for reviews and testing!
2019-09-26 09:46:09 +00:00
chrisz
225ce4224b Upgrade lang/ocaml to 4.08.1
* net unison needed some patchign to avoid deprecated library functions.
* all ports depending on the exact version of OCaml need revision bumps.
* net/unison needed some help to avoid deprecated library functions.

ok krw@, testing on i386 and ok daniel@
2019-09-18 17:49:35 +00:00
sthen
3318ced016 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:46:54 +00:00
chrisz
b423ca79c0 Pass use LDFLAGS when linking shared library.
ok sthen@
2019-03-09 12:29:56 +00:00
chrisz
b438efbd00 Upgrade OCaml and dependent ports
testing and OKs by avsm@, jca@, krw@ Thanks a lot !
2019-03-04 12:51:12 +00:00
naddy
e409c07e98 Wedge -znotext into all the necessary places to allow text relocations
that are caused at least by non-PIC assembly in the i386 runtime stub.
While here, also honor CFLAGS better.
ok jca@ krw@ avsm@
2018-11-28 18:23:08 +00:00
jca
c04dd410e7 arm64 has devel/gdb now, remove workaround and register bdep/WANTLIB
gdb is picked up because it brings libbfd, which can be used by
ocamlobjinfo to analyze (at least) .cmxs files.  Not very useful on
arm64 since native code support isn't enabled, but this is consistent
with other similar architectures.

An alternative would be to drop BFD on non-native non-dynlink archs, if
it is actually used only for .cmxs files.

Late commit because I wanted to avoid conflicting with the ongoing OCaml
update, but this one will need a refreshed diff anyway.

Tested by kettenis@
2018-07-11 09:30:55 +00:00
espie
adf97138bc tweak pre-fake and post-install modules, so that they're run in the
exact same way (e.g., with FAKE_SETUP done and with changed
identity already).

Adjust user modules accordingly.
2017-12-03 11:10:10 +00:00
ajacoutot
0b50ae809a PLIST change = bump 2017-09-15 09:23:12 +00:00
chrisz
af5c675178 Fix PLISTs for bytecode only build.
ok jasper@, krw@
2017-09-14 15:43:45 +00:00
jasper
65695f663a try to bring balance to the force by moving all native/bytecode files to the
correct PFRAG file.

ok krw@
2017-09-12 17:36:19 +00:00
jasper
0b7a1d3a0f trailing whitespace 2017-09-01 17:04:22 +00:00
sthen
ec8251354a let ocaml's build dep on devel/gdb (for libbfd.a) be conditional, don't
use it on aarch64 where gdb hasn't been ported yet.
2017-05-25 22:57:42 +00:00
jca
4d8a9a69b5 Don't hardcode gcc -c 2017-02-27 20:51:03 +00:00
jasper
15eee39723 remove handling of zaurus 2016-09-07 10:02:59 +00:00
krw
f5fd6f0fd2 Upgrade Ocaml to 4.3.0 and tweak ports the minimal amount to keep
them all compiling.

Tweaks include updating

ocaml-batteries 2.3.1 -> 2.5.0
ocaml-lwt 2.4.8 -> 2.5.2
ocaml-ppx-tools 0.99.2 -> 4.03.0
ocaml-camlp4 4.02+6 -> 4.03+1
utop 1.15 -> 1.19.2

and fixes to coccinelle and wyrd to let them build on bytecode archs.

Other necessary tweaks from the various homes of the projects.

Everything still builds on amd64 (native and bytecode) and sparc64 (bytecode).

ok anil@ sthen@ so final 4.3.0 tweaks can be done in-tree.
2016-06-24 15:59:11 +00:00
krw
50b44b65e0 Stop building Ocaml's internal ocamlbuild and use the ocaml-ocamlbuild port
where needed.

The next step towards Ocaml 4.3.0.

Bulk build by sthen@ identified several laggards which are included here.

ok anil@ sthen@ so final 4.3.0 polishing can be done in-tree.
2016-06-23 19:23:53 +00:00
jca
9c6fc9ff29 Miod says ocaml works on hppa. 2016-04-11 11:21:31 +00:00
naddy
b565ffc051 g/c PFRAG.shared from OCaml ports; ok chrisz@ 2016-03-29 11:27:00 +00:00
mmcc
9faeee73dc tweak HOMEPAGE to avoid cert error, crank REVISION
ok avsm@
2016-02-29 23:42:51 +00:00
avsm
f718ac074b update to ocaml-4.02.3
ok jca@, tested by krw@ daniel@ jsg@
2015-08-30 15:38:32 +00:00
sthen
9117d447a3 ocaml-4.02-refman-html.tar.gz was re-rolled upstream (regenerated with new
hevea; header changes but no content changes) - adjust distinfo, and while
there also package a .css file that was missing. OK chrisz@
2015-07-16 15:05:55 +00:00
chrisz
43cd332526 update to OCaml 4.02.1.
Tested upgrade from 4.02.0 without revision bumping other packages.

ok avsm@. espie@ had a look -> no revision bumps needed.
2014-10-25 11:55:54 +00:00
chrisz
bbb4fdcb7f Remove unused and wrong OCAML_VERSION.
It's job is now done by bsd.port.arch.mk

Noticed and ok by jca@
2014-09-08 05:10:10 +00:00
chrisz
613008e6eb bump due to reordering of plist. Noticed by naddy@ Thanks! 2014-09-04 15:56:26 +00:00
chrisz
df729a7087 Fix PLISTs for bytecode archs. No plist change for native archs.
Bytecode archs were broken until now.
2014-09-03 17:48:19 +00:00
chrisz
4f34b70b07 Upgrade OCaml to 4.02. Since camlp4 is now a seperate port,
add / change BUILD_DEPENDS for all ports using camlp4.
Findlib is changed because it won't use camlp4 and doesn't install
the Bytes module anymore, which is now included in OCaml 4.02.

ok avsm@
2014-09-02 09:24:44 +00:00
chrisz
10bf6648f4 Split off camlp4, labltk and graphics from our current OCaml 4.01.
This will help when upgrading to upcoming OCaml 4.02, which will miss camlp4
and labltk.
For a smooth transision, make all OCaml ports BUILD_DEPEND on camlp4 via
MODULES=ocaml.

sysutils/findlib is the only port using -labltk.
graphics/ocaml-camlimage is the only port using -graphics.


ok avsm@
2014-08-21 20:54:04 +00:00
espie
1e03f31759 _FAKESUDO where needed, from naddy 2014-08-10 10:13:18 +00:00
dcoppa
12edcd8e6b Update to ocaml-4.01.0
Tested in a bulk build by landry@
2013-11-25 14:40:15 +00:00
sthen
701c91e413 kill VMEM_WARNING 2013-11-25 14:16:22 +00:00
espie
0662a4e9d6 PERMIT_* / REGRESS->TEST sweep 2013-03-11 11:20:26 +00:00
chrisz
12eb27ca17 by default use ocamldoc.opt on native-dynlink archs.
This will greatly speed up builds for several ports.
2013-01-03 14:32:11 +00:00
chrisz
0db34feeee always define -Ddynlink= in PKG_ARGS and MODOCAML_NATDYNLINK.
This unbreaks devel/coccinelle

OK
jasper@, landry@, avsm@ (maintainer)
2012-12-31 15:17:00 +00:00
chrisz
0081341c9f update lang/ocaml to 4.00.1.
Let all ocaml ports RUN_DEPEND on the version of ocaml they were built with.
2012-11-30 19:38:09 +00:00
avsm
21a5f242c1 unbreak ocaml on macppc by fixing the configure script 2012-11-01 07:57:26 +00:00
sthen
6eacdb91e8 bump various packages with static libs which frequently get pulled in;
this is to force pkg_add -u to pick them up because moving to PIE does change
these files but since there are no library bumps, the package signature stays
the same.

there are probably others, these are just ones I've run into. not a great
fix, and needs to be repeated when other arch move, but it's the simplest low
impact fix and I'm fed up with "relocation R_X86_64_32S can not be used
when making a shared object; recompile with -fPIC"
2012-10-12 14:53:39 +00:00
ajacoutot
9dc0254ef0 This port never built on powerpc since it got updated, so mark it BROKEN. 2012-10-04 07:45:26 +00:00