the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: f2c
Version: 20030428
Revision: 1
Source: mirror:sourceforge:fink/%n-%v.tar.gz
Source-MD5: 7d88946325ce016cc4b002d89b5b20fc
Suggests: fort77
CompileScript: <<
gunzip -f src/*.gz
mv src/notice src/Notice
mv src/readme src/README
sed 's/CFLAGS = -O/CFLAGS = -O2 -fno-common/; s/ld -r -x/ld -r/' libf2c/makefile.u > libf2c/makefile
mv src/makefile src/makefile.orig
sed 's/CFLAGS = -O/CFLAGS = -O2 -fno-common/; s/ld -r -x/ld -r/' src/makefile.orig > src/makefile
(cd libf2c; make hadd; make; cd ../src; make)
mv fc fc.orig
sed 's/CFLAGS="$CFLAGS $O"/CFLAGS="$CFLAGS $O""3"/; s/ -lm//g; s/ -u MAIN__//g; s|/usr/local|%p|g; s/lib\/cpp/usr\/bin\/cpp/g' fc.orig > fc
chmod +x fc
<<
InstallScript: <<
mkdir -p %i/include
cp libf2c/f2c.h %i/include
mkdir -p %i/lib
cp libf2c/libf2c.a %i/lib
ranlib %i/lib/libf2c.a
mkdir -p %i/bin
cp src/f2c %i/bin
cp fc %i/bin
mkdir -p %i/share/man/man1
cp src/f2c.1t %i/share/man/man1/f2c.1
<<
DocFiles: README libf2c/Notice
License: OSI-Approved
Description: Convert Fortran 77 source to C source
DescUsage: <<
The shell script fc converts f77 source code to c, and compiles the c.
It acts very much like a 'real' compiler. The fort77 package provides
a perl script with similar, but added, functionality.
.
To test: f2c myprog.f
cc -O2 -I $PREFIX/include -L$PREFIX/lib -lf2c -o myprog myprog.c
./myprog
or:
setenv F2CFLAGS {any flags you want fc to pass to f2c here}
fc -O -o myprog myprog.f; ./myprog
.
where $PREFIX is the root of fink's directory hierarchy (/sw by default).
There is no versioning system for f2c - you should periodically rebuild
the package to get the latest changes. See the "readme" file for the
ChangeLog.
<<
Maintainer: None
Homepage: http://www.netlib.org/f2c
Package: f2c
Version: 20060506
Revision: 5
#BuildDependsOnly: true
#Source: mirror:sourceforge:fink/%n-%v.tar.gz
Source: ftp://ftp.cdc.noaa.gov/Public/jsw/%n-%v.tar.gz
Source-MD5: 88157675907c0d3f24fa1dfcbb8c583e
Suggests: fort77
CompileScript: <<
#!/bin/sh -ev
if test -f src/notice ; then /bin/mv src/notice src/Notice ; fi
if test -f src/readme ; then /bin/mv src/readme src/README ; fi
sed 's/CFLAGS = -O/CFLAGS = -O2 -fno-common/; s/ld -r -x/ld -r/' libf2c/makefile.u > libf2c/makefile
sed 's/CFLAGS = -O/CFLAGS = -O2 -fno-common/; s/ld -r -x/ld -r/' src/makefile.u > src/makefile
cd libf2c
make hadd
make
cd ../src
make
mv fc fc.orig
sed 's/CFLAGS="$CFLAGS $O"/CFLAGS="$CFLAGS $O""3"/; s/ -lm//g; s/ -u MAIN__//g; s|/usr/local|%p|g; s/lib\/cpp/usr\/bin\/cpp/g' fc.orig > fc
chmod +x fc
<<
InstallScript: <<
mkdir -p %i/include
cp libf2c/f2c.h %i/include
mkdir -p %i/lib
cp libf2c/libf2c.a %i/lib
ranlib %i/lib/libf2c.a
mkdir -p %i/bin
cp src/f2c %i/bin
cp src/fc %i/bin
mkdir -p %i/share/man/man1
cp src/f2c.1t %i/share/man/man1/f2c.1
<<
DocFiles: src/permission src/f2c.pdf
License: OSI-Approved
Description: Convert Fortran 77 source to C source
DescUsage: <<
The shell script fc converts f77 source code to c, and compiles the c.
It acts very much like a 'real' compiler. The fort77 package provides
a perl script with similar, but added, functionality.
.
To test: f2c myprog.f
cc -O2 -I $PREFIX/include -L$PREFIX/lib -lf2c -o myprog myprog.c
./myprog
or:
setenv F2CFLAGS {any flags you want fc to pass to f2c here}
fc -O -o myprog myprog.f; ./myprog
.
where $PREFIX is the root of fink's directory hierarchy (/sw by default).
<<
Maintainer: None
Homepage: http://www.netlib.org/f2c