### this file is sourced not run
PKGVER=2.5 # final version, RIP Maxim
PKGBUILD=1
PKGARCH=x86_64

# BLFS 2014-04-02
TARBALL=agg-$PKGVER.tar.gz
MD5SUM=0229a488bc47be10a2fee6cf0b2febd6
#SRC_URL=http://www.antigrain.com/$TARBALL
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='libSDL libX11'
SLACKDESC="libagg: libagg $PKGVER (C++ Graphics toolkit)  
libagg:  
libagg: The Anti-Grain Geometry (AGG) package contains a general purpose C++ 
libagg: graphical toolkit. It can be used in many areas of computer 
libagg: programming where high quality 2D graphics is an essential part of the 
libagg: project.  
libagg: 
libagg: http://www.antigrain.com
libagg: 
libagg: 
libagg:  
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/agg*
	sed -i 's:  -L@x_libraries@::' src/platform/X11/Makefile.am &&
	sed -i '/^AM_C_PROTOTYPES/d'   configure.in                 &&

	bash autogen.sh $CONFFLAGS --disable-static &&
	make $MAKEFLAGS && make install &&
	pkg_build_slackdesc
}
