shared array boost 1.53 fix
This commit is contained in:
parent
f0faccb446
commit
acb4140753
|
@ -0,0 +1,12 @@
|
||||||
|
diff -up simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp.boostfix simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp
|
||||||
|
--- simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp.boostfix 2013-02-13 20:08:12.166986477 +0330
|
||||||
|
+++ simspark-0.2.3/lib/oxygen/geometryserver/indexbuffer.cpp 2013-02-13 20:08:21.157874076 +0330
|
||||||
|
@@ -27,7 +27,7 @@ using namespace oxygen;
|
||||||
|
using namespace boost;
|
||||||
|
|
||||||
|
IndexBuffer::IndexBuffer()
|
||||||
|
- : mMaxIndex(0), mNumIndex(0), mIndex(0) {}
|
||||||
|
+ : mMaxIndex(0), mNumIndex(0), mIndex() {}
|
||||||
|
|
||||||
|
IndexBuffer::~IndexBuffer()
|
||||||
|
{
|
|
@ -8,6 +8,7 @@ License: GPLv2
|
||||||
URL: http://simspark.sourceforge.net
|
URL: http://simspark.sourceforge.net
|
||||||
Source0: http://downloads.sourceforge.net/simspark/%{name}-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/simspark/%{name}-%{version}.tar.gz
|
||||||
Patch0: %{name}-confscript-mlibfix.patch
|
Patch0: %{name}-confscript-mlibfix.patch
|
||||||
|
Patch1: %{name}-boostfix.patch
|
||||||
|
|
||||||
BuildRequires: cmake boost-devel ruby ruby-devel SDL-devel tex(latex)
|
BuildRequires: cmake boost-devel ruby ruby-devel SDL-devel tex(latex)
|
||||||
BuildRequires: ode-devel libGL-devel DevIL-devel freetype-devel libGLU-devel
|
BuildRequires: ode-devel libGL-devel DevIL-devel freetype-devel libGLU-devel
|
||||||
|
@ -35,9 +36,10 @@ developing applications that use %{name}.
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .mlibfix
|
%patch0 -p1 -b .mlibfix
|
||||||
|
%patch1 -p1 -b .boostfix
|
||||||
# Applied upstream
|
# Applied upstream
|
||||||
find "(" -name "*.cpp" -o -name "*.h" ")" -exec sed -i.boostfix "s|shared_dynamic_cast|dynamic_pointer_cast|g" {} \;
|
find "(" -name "*.cpp" -o -name "*.h" ")" -exec sed -i.boostfix "s|shared_dynamic_cast|dynamic_pointer_cast|g" {} \;
|
||||||
find "(" -name "*.cpp" -o -name "*.h" ")" -exec sed -i.boostfix "s|shared_static_cast|static_pointer_cast|g" {} \;
|
find "(" -name "*.cpp" -o -name "*.h" ")" -exec sed -i.boostfix2 "s|shared_static_cast|static_pointer_cast|g" {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
Loading…
Reference in New Issue