summaryrefslogtreecommitdiff
path: root/emulators/spim/Makefile
blob: 09b5ee26c7743cf748b52007afb9d776356f878d (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
38
39
40
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.25 2005/07/17 21:38:45 kristerw Exp $

DISTNAME=		spim
PKGNAME=		spim-7.1
CATEGORIES=		emulators
MASTER_SITES=		http://www.cs.wisc.edu/~larus/SPIM/ \
			ftp://ftp.cs.wisc.edu/pub/spim/

MAINTAINER=		tech-pkg@NetBSD.org
HOMEPAGE=		http://www.cs.wisc.edu/~larus/spim.html
COMMENT=		MIPS R2000 Simulator

RESTRICTED=		"selling is not allowed"
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

DIST_SUBDIR=		${PKGNAME}

WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}
HAS_CONFIGURE=		yes
CONFIGURE_SCRIPT=	./Configure
USE_IMAKE=		yes
USE_TOOLS+=		gzip lex
XMKMF=			${X11BASE}/bin/xmkmf # don't specify -a option

BUILD_TARGET=		y.tab.c depend spim xspim

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

pre-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/spim
	${CHMOD} a+rx ${PREFIX}/share/spim

post-install:
	@${ECHO} "Installing spim/xspim documentation"
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/spim \
		&& ${CHMOD} a+rx ${PREFIX}/share/doc/spim
	${INSTALL_DATA} ${WRKSRC}/Documentation/spim.tex \
		${PREFIX}/share/doc/spim
	${INSTALL_DATA} ${WRKSRC}/Documentation/*.id \
		${PREFIX}/share/doc/spim
	${INSTALL_DATA} ${WRKSRC}/Documentation/cycle.ps \
		${PREFIX}/share/doc/spim

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