From c8c12fac5dc05b07dbfb7176b077b39b4f42dd95 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Tue, 10 Nov 2015 00:23:18 -0500 Subject: [PATCH] New package: spim-8.0 Uses the tarball from the creator's homepage, since there is no tarball on the project homepage. --- srcpkgs/spim/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/spim/template diff --git a/srcpkgs/spim/template b/srcpkgs/spim/template new file mode 100644 index 0000000000..f4eff05145 --- /dev/null +++ b/srcpkgs/spim/template @@ -0,0 +1,32 @@ +# Template file for spim + +pkgname="spim" +version="8.0" +revision=1 +homepage="http://spimsimulator.sourceforge.net/" +license="BSD" +distfiles="http://pages.cs.wisc.edu/~larus/SPIM/spim-${version}.tar.gz" +checksum="6f205776cb9fa112729507008843b289012190ed3131cbd426c610a58387ee4b" +maintainer="Toyam Cox " +hostmakedepends="flex" +short_desc="Self-contained simulator/debugger that runs MIPS32 programs" +do_configure() { + cd spim + sed '/Copyright (c) 1990-2010, James R. Larus./,+26!d' README > LICENSE + sed -i Makefile \ + -e 's:EXCEPTION_DIR = /usr/local/lib/spim:EXCEPTION_DIR = /usr/share/spim:' \ + -e 's:CFLAGS =:CFLAGS +=:' \ + -e 's:LDFLAGS =:LDFLAGS +=:' \ + -e 's:CC = gcc:CC ?= gcc:' + CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./Configure +} +do_install() { + vbin spim/spim + vman Documentation/spim.man spim.1 + vlicense spim/LICENSE LICENSE.BSD + vinstall CPU/exceptions.s 755 /usr/share/spim/ +} +do_build() { + cd spim + make +}