libagg stable port information

Package: libagg
Version: 2.5
Revision: 2
Description: 2D rendering engine for C++
License: BSD
Maintainer: Benjamin Reed

Depends: %N-shlibs (>= %v-%r)
BuildDepends: <<
autoconf2.6,
automake1.11,
fink (>= 0.29.7-1),
freetype219 (>= 2.3.12-1),
libtool2,
pkgconfig (>= 0.23-1),
sdl (>= 1.2.13-1),
x11-dev,
xmkmf
<<
GCC: 4.0

Source: http://www.antigrain.com/agg-%v.tar.gz
Source-MD5: 0229a488bc47be10a2fee6cf0b2febd6
PatchScript: <<
#!/bin/sh -ev
if [ "%m" = "x86_64" ]; then
patch -p1 --fuzz=4 < %{PatchFile}
fi
<<
PatchFile: libagg.patch
PatchFile-MD5: 5799a18be8ed928001d0b307fb8d7be2

SetCFLAGS: -Os
SetCXXFLAGS: -Os
SetLDFLAGS: -L/usr/X11/lib -L/usr/X11R6/lib
UseMaxBuildJobs: true
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info --disable-sdltest --enable-examples=no
CompileScript: <<
#!/bin/sh -ev

export PATH="%p/lib/xmkmf/bin:$PATH"
sh autogen.sh %c
make
<<

InstallScript: <<
make -j1 install DESTDIR="%d"
perl -pi -e 's/-framework /-framework,/g' %i/lib/*.la
<<
DocFiles: readme* authors copying news readme ChangeLog
SplitOff: <<
Package: %N-shlibs
Description: shared libraries for the AGG rendering engine
Depends: <<
freetype219-shlibs (>= 2.3.12-1),
sdl-shlibs (>= 1.2.13-1),
x11-shlibs
<<
Files: <<
lib/libagg.2*.dylib
lib/libaggfontfreetype.2*.dylib
lib/libaggplatform*.2*.dylib
<<
Shlibs: <<
%p/lib/libagg.2.dylib 3.0.0 libagg-shlibs (>= 2.3-1)
%p/lib/libaggfontfreetype.2.dylib 3.0.0 libagg-shlibs (>= 2.4-1)
%p/lib/libaggplatformsdl.2.dylib 3.0.0 libagg-shlibs (>= 2.4-1)
%p/lib/libaggplatformX11.2.dylib 3.0.0 libagg-shlibs (>= 2.3-1)
(%m != x86_64) %p/lib/libaggplatformmac.2.dylib 3.0.0 libagg-shlibs (>= 2.5-1)
<<
<<
SplitOff2: <<
Package: %N-dev
Description: libagg development headers and libraries
Depends: %N-shlibs (>= %v-%r)
BuildDependsOnly: true
Files: <<
include
lib
<<
<<

Homepage: http://www.antigrain.com/
DescUsage: <<
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.
<<

libagg stable port .patch

diff -Nurd agg-2.5/configure.in agg-2.5-new/configure.in
--- agg-2.5/configure.in 2006-10-09 00:06:36.000000000 -0400
+++ agg-2.5-new/configure.in 2010-09-26 21:40:29.000000000 -0400
@@ -41,14 +41,6 @@
# Platforms to link the examples have been evaluated.
PREFERED_PLATFORM=X11
case "$host" in
- *darwin* )
- OSX_LIBS="-framework Carbon -framework QuickTime"
- OSX_CFLAGS="-I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/QuickTime.framework/Headers "
- AC_SUBST(OSX_CFLAGS)
- AC_SUBST(OSX_LIBS)
- osx_host=yes
- PREFERED_PLATFORM=mac
- ;;
dnl #### Check if we are compiling for win32 #####
*mingw*)
win32_host=yes

libagg _unstable_ port .patch