# -*- 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
# warning: master_sites may change for each version update
categories graphics devel ocaml
license {LGPL-2.1 OpenSSLException}
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.
distname labltk-${version}
homepage https://garrigue.github.io/labltk/
master_sites https://forge.ocamlcore.org/frs/download.php/1764
checksums rmd160 1927fc13439bfeaec4e37c5c28adfd75ad9ccf6a \
sha256 92ff3358cd28d6b0c60d17367a875cd895741dbebae20ba310ee4d1e7c31fd71 \
# in searching for headers and libraries, search ${prefix} first
patchfiles-append patch-configure.diff
reinplace "s|__MACPORTS_PREFIX__|${prefix}|g" ${worksrcpath}/configure
depends_lib-append port:tk
configure.pre_args -libdir ${prefix}/lib/ocaml \
-tklibs -L${prefix}/lib -tkdefs -I${prefix}/include
xinstall -m 755 -d ${destroot}${prefix}/lib/ocaml/stublibs
destroot.destdir BINDIR=${destroot}${prefix}/bin \
LIBDIR=${destroot}${prefix}/lib/ocaml