New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 38833

Show
Ignore:
Timestamp:
08/01/2008 01:43:24 (4 years ago)
Author:
ryandesign@…
Message:

ltris:

  • update to 1.0.12
  • rename ${worksrcpath}/src/sdl.h to sdl_.h to avoid confusion with ${prefix}/include/SDL.h on case-insensitive filesystems
  • add forgotten dependencies on gettext and libiconv
  • add necessary linker flags for gettext
  • avoid unsupported --mode argument to install (closes #13427)
  • use ${applications_dir} and don't assume /Applications/MacPorts
  • create symlink using tcl ln command instead of using system
  • enable parallel build
Location:
trunk/dports/games/ltris
Files:
4 added
1 modified

Legend:

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

    r30227 r38833  
    44 
    55name                    ltris 
    6 version                 1.0.9 
     6version                 1.0.12 
    77categories              games 
    88platforms               darwin 
    99maintainers             nomaintainer 
     10use_parallel_build      yes 
    1011description             Tetris clone with multiplayer and AI support. 
    1112long_description        LTris as a tetris clone which means you have a bowl \ 
     
    2223homepage                http://lgames.sourceforge.net/index.php?project=LTris 
    2324master_sites    sourceforge:lgames 
    24 checksums               md5 51f719df95636f42e00fe5a777610dd3 
     25checksums               md5     53b00c17a05c438602a52009e65ebde2 \ 
     26                                sha1    bc0b389b520053f97c6415b4d430f55784073c1b \ 
     27                                rmd160  017791be9d4e2dfc5a6b497e816b3482d22141c3 
    2528 
    26 depends_lib             port:libsdl port:libsdl_mixer 
     29depends_lib             port:libsdl port:libsdl_mixer \ 
     30                                port:gettext \ 
     31                                port:libiconv 
    2732 
    28 configure.cflags-append "-I${prefix}/include" 
     33post-extract { 
     34        move ${worksrcpath}/src/sdl.h ${worksrcpath}/src/sdl_.h 
     35} 
     36 
     37patchfiles              patch-sdl_.h.diff \ 
     38                                patch-libintl.diff \ 
     39                                patch-install-mode.diff 
     40 
    2941configure.args  --with-highscore-path=${prefix}/var/lib/games/ \ 
    3042                                --disable-sdltest 
    3143 
     44# Can be removed once MacPorts 1.7.0 is released 
     45if {![info exists applications_dir]} { 
     46    set applications_dir /Applications/MacPorts 
     47} 
     48 
    3249platform darwin { 
    3350        post-destroot { 
    34                 xinstall -m 755 -d ${destroot}/Applications/MacPorts/LTris.app/Contents/MacOS 
    35                 system "ln -sf ${prefix}/bin/ltris \ 
    36                         ${destroot}/Applications/MacPorts/LTris.app/Contents/MacOS/LTris" 
     51                xinstall -d ${destroot}${applications_dir}/LTris.app/Contents/MacOS 
     52                ln -s ${prefix}/bin/ltris \ 
     53                        ${destroot}${applications_dir}/LTris.app/Contents/MacOS/LTris 
    3754        } 
    3855}