# $Id: Portfile 86494 2011-10-26 21:16:58Z jmr@macports.org $

PortSystem 1.0

name             libggi
version          2.2.2
categories       graphics
license          MIT
maintainers      nomaintainer
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      port:libgii

master_sites     ${homepage}ftp/ggi/v2.2/ \
                 sourceforge:ggi
distname         ${name}-${version}.src
use_bzip2        yes
checksums        md5 51d92ea810dad5360f6f0d02dd8b84a4 \
                 sha1 aa439b21fb040b5b52ae18099a0c3cb02e50110f \
                 rmd160 e76d22f06231e0aa1f752e33951802f243b7f0aa

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
