SUMMARY="The flat assembler"
DESCRIPTION="The flat assembler is a fast and efficient self-assembling x86 \
assembler for DOS, Windows Linux and Unix operating systems. \
Currently it supports x86 and x86-64 instructions sets with \
MMX, 3DNow!, SSE up to SSE4, AVX, AVX2 and XOP extensions, \
can produce output in plain binary, MZ, PE, COFF or ELF format. \
It includes the powerful but easy to use macroinstruction \
support and does multiple passes to optimize the instruction \
codes for size. The flat assembler is self-compilable and the \
complete source code is included."
HOMEPAGE="http://flatassembler.net"
COPYRIGHT="2004-2021 Tomasz Grysztar"
LICENSE="fasm"
REVISION="1"
SOURCE_URI="http://flatassembler.net/fasm-$portVersion.tar.gz"
CHECKSUM_SHA256="6e7a4b5f222011eac5edbab0d6dabb9a193d1ce31ccf9b98c0691c52b5b4bbeb"
SOURCE_DIR="fasm"

ARCHITECTURES="?all x86_gcc2 x86"

PROVIDES="
	fasm = $portVersion
	cmd:fasm = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	"

BUILD()
{
	gcc fasm.o -o fasm
}

INSTALL()
{
	mkdir -p $binDir
	cp fasm $binDir
}
