# $Id: Portfile 36667 2008-05-10 07:29:31Z jmr@macports.org $

PortSystem 1.0

name			squirrel
version			2.1
categories		lang
platforms		darwin
maintainers		nomaintainer
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
patch.args-append -l

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-append    CXX=/usr/bin/g++-4.0
}
platform darwin 9 {
	build.env-append    CXX=/usr/bin/g++-4.0
}
