summaryrefslogtreecommitdiff
path: root/emulators/spim/Makefile
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1996-10-30 01:58:56 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1996-10-30 01:58:56 +0000
commit196a4cf5d1719a0c0602ce2b652e9614b4e2d915 (patch)
tree27c22f9e4dc3cf820ba1e73ac2607ccf559f9a4b /emulators/spim/Makefile
parentdistfile changed (diff)
New port, spim/xspim, a MIPS R2000 RISC Simulator
Notes
Notes: svn path=/head/; revision=4193
Diffstat (limited to 'emulators/spim/Makefile')
-rw-r--r--emulators/spim/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/emulators/spim/Makefile b/emulators/spim/Makefile
new file mode 100644
index 000000000000..b3bedcb45400
--- /dev/null
+++ b/emulators/spim/Makefile
@@ -0,0 +1,48 @@
+# ex:ts=8
+# New ports collection makefile for: spim
+# Version required: 5.8
+# Date created: Mon Oct 28, 1996
+# Whom: David O'Brien (obrien@cs.ucdavis.edu)
+#
+# $Id$
+#
+
+DISTNAME= spim
+PKGNAME= spim-5.8
+CATEGORIES+= emulators
+MASTER_SITES= ftp://ftp.cs.wisc.edu/pub/spim/
+
+MAINTAINER= obrien@cs.ucdavis.edu
+
+PREFIX?= ${LOCALBASE}
+NO_WRKSUBDIR= yes
+HAS_CONFIGURE= yes
+CONFIGURE_SCRIPT= Configure
+USE_IMAKE= yes
+XMKMF= xmkmf
+ALL_TARGET= y.tab.c depend cl-spim cl-xspim
+
+
+pre-configure:
+ @${RM} -f ${WRKSRC}/y.tab.*
+
+pre-install:
+ @${MKDIR} -p ${PREFIX}/share/spim && chmod a+rx ${PREFIX}/share/spim
+
+post-install:
+ [ -e ${PREFIX}/bin/cl-spim ] && \
+ /bin/ln -f ${PREFIX}/bin/cl-spim ${PREFIX}/bin/spim
+ [ -e ${PREFIX}/bin/cl-xspim ] && \
+ /bin/ln -f ${PREFIX}/bin/cl-xspim ${PREFIX}/bin/xspim
+.if !defined(NOPORTDOCS)
+ @${ECHO} "Installing spim/xspim documentation"
+ @${MKDIR} -p ${PREFIX}/share/doc/spim \
+ && chmod a+rx ${PREFIX}/share/doc/spim
+ ${INSTALL_DATA} ${WRKSRC}/Documentation/spim.ps \
+ ${PREFIX}/share/doc/spim
+ ${INSTALL_DATA} ${WRKSRC}/Documentation/cycle.ps \
+ ${PREFIX}/share/doc/spim
+ gzip -9nf ${PREFIX}/share/doc/spim/*.ps
+.endif
+
+.include <bsd.port.mk>