Ticket #52537: Portfile-hatari-rev1-update.diff
File Portfile-hatari-rev1-update.diff, 3.7 KB (added by ken-cunningham-webuse, 8 years ago) |
---|
-
emulators/hatari/Portfile
old new 1 1 # -*- 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 2 2 # $Id: Portfile 153175 2016-09-26 08:58:52Z ryandesign@macports.org $ 3 3 4 # tested on 10.4 PPC , 10.4 Intel, 10.5 Intel, 10.6 with LibCxx upgrade, 10.7, 10.114 # tested on 10.4 PPC/Intel, 10.5 PPC/Intel, 10.6, 10.6 with LibCxx upgrade, 10.7, 10.11 5 5 # hatari command line builds on all systems 6 6 # hatari python UI not needed with macOS GUI or command line versions - has unspecified python version so not included 7 7 # 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.28 # hatari macOS GUI does not build with gcc*, llvm-gcc-4.2, or older clang versions 9 9 # winuae works on all with gcc flag modification below. 10 10 # SDL2 works on 10.6, 10.7 and 10.11, and likely all in between, but not 10.5 11 11 12 # revision 1 add portaudio dependency, add post-destroot to install default tos.img into app bundle, update clang requirements 13 12 14 PortSystem 1.0 13 15 PortGroup cmake 1.0 16 PortGroup compiler_blacklist_versions 1.0 14 17 15 18 name hatari 16 19 version 1.9.0 20 revision 1 17 21 18 22 categories emulators 19 23 license GPL-2+ 20 24 platforms darwin 21 22 25 maintainers slor.net:james gmail.com:ken.cunningham.webuse openmaintainer 26 23 27 description Atari ST/STe/STfm emulator 24 28 long_description Hatari is an actively developed Atari ST/STe/STfm and Falcon emulator 25 29 homepage http://hatari.tuxfamily.org/ 26 master_sites http://download.tuxfamily.org/hatari/${version}/27 30 31 master_sites http://download.tuxfamily.org/hatari/${version}/ 28 32 checksums sha256 b2b56e6cbe7f8769a5e8b1d96599f392d9351b44cacf959da6905da06d30e992 \ 29 33 rmd160 0bc9bd21a81211ebf293911d9aaa5e9cb84c0400 30 31 34 use_bzip2 yes 32 35 33 36 cmake.out_of_source yes 34 37 35 38 depends_lib port:libsdl \ 36 39 port:libpng \ 37 port:readline 40 port:readline \ 41 port:portaudio 38 42 39 43 # 1. fix hard-coded installation directory for macOS bundle 40 44 # 2. delete warning flag in winuae emulator code not supported by GCC42 … … 48 52 # default to install macOS GUI application, and then adjust for OS variations 49 53 platform darwin { 50 54 if { ${os.major} <= 9 } { 51 # 10.4 and 10.5 cannot build the macOS GUI at present55 # 10.4 and 10.5 cannot build the macOS GUI, even with newer clang versions. 52 56 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 } 58 60 } 59 61 } 60 62 … … 85 87 } 86 88 } 87 89 88 notes " 89 A free ROM, EmuTOS, is available at 90 if {![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 } 90 96 91 http://sourceforge.net/projects/emutos92 97 98 notes " 93 99 An online manual has been installed at 94 100 95 101 file://${prefix}/share/doc/hatari/manual.html