# $Id: Portfile,v 1.4 2005/10/19 08:10:08 blb Exp $

PortSystem			1.0
name				freesci
version				0.3.4c
categories			emulators
maintainers			blb@opendarwin.org
description			Interpreter for SCI (old Sierra Online) games
long_description \
	FreeSCI is a portable interpreter for SCI games, such as the Space \
	Quest series (starting with SQ3) or Leisure Suit Larry (2 and sequels). \
	FreeSCI is still incomplete.

platforms			darwin

homepage			http://freesci.linuxgames.com/
master_sites		http://www-plan.cs.colorado.edu/creichen/freesci/ \
					http://teksolv.de/~jameson/
use_bzip2			yes

checksums			md5 2ec3240460316cb2901371d07662b1c4

configure.env		CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"

configure.args		--datadir=${prefix}/share/${name} \
					--mandir=${prefix}/share/man \
					--with-x --without-sdl

depends_lib			lib:libX11.6:XFree86

variant sdl {
	depends_lib				lib:libSDL:libsdl
	configure.args-delete	--with-x --without-sdl
	configure.args-append	--without-x --with-sdl-prefix=${prefix}
}

