SUMMARY="Pre-built binaries for the FPC build"
DESCRIPTION="Pre-built FPC binaries for Haiku i386."
HOMEPAGE="http://www.freepascal.org"
SOURCE_URI="ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/i386-haiku/fpc-2.6.0.i386-haiku.tar"
CHECKSUM_SHA256="abec33111d1d88dcce96cf26498b3687d53aa29494c6a8aada16b9b0625eef95"
LICENSE="
	GNU LGPL v3
	GNU GPL v3
	"
COPYRIGHT="1993-2013 by Florian Klaempfl"
REVISION="1"

DISABLE_SOURCE_PACKAGE=yes

BUILD_ACTIVATION_PHASE="INSTALL"

ARCHITECTURES="x86 !x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
	ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
    ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	fpc = $portVersion
	cmd:fpc = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	binutils
	cmd:tar
	"

SOURCE_DIR="fpc-2.6.0.i386-haiku"

BUILD()
{
	echo "Please put as prefix: $prefix"
	sh ./install.sh
}
INSTALL()
{
	true
}
