### this file is sourced not run
PKGVER=2.5
PKGBUILD=1
PKGARCH=x86_64

# BLFS 2014-04-02
TARBALL=agg-2.5.tar.gz
MD5SUM=0229a488bc47be10a2fee6cf0b2febd6
SRC_URL=http://www.antigrain.com/agg-2.5.tar.gz
BUNDLE=

SLACKREQ='libSDL libX11'
SLACKDESC='libagg: libagg 2.5 (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: 
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
}
