37 lines
954 B
Bash
37 lines
954 B
Bash
# Template file for 'simh'
|
|
pkgname=simh
|
|
version=3.11
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}"
|
|
create_wrksrc=yes
|
|
build_wrksrc="sim"
|
|
hostmakedepends="libpcap-devel 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/.}-0.zip"
|
|
checksum=7c96d6b3779e9b50f3847812042aa27b2b3e0787c4ac762b2dc4830a9fb27adc
|
|
nopie=yes
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
do_build() {
|
|
mkdir -p BIN
|
|
make ${makejobs} all \
|
|
OS_CCDEFS="$CFLAGS -D_GNU_SOURCE" \
|
|
OS_LDFLAGS="$LDFLAGS -pthread -lm" \
|
|
USE_NETWORK=1 \
|
|
NETWORK_OPT="-DUSE_NETWORK -isystem ${XBPS_CROSS_BASE}/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
|
|
}
|