From 440e9d17c5f7fa213d509798cb2e42943355b7ea Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Mon, 3 Dec 2012 09:51:46 +0000 Subject: - Fix build with clang - Trim Makefile header Feature safe: yes --- devel/fortran-utils/Makefile | 6 +--- devel/fortran-utils/files/patch-fpr.c | 59 ++++++++++++++++++++++++++++++----- 2 files changed, 53 insertions(+), 12 deletions(-) (limited to 'devel/fortran-utils') diff --git a/devel/fortran-utils/Makefile b/devel/fortran-utils/Makefile index fccf9c6c58d2..9f0422b81bd1 100644 --- a/devel/fortran-utils/Makefile +++ b/devel/fortran-utils/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: fortran-utils -# Date created: 19 Dec 1999 -# Whom: kris@FreeBSD.org -# +# Created by: kris@FreeBSD.org # $FreeBSD$ -# PORTNAME= fortran-utils PORTVERSION= 1.1 diff --git a/devel/fortran-utils/files/patch-fpr.c b/devel/fortran-utils/files/patch-fpr.c index 57c142e7ac18..7b6cb76e7a01 100644 --- a/devel/fortran-utils/files/patch-fpr.c +++ b/devel/fortran-utils/files/patch-fpr.c @@ -1,5 +1,5 @@ ---- fpr/fpr.c.orig Fri May 27 14:31:21 1994 -+++ fpr/fpr.c Sat Jun 12 23:49:50 2004 +--- fpr/fpr.c.orig 1994-05-27 14:31:21.000000000 +0200 ++++ fpr/fpr.c 2012-12-03 10:50:48.000000000 +0100 @@ -45,6 +45,7 @@ #endif /* not lint */ @@ -8,17 +8,26 @@ #define BLANK ' ' #define TAB '\t' -@@ -80,9 +81,6 @@ +@@ -80,12 +81,13 @@ int maxpos; int maxcol; -extern char *malloc(); -extern char *calloc(); -extern char *realloc(); +- +- ++void init(); ++void mygettext(); ++void flush(); ++void savech(int); ++void nospace(); - - -@@ -124,7 +122,7 @@ ++int + main() + { + register int ch; +@@ -124,7 +126,7 @@ while ( ! ateof) { @@ -27,12 +36,48 @@ ch = getchar(); if (ch == EOF) { -@@ -210,7 +208,7 @@ +@@ -176,6 +178,7 @@ + + + ++void + init() + { + register COLUMN *cp; +@@ -210,7 +213,8 @@ -gettext() ++void +mygettext() { register int i; register char ateol; +@@ -283,8 +287,8 @@ + + + +-savech(col) +-int col; ++void ++savech(int col) + { + register char ch; + register int oldmax; +@@ -340,6 +344,7 @@ + + + ++void + flush() + { + register int i; +@@ -403,6 +408,7 @@ + + + ++void + nospace() + { + fputs("Storage limit exceeded.\n", stderr); -- cgit v1.2.3