New package: simh-3.9

Closes: #8754 [via git-merge-pr]
This commit is contained in:
Daniel James 2017-10-29 17:06:56 -04:00 committed by Leah Neukirchen
parent 365f408180
commit b799e2ecbc

32
srcpkgs/simh/template Normal file
View file

@ -0,0 +1,32 @@
# Template file for 'simh'
pkgname=simh
version=3.9
revision=1
wrksrc=${pkgname}-${version}
create_wrksrc=yes
hostmakedepends="unzip"
makedepends="libpcap-devel SDL-devel"
short_desc="Emulator for historical computers including PDP-11 and VAX"
maintainer="Daniel James <djames@orcadian.net>"
license="MIT"
homepage="http://simh.trailing-edge.com/"
distfiles="http://simh.trailing-edge.com/sources/simhv39-0.zip"
checksum=e49b259b66ad6311ca9066dee3d3693cd915106a6938a52ed685cdbada8eda3b
do_build() {
mkdir -p BIN
make ${makejobs} all \
OS_CCDEFS="$CFLAGS" \
OS_LDFLAGS="$LDFLAGS -pthread -lm" \
USE_NETWORK=1 \
NETWORK_OPT='-DUSE_NETWORK -isystem /usr/include -lpcap'
}
do_install() {
(
cd BIN
for b in *; do vbin $b simh-$b; done
)
vinstall VAX/ka655x.bin 0644 usr/lib/simh
sed -n '/Copy/,/written/p' sim_defs.h >LICENSE
vlicense LICENSE
}