#TODO:split out _devel
SUMMARY="A library for building efficient parsers" 
DESCRIPTION="
LibParserUtils is a library for building efficient parsers.
" 
HOMEPAGE="http://www.netsurf-browser.org/projects/libparserutils/" 
SRC_URI="git://git.netsurf-browser.org/libparserutils.git"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2007 - 2013 J-M Bell"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	libparserutils$secondaryArchSuffix = $portVersion
	lib:libparserutils$secondaryArchSuffix = $portVersion
	devel:libparserutils$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	lib:libiconv${secondaryArchSuffix}
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libiconv${secondaryArchSuffix}
	netsurf_buildsystem >= 0
	"

BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:perl
	"


BUILD()
{
	make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
}

INSTALL()
{
	make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
		I=/develop/headers/libparserutils
	mkdir -p $prefix/develop/lib
	mv -f $prefix/lib/*.a $prefix/develop/lib/
	mv -f $prefix/lib/pkgconfig $prefix/develop/lib/
}
