void-packages/srcpkgs/simh/template

36 lines
910 B
Bash

# Template file for 'simh'
pkgname=simh
version=3.12
revision=1
create_wrksrc=yes
build_wrksrc="sim"
hostmakedepends="unzip"
makedepends="libpcap-devel"
short_desc="Emulator for historical computers including PDP-11 and VAX"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://simh.trailing-edge.com/"
distfiles="http://simh.trailing-edge.com/sources/simhv${version/.}-3.zip"
checksum=b7177b23242c601f1619b4eed176107fcec2bfb6562ebf0850c1145576bae053
nopie=yes
CFLAGS="-fcommon"
do_build() {
mkdir -p BIN
make ${makejobs} all \
OS_CCDEFS="$CFLAGS -D_GNU_SOURCE" \
OS_LDFLAGS="$LDFLAGS -pthread -lm" \
NETWORK_OPT="-DUSE_NETWORK -isystem ${XBPS_CROSS_BASE}/usr/include -lpcap"
}
do_install() {
(
cd BIN
rm -r buildtools
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
}