# -*- 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 82694 2011-08-18 14:12:11Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               app 1.0

name                    starfighter
version                 1.1-1
revision                2
categories              games
platforms               darwin
maintainers             nomaintainer
license                 GPL-2+

description             2D Space Shooter

long_description        2D Space Shooter\; after decades of war one company, \
                        who had gained powerful supply both sides with \
                        weaponary, steps forwards and crushes both warring \
                        factions in one swift movement. Using far superior \
                        weaponary and AI craft, the company was completely \
                        unstoppable and now no one can stand in their way. \
                        Thousands began to perish under the iron fist of the \
                        company. The people cried out for a saviour, for \
                        someone to light this dark hour... and someone did.

homepage                http://www.parallelrealities.co.uk/projects/starfighter.php
master_sites            http://www.sourcefiles.org/Games/Arcade/
checksums               md5     6a4b704dbc83c7403842b936f95ee958
patchfiles              patch-makefile.diff

post-extract {
    file rename ${workpath}/starfighter-1.1 ${worksrcpath}
}

depends_lib             port:libsdl \
                        port:libsdl_mixer \
                        port:libsdl_image

use_configure           no

variant universal {}

build.args              PREFIX=${prefix} \
                        CXX="${configure.cxx} [get_canonical_archflags]"

destroot.destdir        PREFIX=${destroot}${prefix}

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/docs/LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}

app.icon                ${filespath}/alienDevice.png
app.identifier          uk.co.parallelrealities.${app.name}
