1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00

- Remove lang/p5-F77

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-11-07 17:40:58 +00:00
parent e2ab790902
commit edb2362082
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285252
5 changed files with 0 additions and 107 deletions

View File

@ -1,29 +0,0 @@
# 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>

View File

@ -1,2 +0,0 @@
SHA256 (ExtUtils-F77-1.17.tar.gz) = b3919200443174ff348ed5567d461335e289fba047cb17432f31dea5a26cad3f
SIZE (ExtUtils-F77-1.17.tar.gz) = 11225

View File

@ -1,65 +0,0 @@
--- F77.pm.orig 2010-12-31 19:53:06.000000000 -0600
+++ F77.pm 2011-03-24 01:05:00.742862139 -0500
@@ -351,9 +351,49 @@ $F77config{Aix}{DEFAULT} = 'F77';
### FreeBSD ###
-$F77config{Freebsd}{F77}{Trail_} = 1;
-$F77config{Freebsd}{F77}{Link} = '-L/usr/lib -lf2c -lm';
-$F77config{Freebsd}{DEFAULT} = 'F77';
+if($^O =~ /Freebsd/i) {
+ $gfortran = 'gfortran44'; # requires rewrite
+ $fallback_compiler = 'G77';
+}
+
+$F77config{Freebsd}{G77}{Link} = sub {
+ $dir = `g77-34 -print-file-name=libg2c.a`;
+ chomp $dir;
+ # Note that -print-file-name returns just the library name
+ # if it cant be found - make sure that we only accept the
+ # directory if it returns a proper path (or matches a /)
+
+ if( defined $dir ) {
+ $dir =~ s,/libg2c.a$,,;
+ } else {
+ $dir = "/usr/local/lib";
+ }
+ return( "-L$dir -L/usr/lib -lg2c -lm" );
+};
+
+$F77config{Freebsd}{GFortran}{Link} = sub {
+ $dir = `$gfortran -print-file-name=libgfortran.a`;
+ chomp $dir;
+ # Note that -print-file-name returns just the library name
+ # if it cant be found - make sure that we only accept the
+ # directory if it returns a proper path (or matches a /)
+
+ if( defined $dir ) {
+ $dir =~ s,/libgfortran.a$,,;
+ } else {
+ $dir = "/usr/local/lib";
+ }
+ return( "-L$dir -L/usr/lib -lgfortran -lm" );
+};
+
+$F77config{Freebsd}{G77}{Trail_} = 1;
+$F77config{Freebsd}{GFortran}{Trail_} = 1;
+$F77config{Freebsd}{G77}{Compiler} = 'g77-34';
+$F77config{Freebsd}{GFortran}{Compiler} = "$gfortran";
+$F77config{Freebsd}{G77}{Cflags} = '-O2';
+$F77config{Freebsd}{GFortran}{Cflags} = '-O2';
+$F77config{Freebsd}{DEFAULT} = 'GFortran';
+
### VMS ###
@@ -446,7 +486,8 @@ $Pkg: Will try system=Generic Compiler=$
EOD
$system =
$Config{cc} =~ /\bgcc/ && $^O =~ /MSWin32/i ? "MinGW"
- :"Generic";
+ : $^O =~ /Freebsd/i ? "Freebsd"
+ : "Generic";
$compiler = $fallback_compiler;
my $flibs = get ($F77config{$system}{$compiler}{Link});
$Runtime = $flibs ; #. gcclibs($flibs); # Note gcclibs appears to be no longer required.

View File

@ -1,6 +0,0 @@
This module tries to figure out how to link C programs with
Fortran subroutines on your system. Basically one must add a list
of Fortran runtime libraries. The problem is their location
and name varies with each OS/compiler combination!
WWW: http://search.cpan.org/dist/ExtUtils-F77/

View File

@ -1,5 +0,0 @@
%%SITE_PERL%%/ExtUtils/F77.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/ExtUtils/F77/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/ExtUtils/F77
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/ExtUtils
@dirrmtry %%SITE_PERL%%/ExtUtils