aboutsummaryrefslogtreecommitdiff
path: root/lang/ratfor/Makefile
blob: d8b6d7771392cba865c4267a7f47c8d405e49edd (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
# Created by: David O'Brien (obrien@NUXI.com)
# $FreeBSD$

PORTNAME=	ratfor
PORTVERSION=	1985.06
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	ftp://sepftp.stanford.edu/pub/sep-distr/  \
		${MASTER_SITE_LOCAL}  \
		http://sepwww.stanford.edu/sep/prof/
MASTER_SITE_SUBDIR=	obrien
DISTFILES=	ratfor.shar.2 local.ratfor77.shar

MAINTAINER=	obrien@FreeBSD.org
COMMENT=	Ratfor -- the Rational FORTRAN compiler

NO_WRKSUBDIR=	yes
EXTRACT_CMD=	${CAT}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=	| ${SH}
ALL_TARGET=	all tests
MAN1=		ratfor.1

USE_FORTRAN=	yes

NO_STAGE=	yes
post-patch:
	@cd ${WRKSRC} ; ${PATCH} --quiet < testw.patch
	@${REINPLACE_CMD} -e 's|%%F77%%|${F77}|' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ratfor77 ${PREFIX}/bin
	cd ${PREFIX}/bin ; ${LN} -sf ratfor77 ratfor
	${INSTALL_MAN} ${WRKSRC}/ratfor.1 ${PREFIX}/man/man1

.include <bsd.port.pre.mk>

.if ${ARCH} == "powerpc"
BROKEN=		Does not compile on powerpc
.endif

.include <bsd.port.post.mk>