# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           ocaml 1.1

name                ocaml-tsdl-ttf
github.setup        sanette tsdl-ttf 0.6
revision            3
categories          ocaml devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             BSD
description         SDL2_Ttf bindings to go with Tsdl
long_description    {*}${description}
checksums           rmd160  7b3a463d3c9c5a21d59110391588671226ab909c \
                    sha256  7696b84e3386dfe3ea350b7d1825917a60263f73e8f5f9de34436656a52cc1ef \
                    size    375744
github.tarball_from archive

patchfiles          patch-fix-prefix.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/src/tsdl_ttf.ml
}

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:libsdl2_ttf \
                    port:ocaml-ctypes \
                    port:ocaml-ctypes-foreign \
                    port:ocaml-dune-configurator \
                    port:ocaml-tsdl

ocaml.build_type    dune
