New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82712


Ignore:
Timestamp:
08/18/11 14:04:42 (4 years ago)
Author:
ryandesign@…
Message:

ship84:

  • use app portgroup
  • use port:-style dependencies
  • build 32-bit so it doesn't crash
  • ensure we're UsingTheRightCompiler and archs
  • add universal variant
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/ship84/Portfile

    r82705 r82712  
    33 
    44PortSystem          1.0 
     5PortGroup           app 1.0 
    56 
    67name                ship84 
    78version             1.3.3.7 
    8 revision            1 
     9revision            2 
    910categories          games 
    1011platforms           darwin 
    1112maintainers         nomaintainer 
     13 
     14# Compiles ok for x86_64 but crashes on launch after showing main window 
     15supported_archs     i386 ppc 
    1216 
    1317description         space invaders clone using SDL 
     
    2428 
    2529checksums           md5     06df2ae060fe4a076d7fa17a57205348 
     30 
     31depends_lib         port:libsdl \ 
     32                    port:libsdl_mixer 
    2633 
    2734extract.mkdir       yes 
     
    4451                    patch-shippy.c.diff 
    4552 
    46 depends_lib         bin:sdl-config:libsdl \ 
    47                     lib:libSDL_mixer:libsdl_mixer 
    48  
    49 configure { 
     53post-patch { 
    5054    reinplace "s|data/|${prefix}/share/games/${name}/|g" \ 
    5155        ${worksrcpath}/shipall.c \ 
     
    5458} 
    5559 
    56 build.type          gnu 
    57 build.args          -f GNUmakefile 
     60use_configure       no 
     61 
     62variant universal {} 
     63 
     64build.args          CC="${configure.cc} [get_canonical_archflags]" 
    5865 
    5966destroot { 
     
    6471} 
    6572 
    66 platform darwin { 
    67     post-destroot { 
    68         xinstall -d -m 755 ${destroot}/Applications/MacPorts/Ship84.app/Contents/MacOS 
    69         system "ln -sf ${prefix}/bin/shippy \ 
    70             ${destroot}/Applications/MacPorts/Ship84.app/Contents/MacOS/Ship84" 
    71     } 
    72 } 
     73app.name            Shippy1984 
     74app.executable      shippy 
     75app.identifier      net.sourceforge.ship84.Shippy1984 
    7376 
    7477livecheck.type      sourceforge 
Note: See TracChangeset for help on using the changeset viewer.