summaryrefslogtreecommitdiff
path: root/devel/ode/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-05-31 07:39:54 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-05-31 07:39:54 +0000
commit57b23f591f859ebaac6e24877140d05bf8b229d1 (patch)
tree31b8ae01df5ab263323739588e72cfffb0c07aec /devel/ode/files
parent- Change last few occurences of USE_GTK=yes to USE_GNOME=gtk12 (diff)
- enable an "OPCODE" library that is required to support triangle mesh objects.
- changes the header include order so as not to pick up installed includes before local ones - suppresses the unneeded use of values.h - works around an inlining limitation in g++ PR: ports/81610 Submitted by: Jonathan Hanna <jhanna@shaw.ca> Approved by: David Yeske <dyeske@yahoo.com> (maintainer)
Notes
Notes: svn path=/head/; revision=136492
Diffstat (limited to 'devel/ode/files')
-rw-r--r--devel/ode/files/patch-Makefile4
-rw-r--r--devel/ode/files/patch-OPC_TreeCollider.h30
2 files changed, 32 insertions, 2 deletions
diff --git a/devel/ode/files/patch-Makefile b/devel/ode/files/patch-Makefile
index f5b40782f98d..0507e3210d1b 100644
--- a/devel/ode/files/patch-Makefile
+++ b/devel/ode/files/patch-Makefile
@@ -5,11 +5,11 @@
%$(OBJ): %.c
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
-+ $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OUT)$@ $<
++ $(CC) $(C_INC)$(INCPATH) $(C_FLAGS) $(DEFINES) $(C_OUT)$@ $<
%$(OBJ): %.cpp
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(INC_OPCODE) $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
-+ $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(INC_OPCODE) $(DEFINES) $(C_OUT)$@ $<
++ $(CC) $(C_INC)$(INCPATH) $(C_FLAGS) $(INC_OPCODE) $(DEFINES) $(C_OUT)$@ $<
%.exe: %$(OBJ)
- $(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH)
diff --git a/devel/ode/files/patch-OPC_TreeCollider.h b/devel/ode/files/patch-OPC_TreeCollider.h
new file mode 100644
index 000000000000..297a0aeaa80f
--- /dev/null
+++ b/devel/ode/files/patch-OPC_TreeCollider.h
@@ -0,0 +1,30 @@
+--- OPCODE/OPC_TreeCollider.h.orig Mon May 23 20:11:48 2005
++++ OPCODE/OPC_TreeCollider.h Mon May 23 20:16:16 2005
+@@ -28,6 +28,13 @@
+ //! even entering the recursive collision code.
+ struct OPCODE_API BVTCache : Pair
+ {
++ inline_ void ResetCountDown()
++ {
++#ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
++ CountDown = 50;
++#endif // __MESHMERIZER_H__
++ }
++
+ //! Constructor
+ inline_ BVTCache()
+ {
+@@ -46,13 +53,6 @@
+ SepVector.pid = 0;
+ SepVector.qid = 0;
+ SepVector.SV = Point(1.0f, 0.0f, 0.0f);
+-#endif // __MESHMERIZER_H__
+- }
+-
+- inline_ void ResetCountDown()
+- {
+-#ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
+- CountDown = 50;
+ #endif // __MESHMERIZER_H__
+ }
+