summaryrefslogtreecommitdiff
path: root/emulators/spim/Makefile
blob: 16640a0ee422bf288c9ebdae4241fb1003a13e11 (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
44
45
46
47
48
# ex:ts=8
# New ports collection makefile for:    spim
# Version required:     5.8
# Date created:         Mon Oct 28, 1996
# Whom:                 David O'Brien (obrien@cs.ucdavis.edu)
#
# $FreeBSD$
#

DISTNAME=	spim5.9
PKGNAME=	spim-5.9
CATEGORIES=	emulators
MASTER_SITES=	ftp://ftp.cs.wisc.edu/pub/spim/Old_Versions/

MAINTAINER=	obrien@FreeBSD.org

PREFIX?=	${LOCALBASE}
NO_WRKSUBDIR=	yes
HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	Configure
USE_IMAKE=	yes
XMKMF=		xmkmf
ALL_TARGET=	y.tab.c depend cl-spim cl-xspim


pre-configure:
	@${RM} -f ${WRKSRC}/y.tab.*
	
pre-install:
	@${MKDIR} ${PREFIX}/share/spim && ${CHMOD} a+rx ${PREFIX}/share/spim

post-install:
	[ -e ${PREFIX}/bin/cl-spim ] &&  \
		/bin/ln -f ${PREFIX}/bin/cl-spim ${PREFIX}/bin/spim
	[ -e ${PREFIX}/bin/cl-xspim ] &&  \
		/bin/ln -f ${PREFIX}/bin/cl-xspim ${PREFIX}/bin/xspim
.if !defined(NOPORTDOCS)
	@${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 -9nf ${PREFIX}/share/doc/spim/*.ps
.endif

.include <bsd.port.mk>