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

PortSystem			1.0

name				lablgtk2
version				2.10.1
categories			x11
maintainers			kallisys.net:pguyot openmaintainer
description			Objective Caml interface to gtk+ 2.x
long_description	LablGTK2 is is an Objective Caml interface to gtk+ 2.x. \
					It uses the rich type system of Objective Caml 3 to provide a \
					strongly typed, yet very comfortable, object-oriented interface to \
					gtk+. This is not that easy if you know the dynamic typing approach \
					taken by gtk+.
homepage			http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
platforms			darwin
master_sites		http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/
distname			lablgtk-${version}
checksums			md5 bd7073ca05e684e5d5a3d553371fd6e5 \
          sha1 6c6f273951059fc86b89337a5b10dfb866ca5f87 \
          rmd160 5dda1a7d5438ae57fb8c170b6459393c4af872a2
depends_lib			bin:camlp4:ocaml \
					lib:libgtk.2:gtk2 \
					lib:libglade-2:libglade2 \
					lib:libgnomecanvas:libgnomecanvas \
					lib:libgnomeui:libgnomeui
configure.args		--without-gl --without-rsvg --with-glade \
					--with-gnomecanvas --with-gnomeui --without-panel \
					--without-gtkspell --without-gtksourceview
build.target		world

variant rsvg description "enable rsvg support" {
	configure.args-delete	--without-rsvg
	configure.args-append	--with-rsvg
	depends_lib-append		lib:librsvg-2:librsvg
}

variant gtksourceview description "enable gtksourceview support" {
	configure.args-delete	--without-gtksourceview
	configure.args-append	--with-gtksourceview
	depends_lib-append		port:gtksourceview
}

livecheck.check	regex
livecheck.regex	{<DT> <a href="dist/lablgtk-(2.*?).tar.gz">lablgtk-\1.tar.gz</a>}
