PortSystem        1.0
PortGroup           ocaml 1.0

name              ocamlsdl
version           0.9.1
revision          5
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/
platforms         darwin
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}
}