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="10bbe95ba07476208da6047bd3c74685b6e61ba9904975b5d5c9a2c79a84ac79"
PATCHES="netsurf_buildsystem-1.3.patchset"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2009-2015 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"
BUILD()
{
	# no-op
	true
}

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

