# $Id: Portfile,v 1.2 2005/04/19 21:27:42 toby Exp $

PortSystem 1.0
name             libggi
version          2.1.1
categories       graphics
maintainers      toby@opendarwin.org
description      General Graphics Interface
long_description \
	LibGGI provides an opaque interface to the display's \
	acceleration functions. It was originally intended to \
	allow user programs to interface with KGI, the GGI \
	Kernel Graphics Interface, but other display types can \
	be easily used by loading the appropriate display target.
homepage         http://www.ggi-project.org/
platforms        darwin

depends_lib      lib:libgg.0:libgii

master_sites     http://www.ggi-project.org/ftp/ggi/v2.1/ \
                 sourceforge:ggi
distname         ${name}-${version}.src
use_bzip2        yes
checksums        md5 6bbaf5c2661be1cd7c1268079b1959c7

worksrcdir       ${name}-${version}

patchfiles       patch-include__ggi__internal__internal.h \
                 patch-programs__check__speed.c
post-patch {
	reinplace "s|need_relink=yes|need_relink=no|" \
		${worksrcpath}/ltmain.sh
}

configure.args   --mandir=${prefix}/share/man
