1996-10-30 02:58:56 +01:00
|
|
|
# ex:ts=8
|
2000-02-13 04:25:05 +01:00
|
|
|
# Ports collection makefile for: spim
|
|
|
|
# Date created: Mon Oct 28, 1996
|
|
|
|
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
1996-10-30 02:58:56 +01:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1996-10-30 02:58:56 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= spim
|
2006-07-17 12:12:07 +02:00
|
|
|
PORTVERSION= 7.2.1
|
2006-07-17 16:23:11 +02:00
|
|
|
PORTREVISION= 1
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= emulators
|
2002-06-21 08:58:52 +02:00
|
|
|
MASTER_SITES= http://www.cs.wisc.edu/~larus/SPIM/
|
1996-10-30 02:58:56 +01:00
|
|
|
|
2006-07-17 12:12:07 +02:00
|
|
|
MAINTAINER= jkoshy@FreeBSD.org
|
2006-07-17 12:25:04 +02:00
|
|
|
COMMENT= MIPS32 Simulator
|
1996-10-30 02:58:56 +01:00
|
|
|
|
2001-02-27 05:55:17 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2001-02-28 15:16:52 +01:00
|
|
|
|
2006-07-17 12:12:07 +02:00
|
|
|
MAN1= spim.1
|
|
|
|
|
|
|
|
PORTDOCS= cycle.ps.gz spim.ps.gz SPIM.html
|
|
|
|
PLIST_FILES= bin/spim %%DATADIR%%/exceptions.s
|
2004-12-30 09:39:33 +01:00
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
2006-07-17 12:12:07 +02:00
|
|
|
OPTIONS= GUI "Graphical user interface" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GUI)
|
|
|
|
USE_XLIB= yes
|
|
|
|
BUILD_DEPENDS+= imake:${X_IMAKE_PORT}
|
|
|
|
PLIST_FILES+= bin/xspim
|
|
|
|
MAN1+= xspim.1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
|
|
|
|
do-build:
|
2006-07-17 16:23:11 +02:00
|
|
|
cd ${WRKSRC}/spim && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
2006-07-17 12:12:07 +02:00
|
|
|
.if defined(WITH_GUI)
|
2006-07-17 16:23:11 +02:00
|
|
|
cd ${WRKSRC}/xspim && ${XMKMF} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
2006-07-17 12:12:07 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2006-07-17 16:23:11 +02:00
|
|
|
cd ${WRKSRC}/spim && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
|
|
${INSTALL_TARGET}
|
2006-07-17 12:12:07 +02:00
|
|
|
.if defined(WITH_GUI)
|
2006-07-17 16:23:11 +02:00
|
|
|
cd ${WRKSRC}/xspim && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
|
|
${INSTALL_TARGET}
|
2006-07-17 12:12:07 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/Documentation/xspim.man ${PREFIX}/man/man1/xspim.1
|
|
|
|
.endif
|
2004-12-30 09:39:33 +01:00
|
|
|
|
1996-10-30 02:58:56 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-12-30 09:39:33 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-07-17 12:12:07 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/cycle.ps ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/spim.ps ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Documentation/SPIM.html ${DOCSDIR}
|
|
|
|
${GZIP_CMD} ${DOCSDIR}/cycle.ps ${DOCSDIR}/spim.ps
|
1996-10-30 02:58:56 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-17 12:12:07 +02:00
|
|
|
.include <bsd.port.post.mk>
|