New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83237


Ignore:
Timestamp:
08/28/11 23:46:18 (4 years ago)
Author:
ryandesign@…
Message:

rocksndiamonds:

  • use app portgroup
  • add app icon
  • indicate license
  • use the correct build_arch
  • remove erroneous dependency on libranlib which is not used
  • disable parallel build which sometimes fails
  • do reinplacing in post-patch phase not in configure phase
Location:
trunk/dports/games/rocksndiamonds
Files:
1 added
1 edited

Legend:

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

    r69312 r83237  
    33 
    44PortSystem 1.0 
     5PortGroup               app 1.0 
    56 
    67name                    rocksndiamonds 
    78version                 3.3.0.1 
     9revision                1 
    810categories              games 
    911platforms               darwin 
    1012maintainers             phw openmaintainer 
     13license                 GPL-2+ 
     14 
    1115description             Arcade style game Boulderdash or Emerald Mine clone 
    1216long_description        Arcade style game Boulderdash (C64) or Emerald Mine \ 
     
    2832                                port:libsdl_image \ 
    2933                                port:libsdl_mixer \ 
    30                                 port:libsdl_net \ 
    31                 port:libranlib 
     34                                port:libsdl_net 
    3235 
    33 # libranlib is not universal 
    34 universal_variant       no 
    35  
    36 configure       { 
     36post-patch { 
    3737        reinplace "s|_PREFIX_|${prefix}|g" ${worksrcpath}/Makefile 
    3838} 
    3939 
     40use_configure   no 
     41 
     42# ranlib: archive member: game_sp.a(main.o) size too large (archive member extends past the end of the file) 
     43use_parallel_build      no 
     44 
    4045build.target    sdl 
    41 build.args              CC=${configure.cc} 
     46build.args              CC="${configure.cc} [get_canonical_archflags]" 
    4247 
    4348destroot        { 
     
    4954} 
    5055 
    51 platform macosx { 
    52         post-destroot   { 
    53                 file mkdir ${destroot}${applications_dir}/RocksnDiamonds.app/Contents/MacOS 
    54                 ln -s ${prefix}/bin/rocksndiamonds \ 
    55                         ${destroot}${applications_dir}/RocksnDiamonds.app/Contents/MacOS/RocksnDiamonds 
    56         } 
    57 } 
     56app.name                Rocks'n'Diamonds 
     57#app.icon               graphics/gfx_classic/rocks_icon_32x32.pcx 
     58app.icon                ${filespath}/rocks_icon_32x32.png 
     59 
     60# convert work/rocksndiamonds-*/graphics/gfx_classic/rocks_icon_32x32.pcx -transparent '#000000' /tmp/rocks.png 
     61# pngcrush /tmp/rocks.png files/rocks_icon_32x32.png 
    5862 
    5963livecheck.type  regex 
Note: See TracChangeset for help on using the changeset viewer.