SUMMARY="A strictly RFC 3986 compliant URI parsing library in C"
DESCRIPTION="
Uriparser is a strictly RFC 3986 compliant URI parsing library in C.
" 
HOMEPAGE="http://uriparser.sourceforge.net/" 
SRC_URI="http://downloads.sourceforge.net/project/uriparser/Sources/0.7.9/uriparser-0.7.9.tar.bz2"
CHECKSUM_MD5="d9189834b909df8d672ecafc34186a58"
LICENSE="BSD (3-clause)"
COPYRIGHT="2007 Weijia Song
	2007-2008 Sebastian Pipping"
	
REVISION="1"

ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	uriparser = $portVersion compat >= 0.7
	lib:liburiparser = 1.0.14 compat >= 1
	"

REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:libtool
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:make
	"

BUILD()
{
	libtoolize --force --copy --install
	aclocal -I m4
	autoconf
	automake --add-missing
	runConfigure ./configure -disable-test --disable-doc
	make $jobArgs
}

INSTALL()
{
	make install
	
	prepareInstalledDevelLib liburiparser
	fixPkgconfig
	
	packageEntries devel \
			$developDir
}

PROVIDES_devel="
	devel:uriparser = 1.0.14 compat >= 1
	devel:liburiparser = 1.0.14 compat >= 1
	"

REQUIRES_devel="
	liburiparser == $portVersion base
	"
