# $Id: Portfile,v 1.7 2006/03/20 16:00:28 mww Exp $

PortSystem 1.0

name			squirrel
version			2.1
categories		lang
platforms		darwin
maintainers		mww@opendarwin.org
description		high level imperative/OO programming language
long_description	Squirrel is a high level imperative/OO programming \
				language, designed to be a powerful scripting tool that fits \
				in the size, memory bandwidth, and real-time requirements of \
				applications like games.

homepage		http://www.squirrel-lang.org/
master_sites	sourceforge
distname		squirrel_2.1_stable
checksums		sha1 d3585bbfa97827c574885f1bf20c2b6205be4879
patchfiles		patch-squirrel-Makefile

worksrcdir		SQUIRREL2

use_configure	no

build.target	sq32

destroot	{
	xinstall -m 755 ${worksrcpath}/bin/sq ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/samples \
		${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 644 -W ${worksrcpath}/lib libsqstdlib.a libsquirrel.a \
		${destroot}${prefix}/lib
	xinstall -m 644 -W ${worksrcpath}/include sqstdaux.h sqstdblob.h sqstdio.h \
		sqstdmath.h sqstdstring.h sqstdsystem.h squirrel.h \
		${destroot}${prefix}/include
}

platform darwin 8 {
	build.env	CXX=/usr/bin/g++-4.0
}
