Files
Paul GuyotandPerry E. Metzger 4c8893022e ocaml: update to 5.4.1; cascade ecosystem updates
Port to OCaml 5: mldonkey, ocaml-dypgen, ocamldot, ocaml-ftp, ocaml-bisect_ppx, ocaml-ocamlnet
New ports: ocaml-capitalization, ocaml-gel, ocaml-ocaml_intrinsics_kernel,
           ocaml-ppx_diff, ocaml-ppx_string_conv, ocaml-ppxlib_jane,
           ocaml-iri, ocaml-ocf (+ocf_ppx), ocaml-higlo
New subport: ocaml-xtmpl_ppx
Remove ocaml-configurator (merged into ocaml-dune)
Also removed ocaml-migrate-parsetree, ocaml-ppx_find and
     ocaml-ppx_tools_versioned as they are leaves and ocaml-migrate-parsetree
     is marked deprecated upstream and incompatible with OCaml 5.4
Update stog, fstar, camlimages, lablgtk2 and many others
ocaml-mysql: update to 1.2.4; switch mysql5 dependency to mariadb-10.11
opam: fix dune bootstrap of AVX-512 asm with older Xcode
wyrd: mark known_fail (abandoned upstream, incompatible with OCaml 5)

i386/ppc/ppc64 support is completely untested

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
2026-06-13 13:42:44 -04:00

42 lines
1.7 KiB
Plaintext

PortSystem 1.0
PortGroup ocaml 1.0
name ocamlsdl
version 0.9.1
revision 6
categories ocaml devel multimedia
license LGPL
maintainers nomaintainer
description OCaml bindings for SDL
long_description \
SDL (Simple DirectMedia Layer) is a generic API that provides low level access to audio, keyboard, mouse, and display\
framebuffer across multiple platforms. OCamlSDL is an OCaml interface to the SDL and might be used to write multimedia\
applications in Objective Caml.
homepage http://ocamlsdl.sourceforge.net/
master_sites sourceforge:project/${name}/OCamlSDL/${name}-${version}
checksums rmd160 9ed03415db7dabe652efa78e80ddfae221f09d20 \
sha256 abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f
depends_lib port:libsdl_image port:libsdl_mixer port:libsdl_ttf port:ocaml port:lablgl port:ocaml-findlib
configure.args --disable-sdltest
configure.env OCAMLFIND=${ocamlfind_wrapper}
post-configure {
reinplace "s|-Wl,-framework,Cocoa|-framework Cocoa|g" ${worksrcpath}/makefile.config.gcc
}
pre-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}
}
# ocamlsdl (SDL 1.2 bindings, last released 2013) does not build on OCaml 5
# and has no OCaml-5-capable upstream; SDL2 replacements (tsdl, OCamlSDL2)
# have incompatible APIs.
known_fail yes
pre-fetch {
ui_error "${name} (SDL 1.2 bindings) does not build on OCaml 5 and has no OCaml-5-capable upstream."
return -code error "incompatible OCaml version"
}