# -*- 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
# Compiles ok for x86_64 but crashes on launch after showing main window
description space invaders clone using SDL
long_description The Angryfez Army and their minions have pointed the \
ultimate battle at earth! Only Happyfez can save the \
homepage http://sourceforge.net/projects/ship84/
master_sites sourceforge:project/ship84/Shippy1984%20UNIX/Shippy1984%20v${version}
distname shipv${version}UNIX
checksums md5 06df2ae060fe4a076d7fa17a57205348
depends_lib port:libsdl \
# DOS to UNIX line endings so we can patch properly.
fs-traverse file ${worksrcpath} {
switch [file extension ${file}] {
reinplace "s|\r||g" ${file}
patchfiles patch-GNUmakefile.diff \
reinplace "s|data/|${prefix}/share/games/${name}/|g" \
${worksrcpath}/shipall.c \
${worksrcpath}/shippy.c \
build.args CC="${configure.cc} [get_canonical_archflags]"
xinstall -m 755 -d ${destroot}${prefix}/bin \
${destroot}${prefix}/share/games
xinstall -m 755 -s ${worksrcpath}/shippy ${destroot}${prefix}/bin
file copy ${worksrcpath}/data ${destroot}${prefix}/share/games/${name}
app.identifier net.sourceforge.ship84.Shippy1984
livecheck.type sourceforge
livecheck.regex /shipv(\[0-9.\]+)UNIX${extract.suffix}