diff options
author | dmcmahill <dmcmahill> | 2008-03-18 11:48:25 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2008-03-18 11:48:25 +0000 |
commit | a8758a9cdaff51538a6750a77458c8985a88eb31 (patch) | |
tree | c9722e85e2d4d7896b3c634371558e1b163651e5 /cad/tnt-mmtl/patches/patch-am | |
parent | 035c29529950183a8260d93889fbc8f6b82b9281 (diff) | |
download | pkgsrc-a8758a9cdaff51538a6750a77458c8985a88eb31.tar.gz |
Repair the build when using f2c-f77 as the fortran compiler.
Also, do not install calcCAP or calcRL. These two tools seem to give
results of questionable accuracy (see the sourceforge bug tracker
for the upstream sources) and also don't build with gcc-4 anyway.
Bump pkgrevision.
Diffstat (limited to 'cad/tnt-mmtl/patches/patch-am')
-rw-r--r-- | cad/tnt-mmtl/patches/patch-am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cad/tnt-mmtl/patches/patch-am b/cad/tnt-mmtl/patches/patch-am new file mode 100644 index 00000000000..e63e3932798 --- /dev/null +++ b/cad/tnt-mmtl/patches/patch-am @@ -0,0 +1,20 @@ +$NetBSD: patch-am,v 1.1 2008/03/18 11:48:25 dmcmahill Exp $ + +when building with f2c we need to define a dummy main. This is typically +something like MAIN__. This is not needed if f2c-f77 were used for linking +or if we'd used a different fortran compiler. + +--- bem/src/nmmtl.cpp.orig 2004-07-28 13:50:22.000000000 +0000 ++++ bem/src/nmmtl.cpp 2008-03-16 17:00:11.000000000 +0000 +@@ -130,5 +130,10 @@ + + +- ++#ifdef F77_DUMMY_MAIN ++extern "C" int F77_DUMMY_MAIN() ++{ ++ return 0; ++} ++#endif + + int main (int argc, char **argv) |