Skip to content
Browse files

new g77 compiler based on gcc 3.2.2 FSF release, thanks to shantonu f…

…or submitting the update

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Michael Maibaum
Michael Maibaum committed Mar 3, 2003
1 parent d4831fd commit 1b9f1eafcafc5578f2435cb49462d04d46b713c0
Showing with 33 additions and 23 deletions.
  1. +33 −23 lang/g77/Portfile
@@ -1,34 +1,44 @@
# $Id: Portfile,v 1.8 2003/03/03 06:57:41 mij Exp $
# $Id: Portfile,v 1.9 2003/03/03 07:39:03 michaelm Exp $

PortSystem 1.0

name g77
version 3.1-20020420
version 3.2.2
revision 2
description gnu fortran 77 comiler
platforms darwin
platforms darwin freebsd
categories lang
master_sites \ \
master_sites \ \ \

distname gcc-${version}
checksums md5 d7b4b40db47c36fa5297862733f47daf

distname gcc-3.1-20020420-1151
worksrcdir gcc3
checksums md5 62f378e83bc60942cbf664d17994eafe
pre-configure { system "cd ${workpath} && mkdir -p darwin"}
configure.dir ${workpath}/darwin
configure.cmd ../gcc3/configure
configure.args --enable-languages=f77 --infodir='${prefix}/share/info'
build.dir ${workpath}/darwin
pre-configure { system "cd ${workpath} && mkdir -p build"}
configure.env CC="cc -no-cpp-precomp"
configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
configure.args --enable-languages=c,f77 --infodir='${prefix}/share/info'
build.dir ${workpath}/build bootstrap-lean install prefix=${destroot}${prefix}

post-install { system "cd ${destroot}${prefix}/bin && /bin/rm -f gcc gccbug cpp gcov powerpc-apple*"
system "ln -s ${destroot}${prefix}/lib/gcc-lib/powerpc-apple-darwin6.0/3.1/include/g2c.h ${destroot}${prefix}/include/g2c.h"
system "/bin/rm -rf ${destroot}${prefix}/share/locale ${destroot}${prefix}/man"
system "/bin/rm -f ${destroot}${prefix}/lib/charset.alias"
system "/bin/rm -f ${destroot}${prefix}/share/info/gcc* ${destroot}${prefix}/share/info/cpp*"
post-install {
cd ${destroot}/${prefix}/bin
system "rm -f gcc gccbug cpp gcov"
system "rm -f `${worksrcpath}/config.guess`*"

cd ${destroot}/${prefix}
system "ln -s ../lib/gcc-lib/`${worksrcpath}/config.guess`/${version}/include/g2c
.h include/g2c.h"
system "rm -rf share/locale"
system "rm -rf man/man7"
system "rm -f man/man1/gcc.1"
system "rm -f man/man1/cpp.1"
system "rm -f man/man1/gcov.1"
system "rm -f lib/charset.alias"
system "rm -f share/info/gcc*"
system "rm -f share/info/cpp*"

0 comments on commit 1b9f1ea

Please sign in to comment.
You can’t perform that action at this time.