# $Id: Portfile 54125 2009-07-21 18:36:59Z toby@macports.org $

PortSystem 1.0

name		    bzflag
version		    2.0.12
revision	    1
categories	    games
platforms	    darwin
maintainers	    phw openmaintainer
 
description	    3D tank game, multiplayer and internet gaming available
long_description    BZFlag is a free multiplayer multiplatform 3D tank \
		    battle game. The name stands for Battle Zone capture Flag.

homepage	    http://bzflag.org
master_sites	    http://ftp.bzflag.org/bzflag/ sourceforge

use_bzip2	    yes
checksums           md5     1228754cac3eaacd4badba5319f47b41 \
                    sha1    846e5cc2d94f9be2aac5960469c56d5ba9f4f565 \
                    rmd160  d7e808e1ff24d5e98dbe4f6fac26691b36d2da56

depends_lib	    port:curl port:libsdl port:c-ares

configure.args	    --mandir=${prefix}/share/man --libdir=${prefix}/lib/${name} \
		    --includedir=${prefix}/include/${name} \
		    --with-sdl-exec-prefix=${prefix}/ --disable-sdl-test \
		    --without-x

platform darwin 10 {
    depends_lib-delete port:libsdl
    #depends_lib-append port:libsdl-devel
    patchfiles patch-include__bzfSDL.h patch-src__platform__SDLDisplay.cxx
}
