From ccd2323721d58b63e4466f1a3be5404c33d9ee5c Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 6 Oct 2004 04:47:58 +0000 Subject: [PATCH] Unbreak on 5.X and -CURRENT. Reported by: kris Approved by: portmgr (krion), fjoe (mentor, implicit) --- graphics/yafaray/Makefile | 4 ---- .../yafaray/files/patch-src::loader::gram_loader.h | 13 +++++++++++++ .../yafaray/files/patch-src::yafraycore::buffer.h | 13 +++++++++++++ graphics/yafray/Makefile | 4 ---- .../yafray/files/patch-src::loader::gram_loader.h | 13 +++++++++++++ .../yafray/files/patch-src::yafraycore::buffer.h | 13 +++++++++++++ 6 files changed, 52 insertions(+), 8 deletions(-) create mode 100644 graphics/yafaray/files/patch-src::loader::gram_loader.h create mode 100644 graphics/yafaray/files/patch-src::yafraycore::buffer.h create mode 100644 graphics/yafray/files/patch-src::loader::gram_loader.h create mode 100644 graphics/yafray/files/patch-src::yafraycore::buffer.h diff --git a/graphics/yafaray/Makefile b/graphics/yafaray/Makefile index 6a8a47ae9ee9..bbe6fdc8ca49 100644 --- a/graphics/yafaray/Makefile +++ b/graphics/yafaray/Makefile @@ -39,10 +39,6 @@ pre-everything:: BROKEN= "Does not compile (bad C++ code)" .endif -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | \ ${XARGS} ${REINPLACE_CMD} -E -e \ diff --git a/graphics/yafaray/files/patch-src::loader::gram_loader.h b/graphics/yafaray/files/patch-src::loader::gram_loader.h new file mode 100644 index 000000000000..2f43ae477901 --- /dev/null +++ b/graphics/yafaray/files/patch-src::loader::gram_loader.h @@ -0,0 +1,13 @@ +--- src/loader/gram_loader.h.orig Thu Sep 30 14:48:47 2004 ++++ src/loader/gram_loader.h Thu Sep 30 14:49:18 2004 +@@ -22,6 +22,10 @@ + #ifndef __GRAML_H + #define __GRAML_H + ++#include ++ ++using namespace std; ++ + #include "gram_lex.h" + + struct sym_t diff --git a/graphics/yafaray/files/patch-src::yafraycore::buffer.h b/graphics/yafaray/files/patch-src::yafraycore::buffer.h new file mode 100644 index 000000000000..84dd8b1e22fe --- /dev/null +++ b/graphics/yafaray/files/patch-src::yafraycore::buffer.h @@ -0,0 +1,13 @@ +--- src/yafraycore/buffer.h.orig Thu Sep 30 14:31:34 2004 ++++ src/yafraycore/buffer.h Thu Sep 30 14:42:42 2004 +@@ -27,7 +27,10 @@ + #include + #endif + ++#include + #include ++ ++using namespace std; + + __BEGIN_YAFRAY + diff --git a/graphics/yafray/Makefile b/graphics/yafray/Makefile index 6a8a47ae9ee9..bbe6fdc8ca49 100644 --- a/graphics/yafray/Makefile +++ b/graphics/yafray/Makefile @@ -39,10 +39,6 @@ pre-everything:: BROKEN= "Does not compile (bad C++ code)" .endif -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | \ ${XARGS} ${REINPLACE_CMD} -E -e \ diff --git a/graphics/yafray/files/patch-src::loader::gram_loader.h b/graphics/yafray/files/patch-src::loader::gram_loader.h new file mode 100644 index 000000000000..2f43ae477901 --- /dev/null +++ b/graphics/yafray/files/patch-src::loader::gram_loader.h @@ -0,0 +1,13 @@ +--- src/loader/gram_loader.h.orig Thu Sep 30 14:48:47 2004 ++++ src/loader/gram_loader.h Thu Sep 30 14:49:18 2004 +@@ -22,6 +22,10 @@ + #ifndef __GRAML_H + #define __GRAML_H + ++#include ++ ++using namespace std; ++ + #include "gram_lex.h" + + struct sym_t diff --git a/graphics/yafray/files/patch-src::yafraycore::buffer.h b/graphics/yafray/files/patch-src::yafraycore::buffer.h new file mode 100644 index 000000000000..84dd8b1e22fe --- /dev/null +++ b/graphics/yafray/files/patch-src::yafraycore::buffer.h @@ -0,0 +1,13 @@ +--- src/yafraycore/buffer.h.orig Thu Sep 30 14:31:34 2004 ++++ src/yafraycore/buffer.h Thu Sep 30 14:42:42 2004 +@@ -27,7 +27,10 @@ + #include + #endif + ++#include + #include ++ ++using namespace std; + + __BEGIN_YAFRAY +