Commit graph

39 commits

Author SHA1 Message Date
asau
7d6d7af3c1 Update to f2c-20100903.
Requested in PR pkg/44076

Changes since previous package:

Wed Jul  7 10:51:12 MDT 2010
  src/data.c, src/format.c, src/p1output.c:  "invisible" tweaks to
silence warnings seen in compilation under Ubuntu; version.c not changed.

Fri Aug 27 09:14:17 MDT 2010
  format.c: make sizeof(buf) depend on MAXNAMELEN to fix a bug with long
names.  Update mswin/f2c.exe.gz accordingly.

Fri Sep  3 16:03:24 MDT 2010
  fc:  have "-m ..." modify CC rather than CFLAGS (to affect linking).
2010-12-14 18:12:40 +00:00
dholland
ff2f8feec5 Fix integer type misuse caught by gcc 4.4. PR 43291 from Makoto Fujiwara;
the patches in the PR used unsafe (but less wrong) integer/pointer casts,
so I did things somewhat differently.
2010-07-31 20:31:33 +00:00
asau
22b94dad9b Pull in system prototypes instead of defining own ones.
From <joerg>.
2009-12-23 00:48:20 +00:00
asau
23b6251ef3 Split f2c into library (devel/libf2c) and translator packages.
Requested by <joerg>.
2009-12-03 12:39:59 +00:00
tnn
da10d0fd8f fix grammar to make bison happy 2009-11-23 15:30:29 +00:00
tnn
06ced45c64 Resurrect patch-ai, it's needed to build on 64-bit platforms. (hi asau!) 2009-11-22 21:19:19 +00:00
asau
26a39a85b9 Update f2c to 2009-04-11 snapshot.
Changes are mostly bug fixes.
Perform conservative update: recreate libF77 and libI77 providing
binary compatibility.
Prefer files to patches creating respective files.
Override build system completely, we effectively did that anyway.
2009-11-22 12:52:53 +00:00
asau
68d452c0cb Don't enforce linking in MAIN__. Bump package revision.
No changes in libraries.
No fallout expected, none found so far.
2009-10-31 19:15:44 +00:00
dmcmahill
7837f7c275 Add the correct header entry for sparcv8. Addresses PR pkg/33997. 2009-06-25 14:22:08 +00:00
joerg
29a80a3a24 Add DESTDIR support. 2007-08-16 00:31:21 +00:00
rillig
7bc661e317 Fixed PKGMANDIR. 2007-03-17 16:10:13 +00:00
dmcmahill
b03e325e08 Add __sparcv9 to the list for 64-bit systems. Fixes compilation on
solaris in 64 bit mode.  Patch from Gilles Dauphin.
2007-02-15 13:29:19 +00:00
dmcmahill
b5b7a817be - The f2c-f77 script that emulates a fortran comiler has deviated so much
from the original, that it has become easier to maintain it as its own
  file instead of a patch, so do that.

- Improve the shell quoting quite a bit in the f2c-f77 script.  Now you
  can pass things like -DFOO=this\ is\ a\ test and have the escapes
  actually work when the arguments get passed down to the underlying
  commands.  Many thanks to Alan Barrett for help with the shell quoting.

- bump pkgrev
2007-02-05 14:33:21 +00:00
dmcmahill
21e4aa0d45 update to f2c-20001205nb8
This addresses a temp file symlink race vulnerability.  The f2c patch
is adapted from the debian one.  The f2c-f77 (wrapper script which emulates
a fortran compiler) patch was done a bit differently.
2005-01-28 23:37:42 +00:00
dmcmahill
db66e6eea2 - don't hard code the c compiler name.
- automatically figure out MAIN__ vs _MAIN__
- don't clobber the path when running f2c-f77.  This lets you
  have a better chance of finding the c compiler!

With all this this package now seems fully functional on solaris-2.9 as
well as NetBSD.
2004-09-15 20:56:31 +00:00
dmcmahill
3a87120a36 add a minor patch to make this package actually work on 64 bit systems.
hello.f works on alpha's too now.
2004-09-15 12:27:26 +00:00
dmcmahill
cc80f4187c libtool-ize this for building its shared libs instead of using
bsd.lib.mk.  Should address PR26628 where this package can't
build on solaris.  In addition, this cleans up some PLIST hacks.
2004-09-14 22:09:40 +00:00
dmcmahill
c6590bdbbc include x86_64 in the 64-bit list. Hopefully fixes recently noted problems
on x86_64.
2004-03-13 13:47:40 +00:00
jlam
efb93b17bd Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.
2002-08-25 19:21:43 +00:00
dmcmahill
e8a6573371 fix PLIST and build on mipsel machines where all code is PIC so we don't
need to build a _pic lib.

fixed PR pkg/16302 submitted by
Daniel Senderowicz <daniel@mispibes.SynchroDS.COM>
2002-06-17 04:21:08 +00:00
dmcmahill
1e169e1200 change NOGCCERROR from 'yes' to #defined. Addresses the build problems
on -current reported in  pkg/15844 by florence.henry@obspm.fr
2002-03-14 22:09:35 +00:00
dmcmahill
49213ba616 obey CC and CFLAGS. 2002-03-05 18:29:48 +00:00
dmcmahill
323e131bd7 fix the f2c-f77 handling of the '-m' flag. Needed in preparation for
adding -mieee to CFLAGS and FFLAGS for alpha.

bump rev to f2c-20001205nb5
2002-01-22 16:47:22 +00:00
dmcmahill
1a92a6048e teach the f2c-f77 script about "-pg" (generate profiled code). 2001-04-22 13:55:27 +00:00
dmcmahill
c4d9d12212 fix soname for libf2c 2001-04-18 21:43:18 +00:00
dmcmahill
0a0fa5f7d1 add LD_RUN_PATH to the -v output of f2c-f77. Needed by autoconf to correctly
determine fortran library run time paths.
2001-04-15 02:00:24 +00:00
dmcmahill
6ac2a4f06b -fix the combined f2c library. problem noted by Jason Beegan
- enable the -N option to the f2c-f77.  Allows increasing some runtime
  table sizes in the f2c compiler.
2001-04-09 01:44:38 +00:00
dmcmahill
f463c573e9 fix install. 2001-04-07 12:47:45 +00:00
dmcmahill
b9bbb4fe57 build and install shared libs as well as the static ones. add nb1 to the
version.
2001-04-07 12:43:47 +00:00
dmcmahill
2175605765 update to f2c-20001205.
while here, add more options to the f2c-f77 script:
from Jason Beegan,
-r8,  promote REAL and COMPLEX to DOUBLE REAL and DOUBLE COMPLEX
-s,   to strip executible

generalize the -Wall flag to accept -Wxxx and pass it to the c compiler
-Wxxx for gcc warnings

complete change log from the f2c maintainers since the last packaged
version:
------------------------------------------
  libf2c.zip: fix bug with the sequence backspace(n); endfile(n);
rewind(n); read(n).  Supply missing (long) casts in a couple of places
where they matter when size(ftnint) == sizeof(int) < sizeof(long).

Tue Jan 18 19:22:24 EST 2000
  Arrange for parameter statements involving min(...) and max(...)
functions of three or more arguments to work.
  Warn about text after "end" (rather than reporting a syntax error
with a surprising line number).
  Accept preprocessor line numbers of the form "# 1234" (possibly
with trailing blanks).
  Accept a comma after write(...) and before a list of things to write.

Fri Jan 21 17:26:27 EST 2000
  Minor updates to make compiling Win32 console binaries easier.  A
side effect is that the MSDOS restriction of only one Fortran file
per invocation is lifted (and "f2c *.f") works.

Tue Feb  1 18:38:32 EST 2000
  f2c/src/tokdefs.h added (to help people on non-Unix systems -- the
makefile has always had a rule for generating tokdefs.h).

Fri Mar 10 18:48:17 EST 2000
  libf77, libf2c.zip: z_log.c: the real part of the double complex log
of numbers near, e.g., (+-1,eps) with |eps| small is now more accurate.
For example if z = (1,1d-7), then "write(*,*) z" now writes
"(5.E-15,1.E-07" rather than the previous "(4.88498131E-15,1.E-07)".

Thu Apr 20 13:02:54 EDT 2000
  libf77, libi77, libf2c.zip: s_cat.c, rsne.c, xwsne.c: fix type
errors that only matter if sizeof(ftnint) != sizeof(ftnlen).

Tue May 30 23:36:18 EDT 2000
  expr.c: adjust subcheck() to use a temporary variable of type TYLONG
rather than TYSHORT under -C -I2.

Wed May 31 08:48:03 EDT 2000
  Simplify yesterday's adjustment; today's change should be invisible.

Tue Jul  4 22:52:21 EDT 2000
  misc.c, function "addressable": fix fault with "f2c -I2 foo.f" when
foo.f consists of the 4 lines
	subroutine foo(c)
	character*(*) c
	i = min(len(c),23)
	end
  Sundry files: tweaks for portability, e.g., for compilation by overly
fastidious C++ compilers; "false" and "true" now treated as C keywords
(so they get two underscores appended).
  libf77, libi77, libf2c.zip: "invisible" adjustments to permit
compilation by C++ compilers; version numbers not changed.

Thu Jul  6 23:46:07 EDT 2000
  Various files: tweaks to banish more compiler warnings.
  lib?77, libf2c.zip/makefile.u: add "|| true" to ranlib invocations.
  Thanks to Nelson H. F. Beebe for messages leading to these changes
(and to many of the ones two days ago).
  xsum.c: tweak include order.

Fri Jul  7 18:01:25 EDT 2000
  fc: accept -m xxx or -mxxx, pass them to the compiler as -mxxx
(suggestion of Nelson Beebe).  Note that fc simply appends to CFLAGS,
so system-specific stuff can be supplied in the environment variable
CFLAGS.  With some shells, invocations of the form
	CFLAGS='system-specific stuff' fc ...
are one way to do this.

Thu Aug 17 21:38:36 EDT 2000
  Fix obscure glitch: in "Error on line nnn of ...: Bad # line:...",
get nnn right.

Sat Sep 30 00:28:30 EDT 2000
  libf77, libf2c.zip: dtime_.c, etime_.c: use floating-point divide;
dtime_.d, erf_.c, erfc_.c, etime.c: for use with "f2c -R", compile with
-DREAL=float.

Tue Dec  5 22:55:56 EST 2000
  lread.c: under namelist input, when reading a logical array, treat
Tstuff= and Fstuff= as new assignments rather than as logical constants.
2001-02-24 18:37:45 +00:00
dmcmahill
67ffacc0a9 - fix a bug in the f2c-f77 script which caused -Ipath flags to not get
passed to f2c (only to the c compiler)

- update my email
1999-12-22 20:22:14 +00:00
dmcmahill
5648c37653 -Update to f2c-19991025. This newer version contains several bug fixes
including (from f2c/changes)
  = permit long names in #line lines
  = minor tweaks to make some (C++) compilers happier
  = some casts for systems with 64-bit longs.
  = some fixes to format strings

-Add a -v (verbose) option to the f2c-f77 script.  This is (unfortunately)
 used by some GNU configure scripts (octave for example) for examining the
 fortran compiler behaviour.
1999-12-16 00:58:27 +00:00
dmcmahill
c84190eef7 changed the default for CPP to be /usr/bin/cpp instead of /lib/cpp in f2c-f77 1999-11-23 21:12:12 +00:00
frueauf
8a09c3c50b Update f2c to 19980913. Provided in pr 6804 by Dan McMahill. 1999-01-14 13:56:04 +00:00
tv
888918a925 Back out previous. Go back to f2c-f77. 1998-08-25 15:22:47 +00:00
tv
00243f40d8 Rename f2c-f77 back to f77. (Leave CONFLICTS= line as the old
egcs-current pkg did have a conflict.)
1998-08-25 14:19:52 +00:00
agc
d015ff590f Update to the f2c package, from Dan McMahill (mcmahill@mtl.mit.edu).
Fixes PR pkg/6026.

Modified slightly by me, to add NetBSD RCS Ids to patches, along with
a minimalist comment about each patch, and also modified the top-level
Makefile to use mkdir, rather than install -d (install -d was
clobbering directory permissions on ${PREFIX}/{bin,lib,include}).
1998-08-25 08:54:06 +00:00
agc
41bfb30737 Add NetBSD RCS Ids. 1998-08-07 11:08:53 +00:00
agc
0f858ec188 Addition of f2c, the Fortran to C translator/compiler, to the NetBSD
packages collection. This is based on the 1998/05/16 version of f2c,
and was submitted by Dan McMahill in PR pkg/5735. I modified some patches
to contain the correct pathnames.
1998-07-21 16:40:45 +00:00