Ticket #52537: Portfile-hatari-rev1-update.diff

File Portfile-hatari-rev1-update.diff, 3.7 KB (added by ken-cunningham-webuse, 8 years ago)

new portfile diff with fix and enhancements

  • emulators/hatari/Portfile

    old new  
    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# $Id: Portfile 153175 2016-09-26 08:58:52Z ryandesign@macports.org $
    33
    4 # tested on 10.4 PPC, 10.4 Intel, 10.5 Intel, 10.6 with LibCxx upgrade, 10.7, 10.11
     4# tested on 10.4 PPC/Intel, 10.5 PPC/Intel, 10.6, 10.6 with LibCxx upgrade, 10.7, 10.11
    55# hatari command line builds on all systems
    66# hatari python UI not needed with macOS GUI or command line versions - has unspecified python version so not included
    77# hatari macOS GUI builds on >= 10.6 as NSWindowDelegate is used and is only 10.6 onwards
    8 # macOS GUI does not build with gcc* or llvm-gcc-4.2
     8# hatari macOS GUI does not build with gcc*,  llvm-gcc-4.2, or older clang versions
    99# winuae works on all with gcc flag modification below.
    1010# SDL2 works on 10.6, 10.7 and 10.11, and likely all in between, but not 10.5
    1111
     12# revision 1            add portaudio dependency, add post-destroot to install default tos.img into app bundle, update clang requirements
     13
    1214PortSystem              1.0
    1315PortGroup               cmake 1.0
     16PortGroup               compiler_blacklist_versions 1.0
    1417
    1518name                    hatari
    1619version                 1.9.0
     20revision                1
    1721
    1822categories              emulators
    1923license                 GPL-2+
    2024platforms               darwin
    21 
    2225maintainers             slor.net:james gmail.com:ken.cunningham.webuse openmaintainer
     26
    2327description             Atari ST/STe/STfm emulator
    2428long_description        Hatari is an actively developed Atari ST/STe/STfm and Falcon emulator
    2529homepage                http://hatari.tuxfamily.org/
    26 master_sites            http://download.tuxfamily.org/hatari/${version}/
    2730
     31master_sites            http://download.tuxfamily.org/hatari/${version}/
    2832checksums               sha256  b2b56e6cbe7f8769a5e8b1d96599f392d9351b44cacf959da6905da06d30e992 \
    2933                        rmd160  0bc9bd21a81211ebf293911d9aaa5e9cb84c0400
    30 
    3134use_bzip2               yes
    3235
    3336cmake.out_of_source     yes
    3437
    3538depends_lib             port:libsdl \
    3639                        port:libpng \
    37                         port:readline
     40                        port:readline \
     41                        port:portaudio
    3842
    3943# 1. fix hard-coded installation directory for macOS bundle
    4044# 2. delete warning flag in winuae emulator code not supported by GCC42
     
    4852# default to install macOS GUI application, and then adjust for OS variations
    4953platform darwin {
    5054    if { ${os.major} <= 9 } {
    51         # 10.4 and 10.5 cannot build the macOS GUI at present
     55        # 10.4 and 10.5 cannot build the macOS GUI, even with newer clang versions.
    5256        default_variants       +commandlineapp
    53     }
    54    
    55     if { ${os.major} >= 10 } {
    56         # *gcc* does not appear to build the macOS GUI, so blacklist it on 10.6+
    57         compiler.blacklist     *gcc*
     57    } else {
     58        # *gcc* and older clang versions will not build the macOS GUI, so blacklist on 10.6+
     59        compiler.blacklist     *gcc* { clang < 211 }
    5860    }
    5961}
    6062
     
    8587    }
    8688}
    8789
    88 notes "
    89 A free ROM, EmuTOS, is available at
     90if {![variant_isset commandlineapp]} {
     91    # copy the included default tos.img into the app bundle if building the macOS GUI version
     92    post-destroot {
     93        copy ${worksrcpath}/src/tos.img ${destroot}${applications_dir}/hatari.app/Contents/Resources/tos.img
     94    }
     95}
    9096
    91     http://sourceforge.net/projects/emutos
    9297
     98notes "
    9399An online manual has been installed at
    94100
    95101    file://${prefix}/share/doc/hatari/manual.html