0fae593bcc
* Detect both g77-34 and gfortran * Use a post-patch to set the CFLAGS and gfortran version correctly * Mark gfortran as the default compiler (since g77 is deprecated in ports tree), and enable g77-34 as a fallback PR: ports/155906 Submitted by: Zhihao Yuan <lichray_AT_gmail_DOT_com>
29 lines
608 B
Makefile
29 lines
608 B
Makefile
# New ports collection makefile for: p5-ExtUtils-F77
|
|
# Date created: December 7 1999
|
|
# Whom: jmz
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ExtUtils-F77
|
|
PORTVERSION= 1.17
|
|
CATEGORIES= lang perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Helps link C programs with Fortran subroutines
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= ExtUtils::F77.3
|
|
|
|
GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.so//
|
|
F2CLIB= -lgfortran
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s/'gfortran44'/'${FC}'/" \
|
|
-e "s/'-O2'/'${CFLAGS}'/" \
|
|
${WRKSRC}/F77.pm
|
|
|
|
.include <bsd.port.mk>
|