SUMMARY="NetSurf build framework"
DESCRIPTION="
NetSurf build framework for compiling some of their libraries.
"
HOMEPAGE="http://git.netsurf-browser.org/buildsystem.git/"
SOURCE_URI="http://download.netsurf-browser.org/libs/releases/buildsystem-$portVersion.tar.gz"
CHECKSUM_SHA256="3903a4a1551c9c202e1d2047344c4f3598c8d9d6c35ebf8cc2e18874bd0c9d61"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2009-2014 The NetSurf Browser project"

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

PROVIDES="
	netsurf_buildsystem$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

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

SOURCE_DIR="buildsystem-$portVersion"
PATCHES="netsurf_buildsystem-1.1.patchset"
BUILD()
{
	# no-op
	true
}

INSTALL()
{
	make install PREFIX=$prefix BASE=$prefix/data/netsurf-buildsystem
}

