Update of /cvsroot/fink/experimental/jaguar
In directory usw-pr-cvs1:/tmp/cvs-serv18303
Added Files:
f2c-20020123-3.info
Log Message:
(possibly) Jaguar fixed f2c. It compiles and seems to work, now if i can get some pgks
that depend on it working.
--- NEW FILE: f2c-20020123-3.info ---
Package: f2c
Version: 20020123
Revision: 3
Source: ftp://netlib.bell-labs.com/netlib/f2c/libf2c.zip
Source2: ftp://netlib.bell-labs.com/netlib/f2c/src.tar
Source2Rename: f2c-src.tar
Source3: ftp://netlib.bell-labs.com/netlib/f2c/fc.gz
Source4: ftp://netlib.bell-labs.com/netlib/f2c/readme.gz
Source4Rename: f2c-readme.gz
NoSourceDirectory: true
CompileScript: <<
gunzip -f src/*.gz
sed 's/CC = cc/CC = \/usr\/bin\/c++ /; s/CFLAGS = -O/CFLAGS = -O2/; s/ld -r -x/ld
-r/' libf2c/makefile.u > libf2c/makefile
mv src/makefile src/makefile.orig
sed 's/CC = cc/CC = \/usr\/bin\/c++/; s/CFLAGS = -O/CFLAGS = -O2/; s/ld -r -x/ld -r/'
src/makefile.orig > src/makefile
(cd libf2c; make hadd; make; cd ../src; make)
gunzip fc.gz f2c-readme.gz
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
<<
#-fno-eh-cleanup-section
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 libtmp; cd libtmp; ar -x ../libf2c/libf2c.a; objfiles=`ls -1 *.o`; echo
$objfiles; cc -dynamiclib -flat_namespace -undefined suppress -o libf2c_dynamic.dylib
$objfiles; cc -dynamiclib -flat_namespace -undefined suppress -o libf2c_dynamic.dylib
$objfiles -install_name %p/lib/libf2c_dynamic.dylib)
cp libtmp/libf2c_dynamic.dylib %i/lib
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: f2c-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.
<<
DescPort: <<
Makefiles modified to use c++ instead of cc. cc will compile f2c, but
bus errors result when it is executed.
<<
Maintainer: Jeffrey Whitaker <[EMAIL PROTECTED]>
Homepage: http://www.netlib.org/f2c
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits