SUMMARY="C/C++ compiler targetting DOS and Win16/32 machines"
DESCRIPTION="
Open Watcom is a project of the open source community to maintain and enhance \
the Watcom C, C++, and Fortran cross compilers and tools. An Open Source \
license from Sybase allows free commercial and non-commercial use of Open\
Watcom."
HOMEPAGE="https://github.com/open-watcom/open-watcom-v2"
LICENSE="Open Watcom Public Licence v1.0"
COPYRIGHT="1983-2002 Sybase, Inc."
REVISION="1"

ARCHITECTURES=""
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
	# x86_gcc2 is fine as primary target architecture as long as we're building
	# for a different secondary architecture.
	ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"

SOURCE_URI="git@github.com:open-watcom/open-watcom-v2.git#ca9213e7973593caf73b50cc2185db8d1cef185c"
PATCHES="openwatcom-$portVersion.patchset"

PROVIDES="
	openwatcom$secondaryArchSuffix = $portVersion
"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:awk
	cmd:cc$secondaryArchSuffix
	cmd:dosbox$secondaryArchSuffix
	cmd:make
	cmd:which
"

BUILD()
{
	. ./setvars.sh
	./build.sh
}

INSTALL()
{
	false
}

TEST()
{
	false
}
