# $Id: Portfile,v 1.1 2004/06/10 21:17:44 pguyot Exp $

PortSystem			1.0
name				lablgl
version				1.00
categories			graphics
maintainers			anil@recoil.org
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 92bcfe3121650c43e5bc4c018778405b
depends_lib			bin:camlp4:ocaml lib:libgtk.1:gtk1 lib:libglut.3:glut

configure {
	cd ${worksrcpath}
	system "cp Makefile.config.osx 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
