Revision: 96100 https://trac.macports.org/changeset/96100 Author: mmoll@macports.org Date: 2012-07-31 13:23:34 -0700 (Tue, 31 Jul 2012) Log Message: ----------- graphics/assimp: mountain lion patch (should be harmless on older os x releases) Modified Paths: -------------- trunk/dports/graphics/assimp/Portfile Added Paths: ----------- trunk/dports/graphics/assimp/files/patch-code-STEPFile.h.diff Modified: trunk/dports/graphics/assimp/Portfile =================================================================== --- trunk/dports/graphics/assimp/Portfile 2012-07-31 20:22:18 UTC (rev 96099) +++ trunk/dports/graphics/assimp/Portfile 2012-07-31 20:23:34 UTC (rev 96100) @@ -4,6 +4,7 @@ PortGroup cmake 1.0 name assimp version 3.0.1270 +revision 1 categories graphics maintainers openmaintainer mmoll description library to import/export 3D model formats @@ -21,7 +22,8 @@ sha1 e80a3a4326b649ed6585c0ce312ed6dd68942834 \ rmd160 7bd166f6c8df2e2000e3b93122b6eb70738d1cc3 distname ${name}--${version}-source-only -patchfiles patch-CMakeLists.txt.diff +patchfiles patch-CMakeLists.txt.diff \ + patch-code-STEPFile.h.diff use_zip yes depends_lib port:boost port:zlib Added: trunk/dports/graphics/assimp/files/patch-code-STEPFile.h.diff =================================================================== --- trunk/dports/graphics/assimp/files/patch-code-STEPFile.h.diff (rev 0) +++ trunk/dports/graphics/assimp/files/patch-code-STEPFile.h.diff 2012-07-31 20:23:34 UTC (rev 96100) @@ -0,0 +1,18 @@ +--- code/STEPFile.h.orig 2012-07-31 15:16:05.000000000 -0500 ++++ code/STEPFile.h 2012-07-31 15:16:53.000000000 -0500 +@@ -195,13 +195,13 @@ + // conversion support. + template <typename T> + const T& ResolveSelect(const DB& db) const { +- return Couple<T>(db).MustGetObject(To<EXPRESS::ENTITY>())->To<T>(); ++ return Couple<T>(db).MustGetObject(To<EXPRESS::ENTITY>())->template To<T>(); + } + + template <typename T> + const T* ResolveSelectPtr(const DB& db) const { + const EXPRESS::ENTITY* e = ToPtr<EXPRESS::ENTITY>(); +- return e?Couple<T>(db).MustGetObject(*e)->ToPtr<T>():(const T*)0; ++ return e?Couple<T>(db).MustGetObject(*e)->template ToPtr<T>():(const T*)0; + } + + public: