diff --git a/lang/p5-ExtUtils-F77/Makefile b/lang/p5-ExtUtils-F77/Makefile index d2449e8ba6b6..407fd1d9aa8d 100644 --- a/lang/p5-ExtUtils-F77/Makefile +++ b/lang/p5-ExtUtils-F77/Makefile @@ -1,26 +1,27 @@ # Created by: jmz PORTNAME= ExtUtils-F77 PORTVERSION= 1.26 +PORTREVISION= 1 CATEGORIES= lang perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= Helps link C programs with Fortran subroutines LICENSE= ART10 GPLv1+ LICENSE_COMB= dual BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= p5-File-Which>=0:sysutils/p5-File-Which USES= fortran perl5 USE_PERL5= configure NO_ARCH= yes post-patch: - @${REINPLACE_CMD} -e "s|'gfortran48'|'${FC}'|; s|'-O2'|'${CFLAGS}'|" ${WRKSRC}/F77.pm + @${REINPLACE_CMD} -e "s|'FB_GFORTRAN'|'${FC}'|; s|'-O2'|'${CFLAGS}'|" ${WRKSRC}/F77.pm .include diff --git a/lang/p5-ExtUtils-F77/files/patch-F77.pm b/lang/p5-ExtUtils-F77/files/patch-F77.pm new file mode 100644 index 000000000000..82546a373c91 --- /dev/null +++ b/lang/p5-ExtUtils-F77/files/patch-F77.pm @@ -0,0 +1,11 @@ +--- F77.pm.orig 2022-05-03 14:16:56 UTC ++++ F77.pm +@@ -335,7 +335,7 @@ $F77config{Aix}{DEFAULT} = 'F77'; + ### FreeBSD ### + + if($^O =~ /Freebsd/i) { +- $gfortran = 'gfortran'; ++ $gfortran = 'FB_GFORTRAN'; + $fallback_compiler = 'G77'; + } +