Files
ports/lang/ratfor/files/patch-Makefile
T
Stefan Eßer d3248b642d 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.
2020-09-23 11:22:24 +00:00

35 lines
629 B
Plaintext

--- Makefile.orig 2020-09-23 11:00:09 UTC
+++ Makefile
@@ -11,7 +11,7 @@
# On GNU, use S_CHAR="char"
#
-CFLAGS+= -DF77 -DS_CHAR="char"
+CFLAGS+= -DF77 -DS_CHAR="char" -Wno-error=return-type
#CFLAGS+= -DS_CHAR="char"
OBJS= rat4.o lookup.o getopt.o
@@ -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
./ratfor -o test.f test.r
- f77 -o test test.f
-testw: ratfor
+testw: testw.f
+
+testw.f: ratfor
./ratfor -o testw.f testw.r
- f77 -o testw testw.f
tests: test testw
./test