diff options
author | linimon <linimon@FreeBSD.org> | 2004-01-30 10:30:07 +0000 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2004-01-30 10:30:07 +0000 |
commit | aaa9253ca103c57344e545724f2d52e334791046 (patch) | |
tree | b1ef667c8002ccf888b46742e0401a5433daf92c /cad/iverilog | |
parent | 271c76942907795bad4c6e2f33bff9ef6891faab (diff) | |
download | FreeBSD-ports-aaa9253ca103c57344e545724f2d52e334791046.zip FreeBSD-ports-aaa9253ca103c57344e545724f2d52e334791046.tar.gz |
Unbreak on 4.x.
PR: ports/62073
Submitted by: Hiroki Sato <hrs@freebsd.org>
Diffstat (limited to 'cad/iverilog')
-rw-r--r-- | cad/iverilog/Makefile | 8 | ||||
-rw-r--r-- | cad/iverilog/files/patch-_pli_types.h.in | 25 |
2 files changed, 26 insertions, 7 deletions
diff --git a/cad/iverilog/Makefile b/cad/iverilog/Makefile index d52bdbf..684bf44 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 0000000..cb9768d --- /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 + |