# -*- 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
github.setup simh simh 3.9-0 v
checksums rmd160 a464e7d1fc6d58dd23a3ef623c3c018d5d60b050 \
sha256 e49b259b66ad6311ca9066dee3d3693cd915106a6938a52ed685cdbada8eda3b \
# MIT license with an added no-advertising clause
description A highly portable, multi-system simulator.
long_description The Computer History Simulation Project is a loose \
Internet-based collective of people interested in \
restoring historically significant computer hardware and \
software systems by simulation. The goal of the project is \
to create highly portable system simulators and to publish \
them as freeware on the Internet, with freely available \
copies of significant or representative software.
homepage http://simh.trailing-edge.com
# These lines are expected to go away once releases occur on GitHub
master_sites http://simh.trailing-edge.com/sources/
distname ${name}v[string map {. {}} ${version}]
reinplace -E -locale C "s|/usr(/lib/libpcap.A.dylib)|${prefix}\\1|g" ${worksrcpath}/sim_ether.c
set bindir ${worksrcpath}/BIN
build.args GCC="${configure.cc} [get_canonical_archflags]" \
INCPATH="${prefix}/include" \
LIBPATH="${prefix}/lib" \
foreach binary [glob -tails -directory ${bindir} *] {
xinstall -c -m 755 ${bindir}/${binary} ${destroot}${prefix}/bin/simh-${binary}
xinstall -d -m 755 ${destroot}${prefix}/share/simh/VAX
xinstall -c -m 644 ${worksrcpath}/VAX/ka655x.bin ${destroot}${prefix}/share/simh/VAX