#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=poco
pkgver=1.3.6p2
pkgrel=1tm
arch=x86_64
source=("http://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-$pkgver-all.tar.gz")
url="http://pocoproject.org/"
docs=('CHANGELOG' 'CONTRIBUTORS' 'LICENSE' 'MANIFEST' 'NEWS' 'README' 'VERSION')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (C++ Libraries)"
"The POCO C++ Libraries (POCO stands for POrtable COmponents) are open"
"source C++ class libraries that simplify and accelerate the"
"development of network-centric, portable applications in C++. The"
"libraries integrate perfectly with the C++ Standard Library and fill"
"many of the functional gaps left open by it. Their modular and"
"efficient design and implementation makes the POCO C++ Libraries"
"extremely well suited for embedded development."
)

build() {
	cd $startdir/src/${pkgname}-${pkgver}-all
	./configure \
		--prefix=/usr \
		--library-path=/usr/lib${LIBDIRSUFFIX} \
		--omit=Data/ODBC \
		--unbundled

	make -j2 || return 1
	make DESTDIR=$startdir/pkg/ install || return 1
	if [ "${LIBDIRSUFFIX}" = "64" ]; then
		mv $startdir/pkg/usr/lib $startdir/pkg/usr/lib64
	fi
}
