# $Id: Portfile,v 1.2 2005/04/21 15:57:48 jberry Exp $

PortSystem 1.0

name	   fbg
version	   0.9
categories	games aqua
platforms	darwin
maintainers	jmpp@opendarwin.org

description	Puzzle game similar to Tetris but with improved graphics.
long_description	Falling Block Game is a puzzle game that is similar to the Hasbro \
			classic, Tetris. Many such games have been released for a variety \
			of platforms, but most have passable graphics or poor gameplay/piece \
			control.

homepage	http://fbg.sourceforge.net/
master_sites	sourceforge
checksums	md5 82db64d84b6172f5676fcff69d533881

depends_lib	port:libsdl \
		port:physfs

patchfiles	patch-configure.diff \
		patch-all_OpenGL.diff \
		patch-Makefile.in.diff

configure.env	CFLAGS="-I/System/Library/Frameworks/OpenGL.framework/Headers -I${prefix}/include" \
		LDFLAGS="-L${prefix}/lib -lphysfs"
configure.args	--mandir=${prefix}/share/man --disable-sdltest --with-sdl-prefix=${prefix}

build.env	CFLAGS="-I/System/Library/Frameworks/OpenGL.framework/Headers -I${prefix}/include" \
		LDFLAGS="-L${prefix}/lib -lphysfs"
