version: 2.4
source: http://antigrain.com/
Get the v2.4 source, it has a more permissive BSD license, v2.5 switched to the GPL. There are no critical changes in 2.5.
There is no configure script, configuration is done by editing a makefile. It is possible to generate a configure script, but the manual configuration is quite simple.
We don't add FreeType here, since MapServer compiles that source file itself.
There is no install step, since MapServer links AGG out of the AGG source folder.
All system builds need the following patch to fix an incomplete declaration – edit include/agg_basics.h and replace the line:
#define AGG_INT32U unsigned
with:
#define AGG_INT32U unsigned int
Edit Makefile.in.Darwin and change the corresponding lines to:
AGGCXXFLAGS = -Os CXX = g++ -arch ppc -arch i386 -arch ppc64 -arch x86_64 C = gcc -arch ppc -arch i386 -arch ppc64 -arch x86_64
Then, in a Terminal in the AGG source:
make
Edit Makefile.in.Darwin and change the corresponding lines to:
AGGCXXFLAGS = -Os CXX = g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk C = gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
Then, in a Terminal in the AGG source:
make
Edit Makefile.in.Darwin and change the corresponding lines to:
AGGCXXFLAGS = -Os
Then, in a Terminal in the AGG source:
make