summaryrefslogtreecommitdiff
path: root/emulators/spim/Makefile
blob: 06e626e9f60ca0624169c826b0195884f4a49231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.2 1998/05/28 17:39:11 tron Exp $
# FreeBSD Id: Makefile,v 1.5 1997/10/10 06:53:35 obrien Exp
#

DISTNAME=		spim
PKGNAME=		spim-6.1
CATEGORIES=		emulators
MASTER_SITES=		ftp://ftp.cs.wisc.edu/pub/spim/

MAINTAINER=		deberg@mit.edu

NO_WRKSUBDIR=		yes

HAS_CONFIGURE=		yes
CONFIGURE_SCRIPT=	Configure
USE_IMAKE=		yes
XMKMF=			xmkmf # don't specify -a option

ALL_TARGET=		y.tab.c depend spim xspim

pre-configure:
	@${RM} -f ${WRKSRC}/y.tab.*

pre-install:
	@${MKDIR} ${PREFIX}/share/spim && chmod a+rx ${PREFIX}/share/spim

post-install:
	@${ECHO} "Installing spim/xspim documentation"
	@${MKDIR} ${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_CMD} ${PREFIX}/share/doc/spim/*.ps

.include "../../mk/bsd.pkg.mk"