# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem			1.0
name				lablgl
version				1.04
categories			graphics
maintainers			recoil.org:anil
description			Objective Caml interface to OpenGL
long_description	LablGL is is an Objective Caml interface to OpenGL. \
					Support is included for use with both Glut (standalone) and LablTk.\
					LablGTK also includes specific support for LablGL.
homepage			http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
platforms			darwin
master_sites		http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/
checksums			md5     dcf05a0cffffdf06cbe0fe55f9eff974 \
					sha1    80e8bf4deaade52372a64fe1e93713b4a49e9171 \
					rmd160  d623514e2f1b1b2a1e71323aae4874f2beb3db6d
depends_lib			port:ocaml

configure {
	copy ${worksrcpath}/Makefile.config.osx ${worksrcpath}/Makefile.config
}

set stublibsdir		${destroot}${prefix}/lib/ocaml/stublibs/
pre-destroot {
	file mkdir ${stublibsdir}
}
destroot.args \
	INSTALLDIR=${destroot}${prefix}/lib/ocaml/lablgl \
	BINDIR=${destroot}${prefix}/bin \
	DLLDIR=${stublibsdir}

build.target	lib libopt glut glutopt

use_parallel_build	no

