freebsd-ports/emulators/spim/Makefile

68 lines
1.6 KiB
Makefile
Raw Normal View History

# 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)
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
#
2000-04-12 06:56:17 +02:00
PORTNAME= spim
PORTVERSION= 7.2.1
PORTREVISION= 1
CATEGORIES= emulators
2002-06-21 08:58:52 +02:00
MASTER_SITES= http://www.cs.wisc.edu/~larus/SPIM/
MAINTAINER= jkoshy@FreeBSD.org
COMMENT= MIPS32 Simulator
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1= spim.1
PORTDOCS= cycle.ps.gz spim.ps.gz SPIM.html
PLIST_FILES= bin/spim %%DATADIR%%/exceptions.s
PLIST_DIRS= %%DATADIR%%
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:
cd ${WRKSRC}/spim && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
.if defined(WITH_GUI)
cd ${WRKSRC}/xspim && ${XMKMF} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
.endif
do-install:
cd ${WRKSRC}/spim && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${INSTALL_TARGET}
.if defined(WITH_GUI)
cd ${WRKSRC}/xspim && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${INSTALL_TARGET}
${INSTALL_MAN} ${WRKSRC}/Documentation/xspim.man ${PREFIX}/man/man1/xspim.1
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${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
.endif
.include <bsd.port.post.mk>