# -*- 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 PortSystem 1.0 PortGroup github 1.0 github.setup cebix macemu 2e302d60a337daa252c6992335e6365a9beac83f version 20180225 checksums rmd160 b7240735e8ca7ad7a263a4bb69935ad68b34a878 \ sha256 dc4be91e7357b9f22343dba0de7d0d724d12031798fe7947a74074526a55b9e4 \ size 2196035 epoch 1 # we need a name here as the github-supplied name is not correct for this port name sheepshaver # at present sheepshaver is best built as 32bit, so we we build the gtk2 gui # separately as a subport to avoid expensively rebuilding all of # gtk2 and all the dependencies as +universal subport sheepshaver-gui {} categories emulators license GPL-2+ platforms darwin maintainers nomaintainer homepage http://sheepshaver.cebix.net/ worksrcdir ${distname}/SheepShaver/src/Unix configure.cmd ./autogen.sh configure.optflags -O3 patchfiles-append patch-001-sheepshaver-makefile-in-ditto-patch.diff configure.cppflags-append -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1 depends_build port:autoconf \ port:pkgconfig \ port:automake # to fix an errant header owned by arpack that also provides debug.h (not a great name, arpack!) # force finding our includes first configure.cppflags-prepend -I${worksrcpath}/../include set sheepshaver_dir /SheepShaver universal_variant no if {${subport} eq "sheepshaver"} { # conflicts sheepshaver-devel (to be added later) description Opensource PPC Mac emulator. long_description \ Longstanding PowerPC Macintosh emulator. Requires an appropriate Macintosh ROM image and a copy \ of Mac OS (8.1 through 9.02), and \ these are not supplied with this port. The emulator will be installed into your \ MacPorts Applications folder. variant SixtyFour description "Build 64 bit." {} platform darwin i386 { supported_archs i386 # no need for gui to be same architecture as the emulator depends_skip_archcheck-append \ sheepshaver-gui depends_lib port:libsdl \ port:sheepshaver-gui configure.args --disable-vosf \ --without-esd \ --without-mon \ --enable-sdl-video \ --enable-sdl-audio \ --enable-jit-compiler \ --enable-standalone-gui \ --with-gtk=no configure.ldflags-append \ -Wl,-no_pie if {[variant_isset SixtyFour]} { supported_archs x86_64 } } platform darwin powerpc { # untested at present supported_archs ppc pre-fetch { ui_error "${name} is presently untested on PowerPC Mac systems." return -code error "incompatible processor" } } build.target SheepShaver SheepShaver_app post-destroot { file mkdir ${destroot}${applications_dir}${sheepshaver_dir} copy ${filespath}/SheepShaver_idiosyncracies.txt ${destroot}${applications_dir}${sheepshaver_dir} copy ${worksrcpath}/SheepShaver.app ${destroot}${applications_dir}${sheepshaver_dir} file delete ${destroot}${prefix}/bin/SheepShaver } } elseif {${subport} eq "sheepshaver-gui"} { name sheepshaver-gui # conflicts sheepshaver-gui-devel (to be added later) description Graphical user interface to configure SheepShaver. long_description ${description} depends_lib path:lib/pkgconfig/gtk+-2.0.pc:gtk2 configure.args --disable-vosf \ --without-esd \ --without-mon \ --enable-standalone-gui \ --with-gtk=gtk2 build.target SheepShaverGUI_app post-destroot { file mkdir ${destroot}${applications_dir}${sheepshaver_dir} copy ${worksrcpath}/SheepShaverGUI.app ${destroot}${applications_dir}${sheepshaver_dir} # gui target insists on installing some of the SheepShaver files, which conflicts with SheepShaver subport # so we manually delete these to avoid a conflict file delete ${destroot}${prefix}/bin/SheepShaver file delete ${destroot}${prefix}/share/SheepShaver/keycodes file delete ${destroot}${prefix}/share/SheepShaver/tunconfig file delete ${destroot}${prefix}/share/man/man1/SheepShaver.1.gz file delete ${destroot}${prefix}/share/man/man1/SheepShaver.1 } }