# $Id$

PortSystem 1.0
PortGroup  muniversal 1.0
name		gtkglext
version		1.2.0
revision	9
categories	devel
license		LGPL-2.1+
maintainers	lifehertz.com:jd
description	OpenGL Extension to GTK
platforms	macosx darwin
long_description	\
		${description}

homepage	http://sourceforge.net/projects/gtkglext/
master_sites	sourceforge

checksums	md5 5c3240bfc1b21becd33ce35c5abe6f8d
depends_build	port:pkgconfig
depends_lib	port:gtk2 \
		port:libGLU \
		port:mesa \
		port:pangox-compat \
		port:xorg-libXmu

patchfiles	patch-examples-pixmap-mixed.c.diff \
		patch-examples-pixmap.c.diff \
		patch-gtk-gtkglwidget.c.diff

configure.args --x-include=${prefix}/include --x-lib=${prefix}/lib

variant quartz {
	configure.args-delete --x-include=${prefix}/include --x-lib=${prefix}/lib
	configure.args-append --without-x
	depends_lib-delete	port:mesa \
				port:xorg-libXmu
	patchfiles-append	patch-configure.diff \
				patch-makefile.in.diff \
				patch-gdk-makefile.in.diff \
				patch-gtk-makefile.in.diff \
				patch-gdk-gdkglquery.c.diff \
				patch-gdk-gdkglshapes.c.diff \
				patch-gdk-gdkglglext.h.diff

	platform darwin 8 {
			depends_lib-append port:xorg-glproto
	}
}