SUMMARY="A simple assember and linker for 8086 - 80386 machine code."
DESCRIPTION="
as86 is an assembler for the 8086..80386 processors, it's syntax is closer \
to the intel/microsoft form rather than the more normal generic form of \
the unix system assembler.
The linker understands only the object files produced by the as86 assembler, \
it can link them into either an impure or a separate I&D executable.
"
HOMEPAGE="http://v3.sk/~lkundrak/dev86/" 
COPYRIGHT="
	 1994 Bruce Evans
	 1999 Robert de Bath
"
LICENSE="GNU GPL v2"
SRC_URI="http://v3.sk/~lkundrak/dev86/$portVersionedName.tar.gz"
CHECKSUM_SHA256="021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738"
REVISION="1"

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

PATCHES="${portVersionedName}.patchset"

PROVIDES="
	bin86$secondaryArchSuffix = $portVersion compat >= 0
	cmd:as86
	cmd:ld86
	cmd:nm86
	cmd:objdump86
	cmd:size86
	"

REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	"

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

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $binDir $manDir
	make BINDIR=$binDir MANDIR=$manDir install
}
