Portfile

# $Id: Portfile 20420 2006-11-03 02:16:34Z jberry@macports.org $

PortSystem 1.0
name antigraingeometry
version 2.3
revision 8
categories graphics devel
maintainers nomaintainer@macports.org
description A high quality rendering engine for C++
long_description \
Anti-Grain Geometry (AGG) is a general purpose graphical toolkit \
written completely in standard and platform independent C++. It can be \
used in many areas of computer programming where high quality 2D \
graphics is an essential part of the project. For example, if you \
render 2D geographic maps AGG is a must. AGG uses only C++ and standard \
C runtime functions, such as memcpy, sin, cos, sqrt, etc. The basic \
algorithms don't even use C++ Standard Template Library. Thus, AGG can \
be used in a very large number of applications, including embedded \
systems.

platforms darwin

homepage http://www.antigrain.com/
master_sites ${homepage}
distname agg23

checksums md5 c4785f783fd09e5bea9974360c5e4544 \
sha1 5d2b2961b18352057a9026a9c5873c42a7a9db0c \
rmd160 5a83d92dc4a116174aadba3f5350d034aff08fa9

depends_lib port:freetype lib:libX11:XFree86

patchfiles patch-Makefile.am

use_autoconf yes
use_automake yes
automake.args --foreign --add-missing --ignore-deps

pre-configure {
cd ${worksrcpath}
if {[variant_isset darwin]} {
system "aclocal -I /usr/share/aclocal"
system "glibtoolize --force"
} else {
system "aclocal"
system "libtoolize --force"
}
}

configure.args LD_TWOLEVEL_NAMESPACE=1 MACOSX_DEPLOYMENT_TARGET="10.3"

build.env MACOSX_DEPLOYMENT_TARGET="10.3"

post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} README.txt readme \
${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/tutorial \
${destroot}${prefix}/share/doc/${name}
}

# Empty so it gets set for pre-configure
variant darwin {
}

files