summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2004-01-30 10:30:07 +0000
committerMark Linimon <linimon@FreeBSD.org>2004-01-30 10:30:07 +0000
commit253cf23efaecc4ca9151bb80702e0bf80cf2273a (patch)
tree9ed01ae7342bbdc28cd28d78a0d8964955f9ab47
parentUpdate to 1.0.2 and assign to new maintainer (with old maintainer's (diff)
Unbreak on 4.x.
PR: ports/62073 Submitted by: Hiroki Sato <hrs@freebsd.org>
Notes
Notes: svn path=/head/; revision=99490
-rw-r--r--cad/iverilog/Makefile8
-rw-r--r--cad/iverilog/files/patch-_pli_types.h.in25
2 files changed, 26 insertions, 7 deletions
diff --git a/cad/iverilog/Makefile b/cad/iverilog/Makefile
index d52bdbf98235..684bf4470af6 100644
--- a/cad/iverilog/Makefile
+++ b/cad/iverilog/Makefile
@@ -21,10 +21,4 @@ GNU_CONFIGURE= yes
MAN1= iverilog-vpi.1 iverilog.1 vvp.1 iverilog-fpga.1
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} <= 500000
-BROKEN= "Does not install on FreeBSD ${OSVERSION}"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/cad/iverilog/files/patch-_pli_types.h.in b/cad/iverilog/files/patch-_pli_types.h.in
new file mode 100644
index 000000000000..cb9768d0d4d6
--- /dev/null
+++ b/cad/iverilog/files/patch-_pli_types.h.in
@@ -0,0 +1,25 @@
+--- _pli_types.h.in Wed Nov 12 11:38:44 2003
++++ _pli_types.h.in.new Fri Jan 30 01:44:38 2004
+@@ -45,7 +45,21 @@
+ typedef signed char PLI_BYTE8;
+ typedef unsigned char PLI_UBYTE8;
+
+-# define PLI_UINT64_FMT PRIu64
++#ifndef PRIu64
++
++#if defined(__i386__) || defined(__powerpc__)
++#define PLI_UINT64_FMT "llu"
++#endif /* defined(__i386__) || defined(__powerpc__) */
++
++#if defined(__sparc64__) || defined(__alpha__) || defined(__amd64__) || defined(__ia64__)
++#define PLI_UINT64_FMT "lu"
++#endif /* defined(__sparc64__) || defined(__alpha__) || defined(__amd64__) || defined(__ia64__) */
++
++#else /* PRIu64 defined */
++
++#define PLI_UINT64_FMT PRIu64
++
++#endif /* PRIu64 */
+
+ #else
+