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="http://openwatcom.org"
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="ftp://ftp.openwatcom.org/source/open_watcom_$portVersion-src.tar.bz2"
CHECKSUM_SHA256="6d303327988ee2dda60cfabebf3f45a9758aee4da117d41cf3153fccb7e5e4bf"
SOURCE_DIR="OW19"
PATCHES="openwatcom-$portVersion.patchset"

PROVIDES="
	openwatcom$secondaryArchSuffix = $portVersion
"

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

BUILD()
{
	./build.sh
}

INSTALL()
{
	false
}

TEST()
{
	false
}
