# -*- 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           ocaml 1.1
PortGroup           github 1.0

github.setup        garrigue labltk 8.06.16
revision            0
checksums           rmd160  b3649b6e321d575bbb342648cc7c684e669c915a \
                    sha256  f816031d6fa024a7ff8cf768205ff24c528ae2c69eca86ad7d7b5ddab4e16022 \
                    size    385188

name                ocaml-labltk
categories          graphics devel ocaml
license             {LGPL-2.1 OpenSSLException}
maintainers         nomaintainer
description         OCaml interface to the Tcl/Tk GUI framework
long_description    LablTk is an interface to the Tcl/Tk GUI framework. It \
                    allows to develop GUI applications in a speedy and type \
                    safe way. A legacy Camltk interface is included. The \
                    OCamlBrowser library viewer is also part of this project.

homepage            https://garrigue.github.io/labltk/
github.tarball_from archive


depends_lib-append  port:tcl \
                    port:tk

configure.pre_args  --libdir ${prefix}/lib/ocaml \
                    --tk-no-x11 \
                    --tkdefs -I${prefix}/include \
                    --tklibs -L${prefix}/lib \
                    --verbose

use_parallel_build  no

pre-destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/lib/ocaml/stublibs
}

build.target-append opt
destroot.destdir    INSTALLDIR=${destroot}${prefix}/lib/ocaml/labltk \
                    INSTALLBINDIR=${destroot}${prefix}/bin \
                    STUBLIBDIR=${destroot}${prefix}/lib/ocaml/stublibs
