Ticket #52537: Portfile-hatari-rev2-update-by-mojca.diff
File Portfile-hatari-rev2-update-by-mojca.diff, 3.4 KB (added by mojca (Mojca Miklavec), 8 years ago) |
---|
-
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 # $Id$3 2 4 # tested on 10.4 PPC, 10.4 Intel, 10.5 Intel, 10.6 with LibCxx upgrade, 10.7, 10.113 # tested on tested on 10.4 PPC/Intel, 10.5 PPC/Intel, 10.6, 10.6 with LibCxx upgrade, 10.7, 10.11 5 4 # hatari command line builds on all systems 6 5 # hatari python UI not needed with macOS GUI or command line versions - has unspecified python version so not included 7 6 # 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.27 # hatari macOS GUI does not build with gcc* or llvm-gcc-4.2 or older clang versions 9 8 # winuae works on all with gcc flag modification below. 10 9 # SDL2 works on 10.6, 10.7 and 10.11, and likely all in between, but not 10.5 11 10 12 11 PortSystem 1.0 13 12 PortGroup cmake 1.0 13 PortGroup compiler_blacklist_versions 1.0 14 14 15 15 name hatari 16 16 version 1.9.0 17 revision 1 17 18 18 19 categories emulators 19 20 license GPL-2+ … … cmake.out_of_source yes 34 35 35 36 depends_lib port:libsdl \ 36 37 port:libpng \ 37 port:readline 38 port:readline \ 39 port:portaudio 38 40 39 41 # 1. fix hard-coded installation directory for macOS bundle 40 42 # 2. delete warning flag in winuae emulator code not supported by GCC42 … … post-patch { 48 50 # default to install macOS GUI application, and then adjust for OS variations 49 51 platform darwin { 50 52 if { ${os.major} <= 9 } { 51 # 10.4 and 10.5 cannot build the macOS GUI at present52 default_variants +commandlineapp53 # 10.4 and 10.5 cannot build the macOS GUI, even with newer clang versions 54 default_variants +commandlineapp 53 55 } 54 55 56 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 variant sdl2 description "Use SDL2" { 58 configure.args-append -DENABLE_SDL2:BOOL=1 59 depends_lib-replace port:libsdl port:libsdl2 60 } 58 61 } 59 62 } 60 63 … … variant commandlineapp description "Install command line version only" { 72 75 73 76 variant winuae description "Enable WinUAE CPU core (experimental)" { 74 77 # we're bypassing the configure script in this portfile by using the cmake portgroup, so set these directly in cmake 75 configure.args-append -DENABLE_WINUAE_CPU:BOOL=178 configure.args-append -DENABLE_WINUAE_CPU:BOOL=1 76 79 } 77 80 78 platform darwin { 79 if { ${os.major} >= 10 } { 80 variant sdl2 description "Use SDL2" { 81 configure.args-append -DENABLE_SDL2:BOOL=1 82 depends_lib-delete port:libsdl 83 depends_lib-append port:libsdl2 84 } 81 if {![variant_isset commandlineapp]} { 82 compiler.blacklist *gcc* { clang < 211 } 83 # copy the included default tos.img into the app bundle if building the macOS GUI version 84 post-destroot { 85 copy ${worksrcpath}/src/tos.img ${destroot}${applications_dir}/hatari.app/Contents/Resources/tos.img 85 86 } 86 87 } 87 88 88 89 notes " 89 A free ROM, EmuTOS, is available at90 91 http://sourceforge.net/projects/emutos92 93 90 An online manual has been installed at 94 91 95 92 file://${prefix}/share/doc/hatari/manual.html