# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 114119 2013-11-29 22:31:11Z jmr@macports.org $

PortSystem          1.0
PortGroup           app 1.0

name                sdl_sopwith
version             1.8.0
categories          games
platforms           darwin
license             GPL-2+
maintainers         nomaintainer
description         Classic biplane shooter
long_description    This is a port of the classic computer game \"Sopwith\" \
                    to run on modern computers and operating systems.
homepage            http://sdl-sopwith.sourceforge.net/

master_sites        sourceforge:project/sdl-sopwith/${name}/${version}/
distname            sopwith-${version}
checksums           md5 1ba378f9b5779ec932e26e6b6d67b870 \
                    sha1 0ed85abc9d1b3be4b1be8b8b71005e44c4a66bc3 \
                    rmd160 b56d59bd776e05df9c45124d256e55dbe1f18264

depends_lib         port:libsdl

patchfiles          src_Makefile.in.patch src_sdl_video.c.patch \
                    src_swmain.c.patch
post-patch {
    file delete ${worksrcpath}/config.cache ${worksrcpath}/config.log \
                ${worksrcpath}/config.status
}

configure.args      --disable-sdltest

app.name            Sopwith
app.executable      sopwith

livecheck.regex     /sopwith-(\[0-9.\]+)${extract.suffix}
