Ticket #52188: widelands-18-update.diff

File widelands-18-update.diff, 2.5 KB (added by kenneth.f.cunningham@…, 8 years ago)
  • Portfile

    old new  
    33
    44PortSystem          1.0
    55PortGroup           cmake 1.0
     6PortGroup           cxx11 1.0
    67
    78name                widelands
    8 version             build17
    9 revision            7
     9version             build18
     10revision            0
    1011categories          games
    1112platforms           darwin
    1213maintainers         nomaintainer
     
    2223                    widelands is heavily inspired by those two games.
    2324
    2425homepage            http://wl.widelands.org/
    25 master_sites        https://launchpad.net/${name}/${version}/build-17/+download/
     26master_sites        https://launchpad.net/${name}/${version}/build-18/+download/
    2627
    2728use_bzip2           yes
    2829distfiles           ${distname}-src${extract.suffix}
    29 worksrcdir          ${distname}-src/build
     30worksrcdir          ${distname}-src/
    3031
    31 checksums           rmd160  4ea81d21d3b3e02fc22194d1a39e8c08e05aaa44 \
    32                     sha256  be48b3b8f342a537b39a3aec2f7702250a6a47e427188ba3bece67d7d90f3cc5
     32checksums           rmd160  9af8cf7b8108475bec23ac94c2ac05f4d9a60d67 \
     33                    sha256  6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3
    3334
    3435depends_lib         port:libsdl \
    3536                    port:libsdl_image \
     
    3940                    port:libsdl_gfx \
    4041                    port:boost \
    4142                    port:glew \
    42                     port:lua
     43                    port:lua51
    4344
    44 # https://code.launchpad.net/~peter.waller/widelands/fix-clang-crashes/+merge/103991
    45 patchfiles          clang.patch
    46 patch.dir           ${worksrcpath}/..
    47 
    48 configure.args      ../ \
    49                     -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS"
     45cmake.out_of_source yes
     46configure.env       LUA_DIR=${prefix}/lib/lua-5.1
     47configure.args      -DLUA_INCLUDE_DIR="${prefix}/include/lua-5.1" -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS"
    5048
    5149pre-destroot {
    5250    xinstall -d ${destroot}${applications_dir}/Widelands.app/Contents/Resources \
    5351                ${destroot}${applications_dir}/Widelands.app/MacOS
    54     file copy ${worksrcpath}/../pics/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns
     52    file copy ${worksrcpath}/pics/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns
    5553    set data    " {\n\
    5654                CFBundleName = widelands;\n\
    5755                CFBundleDisplayName = Widelands;\n\