aboutsummaryrefslogtreecommitdiff
path: root/emulators/spim/Makefile
blob: b6769e71c96ea6cfe340c168369c9bfc51e11d18 (plain) (blame)
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
# ex:ts=8
# Ports collection makefile for:  spim
# Date created:			  Mon Oct 28, 1996
# Whom:				  David O'Brien (obrien@cs.ucdavis.edu)
#
# $FreeBSD$
#

PORTNAME=	spim
PORTVERSION=	6.2
CATEGORIES=	emulators
MASTER_SITES=	ftp://ftp.cs.wisc.edu/pub/spim/
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	obrien@FreeBSD.org

PREFIX?=	${LOCALBASE}
NO_WRKSUBDIR=	yes
HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	Configure
USE_IMAKE=	yes
ALL_TARGET=	y.tab.c spim xspim
MAN1=		spim.1 xspim.1

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

pre-install:
	@${MKDIR} ${PREFIX}/share/spim && ${CHMOD} a+rx,u+w ${PREFIX}/share/spim

post-install:
.if !defined(NOPORTDOCS)
	@${ECHO_MSG} "Installing spim/xspim documentation"
	@${MKDIR} ${PREFIX}/share/doc/spim  \
		&& ${CHMOD} a+rx,u+w ${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
.endif

.include <bsd.port.mk>