# $Id: Portfile,v 1.2 2005/04/01 20:00:35 mww Exp $

PortSystem 1.0

name			4th
version			34e
categories		lang
platforms		darwin
maintainers		mww@opendarwin.org
description		very small Forth compiler
long_description	4tH is a very small Forth compiler that can create \
					bytecode, C-embeddable bytecode, standalone executables, \
					but also works fine as a scripting language. It supports \
					over 85% of the ANS Forth CORE wordset and features \
					conditional compilation, pipes, files, assertions, forward \
					declarations, recursion, include files, etc.

homepage		http://www.xs4all.nl/~thebeez/4tH/foldtree.html
#master_sites	http://www.xs4all.nl/~thebeez/4tH/
master_sites	opendarwin
checksums		md5 a9d8157d09709b35298b73208873045a

worksrcdir		${name}-${version}/sources

use_configure	no

build.dir		${workpath}/c/4th.lib
build.args		-f Makefile.OSX

destroot	{
	xinstall -m 755 ${build.dir}/4th ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	file copy ${workpath}/4th ${destroot}${prefix}/share/doc/${name}/examples
}
