source: trunk/dports/games/ship84/Portfile

Last change on this file was 82713, checked in by ryandesign@…, 6 years ago

ship84: license; installs_libs no

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 82713 2011-08-18 21:15:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           app 1.0
6
7name                ship84
8version             1.3.3.7
9revision            2
10categories          games
11platforms           darwin
12maintainers         nomaintainer
13license             GPL-2+
14installs_libs       no
15
16# Compiles ok for x86_64 but crashes on launch after showing main window
17supported_archs     i386 ppc
18
19description         space invaders clone using SDL
20
21long_description    The Angryfez Army and their minions have pointed the \
22                    ultimate battle at earth! Only Happyfez can save the \
23                    day!
24
25homepage            http://sourceforge.net/projects/ship84/
26master_sites        sourceforge:project/ship84/Shippy1984%20UNIX/Shippy1984%20v${version}
27
28distname            shipv${version}UNIX
29use_zip             yes
30
31checksums           md5     06df2ae060fe4a076d7fa17a57205348
32
33depends_lib         port:libsdl \
34                    port:libsdl_mixer
35
36extract.mkdir       yes
37
38post-extract {
39    # DOS to UNIX line endings so we can patch properly.
40    fs-traverse file ${worksrcpath} {
41        switch [file extension ${file}] {
42            .c -
43            .h -
44            .txt {
45                reinplace "s|\r||g" ${file}
46            }
47        }
48    }
49}
50
51patchfiles          patch-GNUmakefile.diff \
52                    patch-shipsdl.c.diff \
53                    patch-shippy.c.diff
54
55post-patch {
56    reinplace "s|data/|${prefix}/share/games/${name}/|g" \
57        ${worksrcpath}/shipall.c \
58        ${worksrcpath}/shippy.c \
59        ${worksrcpath}/shipsdl.c
60}
61
62use_configure       no
63
64variant universal {}
65
66build.args          CC="${configure.cc} [get_canonical_archflags]"
67
68destroot {
69    xinstall -m 755 -d ${destroot}${prefix}/bin \
70        ${destroot}${prefix}/share/games
71    xinstall -m 755 -s ${worksrcpath}/shippy ${destroot}${prefix}/bin
72    file copy ${worksrcpath}/data ${destroot}${prefix}/share/games/${name}
73}
74
75app.name            Shippy1984
76app.executable      shippy
77app.identifier      net.sourceforge.ship84.Shippy1984
78
79livecheck.type      sourceforge
80livecheck.regex     /shipv(\[0-9.\]+)UNIX${extract.suffix}
Note: See TracBrowser for help on using the repository browser.