# -*- 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
# there is a newer version, but it only works for ocaml 4.06
# 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://forge.ocamlcore.org/projects/labltk/
master_sites https://forge.ocamlcore.org/frs/download.php/1701
checksums rmd160 c77826d6fc658756a25a52d9930e5edc0fa19b65 \
sha256 b6b7076f6a2a7b2f63095013cb4e37a1f2a6eb3d4abb57dbb1b8cff1ae4c6ae6
# 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