Ticket #55335: hedgewars-0.9.23.diff

File hedgewars-0.9.23.diff, 4.2 KB (added by ryandesign (Ryan Carsten Schmidt), 6 years ago)
  • Portfile

     
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
    33PortSystem              1.0
    4 PortGroup               cmake 1.0
     4PortGroup               cmake 1.1
     5PortGroup               conflicts_build 1.0
    56
    67name                    hedgewars
    7 version                 0.9.22
    8 revision                1
     8version                 0.9.23
    99categories              games
    1010platforms               darwin
    1111license                 GPL-2
     
    1313
    1414description             Funny turn-based artillery game, featuring fighting Hedgehogs!
    1515long_description        ${description}
    16 homepage                https://www.hedgewars.org/
    1716
    18 master_sites            https://www.hedgewars.org/download/releases/
     17homepage                https://www.hedgewars.org
     18master_sites            ${homepage}/download/releases/
    1919use_bzip2               yes
    2020distname                ${name}-src-${version}
    2121
    22 checksums               rmd160  359fd026643e69446121b94ba301646812353c19 \
    23                         sha256  b699c8971ff420c3edd6533527ae2e99040f1e79207c9140826945bcf0e62192
     22checksums               rmd160  25919e6d8d170d2873e32ebacbe3811526edbd10 \
     23                        sha256  da2e4908042be56d1c0f3cb80a355bde7f0a49f675b050a03228cc3fb22aae89 \
     24                        size    173042171
    2425
    25 cmake.out_of_source     yes
    26 
    2726depends_build-append    port:pkgconfig \
    2827                        port:ghc \
    2928                        port:hs-vector \
    30                         port:hs-bytestring-show \
    3129                        port:hs-network \
    32                         port:hs-dataenc \
     30                        port:hs-random \
     31                        port:hs-mtl \
     32                        port:hs-sandi \
    3333                        port:hs-hslogger \
    3434                        port:hs-utf8-string \
    3535                        port:hs-sha \
    3636                        port:hs-entropy \
    3737                        port:hs-zlib \
    38                         port:hs-random
    39                    
     38                        port:hs-regex-tdfa
     39
    4040depends_lib-append      path:bin/ffmpeg:ffmpeg \
    4141                        port:libogg \
    42                         port:libsdl \
    43                         port:libsdl_image \
    44                         port:libsdl_ttf \
    45                         port:libsdl_mixer \
    46                         port:libsdl_net \
     42                        port:libsdl2 \
     43                        port:libsdl2_image \
     44                        port:libsdl2_ttf \
     45                        port:libsdl2_mixer \
     46                        port:libsdl2_net \
    4747                        port:zlib \
    4848                        port:libpng \
    4949                        port:glew \
    5050                        port:qt4-mac
    5151
     52conflicts_build         hs-dataenc \
     53                        keybinder
     54
    5255# don't use the sparkle selfupdate mechanism; use macports update process instead
    5356configure.args-append   -DNOAUTOUPDATE=1
    5457
     
    6063# use the pas2c converter to compile the pascal portions rather than fpc
    6164configure.args-append   -DBUILD_ENGINE_C:BOOL=ON
    6265
    63 # update two source files to enable building against the current ffmpeg variable and procedure names
    64 patchfiles-append       patch-0001-avwrapper-avframealloc-fix.diff
    65 patchfiles-append       patch-0002-LibavInteraction-fix.diff
    66 
    67 # the authours of this game have hardcoded the c++ library in several places and this needs
    68 # to be deleted for proper linking to the supporting dependencies on macports
    69 
    70 # replace the hard-coded link to libstdc++ in the hwc engine build script with proper link flags
    71 patchfiles-append       patch-0003-proj-hwc-CMakeLists-proper-link-flags.diff
    72 
    7366# remove the hard-coded link to libstdc++ in QTfrontend build script with proper link flags
    7467patchfiles-append       patch-0004-remove-hardcoded-stdlib-and-iokit-QTfrontend.diff
    7568
     
    8578    move ${worksrcpath}/man/hedgewars.6 ${destroot}${prefix}/share/man/man6/hedgewars.6
    8679}
    8780
    88 livecheck.url           https://www.hedgewars.org/download.html
     81livecheck.url           ${homepage}/download.html