# Distributed under the terms of the GNU General Public License v2 # Copyright 2013 Nicolas Braud-Santoni SLOT="0" PLATFORMS="~amd64 ~x86" SUMMARY="OCaml interface to OpenGL" DESCRIPTION=" LablGL is is an OCaml interface to OpenGL. Support is included for use with both Glut (standalone) and LablTk. LablGTK also includes specific support for LablGL. It can be used either with proprietary OpenGL implementations, with XFree86 GLX extension, or with open-source Mesa. " HOMEPAGE=" http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/${PN}.html [[ description = [ Official homepage at Kyoto University ] ]] https://forge.ocamlcore.org/projects/${PN}/ [[ description = [ Project page on the OCaml Forge ] ]] " LICENCES="BSD-3" DOWNLOADS="http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/${PNV}.tar.gz" DEPENDENCIES=" build: dev-ocaml/camlp4 build+run: dev-lang/ocaml dev-ocaml/labltk x11-libs/libX11 x11-libs/libXext x11-libs/libXmu " src_prepare() { edo cp "${FILES}"/Makefile.config . } src_compile() { emake emake opt } src_install() { edo mkdir -p "${IMAGE}"{usr/$(exhost --target)/bin,$(ocamlc -where)/stublibs} emake BINDIR="${IMAGE}/usr/$(exhost --target)/bin" install emagicdocs }