diff options
author | tnn <tnn@pkgsrc.org> | 2009-11-22 21:19:19 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2009-11-22 21:19:19 +0000 |
commit | 9252b3fbcf7d237578c92339fba7dccc9f2f7871 (patch) | |
tree | 246fbfe368eb4b1bd634a94fc9124d9ce9f2cfa4 | |
parent | ef4cb85dda0e7f5a404911713352f4566f233e21 (diff) | |
download | pkgsrc-9252b3fbcf7d237578c92339fba7dccc9f2f7871.tar.gz |
Resurrect patch-ai, it's needed to build on 64-bit platforms. (hi asau!)
-rw-r--r-- | lang/f2c/distinfo | 3 | ||||
-rw-r--r-- | lang/f2c/patches/patch-ai | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/lang/f2c/distinfo b/lang/f2c/distinfo index b0b74468f0c..e3a1c6e32c8 100644 --- a/lang/f2c/distinfo +++ b/lang/f2c/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.21 2009/11/22 12:52:53 asau Exp $ +$NetBSD: distinfo,v 1.22 2009/11/22 21:19:19 tnn Exp $ SHA1 (f2c-20090411.tar.gz) = 949e832b84aaa912a99471a95c6fd449898d50e0 RMD160 (f2c-20090411.tar.gz) = e86ff3de4564267a57f508a5a68e81af2b1a9468 Size (f2c-20090411.tar.gz) = 1045385 bytes SHA1 (patch-ad) = 7f204a45891e3632589ea8fb0e4e379a0a792dea +SHA1 (patch-ai) = d8c1f731c18394e0953b6128d0bd597986ab910f diff --git a/lang/f2c/patches/patch-ai b/lang/f2c/patches/patch-ai new file mode 100644 index 00000000000..a32653024c6 --- /dev/null +++ b/lang/f2c/patches/patch-ai @@ -0,0 +1,30 @@ +$NetBSD: patch-ai,v 1.8 2009/11/22 21:19:19 tnn Exp $ + +required to make +sizeof(integer) == sizeof(real) +and +sizeof(logical) == sizeof(real) +(per f2c/readme) + +--- f2c.h.orig Tue Sep 7 13:46:24 1999 ++++ f2c.h Tue Dec 7 18:08:26 1999 +@@ -8,5 +8,9 @@ + #define F2C_INCLUDE + ++#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__sparcv8) || defined(__sparcv9) ++typedef int integer; ++#else + typedef long int integer; ++#endif + typedef unsigned long int uinteger; + typedef char *address; +@@ -16,5 +20,9 @@ + typedef struct { real r, i; } complex; + typedef struct { doublereal r, i; } doublecomplex; ++#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__sparcv8) || defined(__sparcv9) ++typedef int logical; ++#else + typedef long int logical; ++#endif + typedef short int shortlogical; + typedef char logical1; |