SUMMARY="DotGNU Portable .NET suite"
DESCRIPTION="DotGNU Portable.NET is a portable suite of tools (including a C# \
compiler, assembler, and runtime engine) for non-Microsoft platforms.  It is \
part of the DotGNU meta-project" 
HOMEPAGE="http://www.dotgnu.org/pnet.html" 
SOURCE_URI="http://download.savannah.gnu.org/releases/dotgnu-pnet/pnet-0.8.0.tar.gz"
CHECKSUM_SHA256="f1340ae3567a5f05729d9d201bd719268ceca07bde4f62c58a92abfda64551bb"
REVISION="1"
LICENSE="GNU GPL v1"
COPYRIGHT="2001-2006 Southern Storm Software, Pty Ltd.
	1984-2002 Free Software Foundation, Inc.
	2003 Gopal.V
	2002 FSF INDIA
	2002 Richard Baumann
	"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	pnet = $portVersion
	lib:libpnet = $portVersion
	cmd:al
	cmd:cli_unknown_ar
    cmd:cli_unknown_cpp
	cmd:cli_unknown_gcc
	cmd:cli_unknown_ranlib
	cmd:cli_unknown_size
	cmd:cli_unknown_strip
	cmd:clrwrap
	cmd:csant
	cmd:cscc
	cmd:cscc_cpp
	cmd:csdoc
	cmd:csdoc2hier
	cmd:csdoc2html
	cmd:csdoc2texi
	cmd:cssrc2html
	cmd:ilalink
	cmd:ilasm
	cmd:ildasm
	cmd:ildd
	cmd:ilfind
	cmd:ilgac
	cmd:ilheader
	cmd:ilnative
	cmd:ilranlib
	cmd:ilrun
	cmd:ilsize
	cmd:ilstrip
	cmd:ilverify
	cmd:resgen
	"

PROVIDES_devel="
	devel:libILAsm = $portVersion compat >= 0
	devel:libILCodeGen = $portVersion compat >= 0
	devel:libILDumpAsm = $portVersion compat >= 0
	devel:libILEngine = $portVersion compat >= 0
	devel:libILImage = $portVersion compat >= 0
	devel:libILLink = $portVersion compat >= 0
	devel:libILSupport = $portVersion compat >= 0
	"

REQUIRES="
	haiku
	lib:libncurses
	lib:zlib
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libncurses
	"

BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	cmd:ld
	cmd:find
	cmd:flex
	cmd:awk
	cmd:libtoolize
	cmd:aclocal
	cmd:autoconf
	cmd:autoconf
	cmd:treecc
	"

PATCHES="pnet-0.8.0.patchset"

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	autoconf
	automake --add-missing
	runConfigure ./configure --without-libffi --without-libgc --enable-shared \
				--libdir=$developLibDir
	make $jobArgs
}

INSTALL()
{
	make install
	
	packageEntries devel \
		$developDir \
		$manDir
}
