From b799e2ecbcd63b12644ebf2aa4d13cdff748ead9 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 29 Oct 2017 17:06:56 -0400 Subject: [PATCH] New package: simh-3.9 Closes: #8754 [via git-merge-pr] --- srcpkgs/simh/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/simh/template diff --git a/srcpkgs/simh/template b/srcpkgs/simh/template new file mode 100644 index 00000000000..b19ed83bbc3 --- /dev/null +++ b/srcpkgs/simh/template @@ -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 " +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 +}