Ticket #52188: widelands-18-update-rev1.diff

File widelands-18-update-rev1.diff, 3.1 KB (added by ken-cunningham-webuse, 8 years ago)
  • Portfile

    old new  
    33
    44PortSystem          1.0
    55PortGroup           cmake 1.0
    6 
     6PortGroup           cxx11 1.0
    77name                widelands
    8 version             build17
    9 revision            7
     8version             build18
     9revision            0
    1010categories          games
    1111platforms           darwin
    1212maintainers         nomaintainer
    1313license             GPL-2+
    1414
    1515description         open-source real-time strategy game inspired by Settlers
    16 
    1716long_description    Widelands is an open-source real-time strategy game. It \
    1817                    is built upon the SDL and other open source libraries and \
    1918                    is (and will always be) under heavy development. If you \
     
    2221                    widelands is heavily inspired by those two games.
    2322
    2423homepage            http://wl.widelands.org/
    25 master_sites        https://launchpad.net/${name}/${version}/build-17/+download/
    26 
     24master_sites        https://launchpad.net/${name}/${version}/build-18/+download/
    2725use_bzip2           yes
    2826distfiles           ${distname}-src${extract.suffix}
    29 worksrcdir          ${distname}-src/build
    30 
    31 checksums           rmd160  4ea81d21d3b3e02fc22194d1a39e8c08e05aaa44 \
    32                     sha256  be48b3b8f342a537b39a3aec2f7702250a6a47e427188ba3bece67d7d90f3cc5
     27worksrcdir          ${distname}-src/
     28checksums           rmd160  9af8cf7b8108475bec23ac94c2ac05f4d9a60d67 \
     29                    sha256  6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3
    3330
    3431depends_lib         port:libsdl \
    3532                    port:libsdl_image \
     
    3936                    port:libsdl_gfx \
    4037                    port:boost \
    4138                    port:glew \
    42                     port:lua
     39                    port:lua51
    4340
    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"
     41cmake.out_of_source yes
     42configure.env       LUA_DIR=${prefix}/lib/lua-5.1
     43configure.args      -DLUA_INCLUDE_DIR="${prefix}/include/lua-5.1" -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS"
    5044
    5145pre-destroot {
    5246    xinstall -d ${destroot}${applications_dir}/Widelands.app/Contents/Resources \
    5347                ${destroot}${applications_dir}/Widelands.app/MacOS
    54     file copy ${worksrcpath}/../pics/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns
     48    file copy ${worksrcpath}/pics/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns
    5549    set data    " {\n\
    5650                CFBundleName = widelands;\n\
    5751                CFBundleDisplayName = Widelands;\n\
     
    6862    puts -nonewline $fileId $data
    6963    close $fileId
    7064}
     65
     66notes \
     67"On some systems, Widelands might demonstrate button artifacts or other visual \
     68 \nanomalies. If this occurs, consider editing ~/.widelands/config to change \
     69 \nthe opengl setting to opengl=\"false.\""
     70