source: trunk/dports/lang/g77/Portfile @ 3173

Last change on this file since 3173 was 3173, checked in by jkh, 17 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

  • Property svn:eol-style set to native
File size: 1.8 KB
1# $Id: Portfile,v 1.11 2003/08/05 09:29:15 jkh Exp $
3PortSystem 1.0
4name            g77
5version         3.2.2
6revision        2
7description     gnu fortran 77 comiler
8platforms       darwin freebsd
9categories      lang
11master_sites \
12       \
13       \
16distname        gcc-${version}
17checksums       md5 d7b4b40db47c36fa5297862733f47daf
19pre-configure   { system "cd ${workpath} && mkdir -p build"}
20configure.env   CC="cc -no-cpp-precomp"
21configure.dir   ${workpath}/build
22configure.cmd   ${worksrcpath}/configure
23configure.args  --enable-languages=c,f77 --infodir='${prefix}/share/info'
24build.dir       ${workpath}/build    bootstrap-lean
28post-destroot   {
29                        cd ${destroot}/${prefix}/bin
30                        system "rm -f gcc gccbug cpp gcov"
31                        system "rm -f `${worksrcpath}/config.guess`*"
33                        cd ${destroot}/${prefix}
34                        system "ln -s ../lib/gcc-lib/`${worksrcpath}/config.guess`/${version}/include/g2c.h include/g2c.h"
35                        system "rm -rf share/locale"
36                        system "rm -rf man/man7"
37                        system "rm -f man/man1/gcc.1"
38                        system "rm -f man/man1/cpp.1"
39                        system "rm -f man/man1/gcov.1"
40                        system "rm -f lib/charset.alias"
41                        system "rm -f share/info/gcc*"
42                        system "rm -f share/info/cpp*"
43               }
Note: See TracBrowser for help on using the repository browser.