svn commit: r549677 - in head/lang/ratfor: . files

Stefan Eßer se at FreeBSD.org
Wed Sep 23 11:22:25 UTC 2020


Author: se
Date: Wed Sep 23 11:22:24 2020
New Revision: 549677
URL: https://svnweb.freebsd.org/changeset/ports/549677

Log:
  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.

Modified:
  head/lang/ratfor/Makefile
  head/lang/ratfor/files/patch-Makefile

Modified: head/lang/ratfor/Makefile
==============================================================================
--- head/lang/ratfor/Makefile	Wed Sep 23 10:50:35 2020	(r549676)
+++ head/lang/ratfor/Makefile	Wed Sep 23 11:22:24 2020	(r549677)
@@ -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 at 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>

Modified: head/lang/ratfor/files/patch-Makefile
==============================================================================
--- head/lang/ratfor/files/patch-Makefile	Wed Sep 23 10:50:35 2020	(r549676)
+++ head/lang/ratfor/files/patch-Makefile	Wed Sep 23 11:22:24 2020	(r549677)
@@ -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


More information about the svn-ports-head mailing list