summaryrefslogtreecommitdiff
path: root/lang/ratfor
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-23 11:22:24 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-23 11:22:24 +0000
commitd3248b642d74fdd109277ecba120ccbbaf8db772 (patch)
treeaafe9a6744a2dd6ddd9a7ffc2dcb160bf9e96f68 /lang/ratfor
parentdevel/universal-ctags: Update to g20200915 (diff)
Fix build
The build system includes bsd.sys.mk, which add a -fuse-ld option in a format that is not accepted by gfortran and thus causes a build failure of the test programs. This can be worked-around by adding a ".f:" target to the port's internal Makefile. While here add a license (PD) and use a relative symbolic link for the binary's alias name.
Notes
Notes: svn path=/head/; revision=549677
Diffstat (limited to 'lang/ratfor')
-rw-r--r--lang/ratfor/Makefile7
-rw-r--r--lang/ratfor/files/patch-Makefile9
2 files changed, 11 insertions, 5 deletions
diff --git a/lang/ratfor/Makefile b/lang/ratfor/Makefile
index 6feaa40b07e4..0ffb762f6ba4 100644
--- a/lang/ratfor/Makefile
+++ b/lang/ratfor/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ratfor
PORTVERSION= 1985.06
-PORTREVISION= 13
+PORTREVISION= 14
CATEGORIES= lang
MASTER_SITES= LOCAL/obrien \
http://sepwww.stanford.edu/sep/prof/
@@ -12,6 +12,9 @@ DISTFILES= ratfor.shar.2 local.ratfor77.shar
MAINTAINER= bofh@FreeBSD.org
COMMENT= Rational FORTRAN compiler
+LICENSE= PD
+LICENSE_FILE= ${WRKSRC}/README
+
BROKEN_aarch64= ./ratfor -o test.f test.r keeps creating huge output file
BROKEN_powerpc= ./ratfor -o test.f test.r keeps creating huge output file
BROKEN_powerpc64= ./ratfor -o test.f test.r keeps creating huge output file
@@ -30,7 +33,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ratfor77 ${STAGEDIR}${PREFIX}/bin
- ${LN} -sf ${PREFIX}/bin/ratfor77 ${STAGEDIR}${PREFIX}/bin/ratfor
+ ${INSTALL} -lr ${STAGEDIR}${PREFIX}/bin/ratfor77 ${STAGEDIR}${PREFIX}/bin/ratfor
${INSTALL_MAN} ${WRKSRC}/ratfor.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/lang/ratfor/files/patch-Makefile b/lang/ratfor/files/patch-Makefile
index 7ded0badaae8..4ce15b7de3a4 100644
--- a/lang/ratfor/files/patch-Makefile
+++ b/lang/ratfor/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig 2013-11-16 17:28:28.000000000 +0100
-+++ Makefile 2013-11-16 17:27:51.000000000 +0100
+--- Makefile.orig 2020-09-23 11:00:09 UTC
++++ Makefile
@@ -11,7 +11,7 @@
# On GNU, use S_CHAR="char"
#
@@ -9,11 +9,14 @@
#CFLAGS+= -DS_CHAR="char"
OBJS= rat4.o lookup.o getopt.o
-@@ -26,13 +26,15 @@
+@@ -26,13 +26,18 @@ ratfor: ratfor77
clean:
rm -f *.o *~ ratfor ratfor77 a.out test testw test.f testw.f
-test: ratfor
++.f:
++ ${FC} -o $@ $<
++
+test: test.f
+
+test.f: ratfor