[vlc-devel] commit: Contrib: projectM build fix. (Konstantin Pavlov )
git version control
git at videolan.org
Fri Sep 11 15:53:44 CEST 2009
vlc | branch: master | Konstantin Pavlov <thresh at altlinux.org> | Fri Sep 11 17:52:41 2009 +0400| [5ce7c2e0a4caafb805933a4c90c4584ce76c02ee] | committer: Konstantin Pavlov
Contrib: projectM build fix.
Note that on my system i have to do make twice in order to build the
software. SMP-incompatible build?
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ce7c2e0a4caafb805933a4c90c4584ce76c02ee
---
extras/contrib/src/Makefile | 1 +
extras/contrib/src/Patches/libprojectM-fpic.patch | 41 +++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 17887fd..6dd75b4 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -2506,6 +2506,7 @@ DISTCLEAN_PKG += gsm-$(GSM_VERSION).tar.gz
ifdef SVN
libprojectM:
$(SVN) co $(LIBPROJECTM_SVN) libprojectM
+ patch -d libprojectM -p0 < Patches/libprojectM-fpic.patch
else
libprojectM-$(LIBPROJECTM_VERSION).tar.bz2:
$(WGET) $(LIBPROJECTM_URL)
diff --git a/extras/contrib/src/Patches/libprojectM-fpic.patch b/extras/contrib/src/Patches/libprojectM-fpic.patch
new file mode 100644
index 0000000..609ef39
--- /dev/null
+++ b/extras/contrib/src/Patches/libprojectM-fpic.patch
@@ -0,0 +1,41 @@
+Index: src/libprojectM/MilkdropPresetFactory/CMakeLists.txt
+===================================================================
+--- src/libprojectM/MilkdropPresetFactory/CMakeLists.txt (revision 1287)
++++ src/libprojectM/MilkdropPresetFactory/CMakeLists.txt (working copy)
+@@ -3,7 +3,7 @@
+
+ SET(MilkdropPresetFactory_SOURCES BuiltinFuncs.cpp Func.cpp MilkdropPreset.cpp Param.hpp PresetFrameIO.cpp CustomShape.cpp Eval.cpp MilkdropPresetFactory.cpp PerPixelEqn.cpp BuiltinParams.cpp InitCond.cpp Parser.cpp CustomWave.cpp Expr.cpp PerPointEqn.cpp Param.cpp PerFrameEqn.cpp IdlePreset.cpp)
+
+-SET (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fPIC)
++SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+
+ INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${Renderer_SOURCE_DIR})
+ LINK_DIRECTORIES(${projectM_BINARY_DIR} ${Renderer_BINARY_DIR})
+Index: src/libprojectM/NativePresetFactory/CMakeLists.txt
+===================================================================
+--- src/libprojectM/NativePresetFactory/CMakeLists.txt (revision 1287)
++++ src/libprojectM/NativePresetFactory/CMakeLists.txt (working copy)
+@@ -2,7 +2,7 @@
+ cmake_minimum_required(VERSION 2.4.0)
+
+ SET(NativePresetFactory_SOURCES NativePresetFactory.cpp)
+-SET (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fPIC)
++SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+
+ INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${Renderer_SOURCE_DIR})
+ ADD_LIBRARY(NativePresetFactory STATIC ${NativePresetFactory_SOURCES})
+Index: src/libprojectM/Renderer/CMakeLists.txt
+===================================================================
+--- src/libprojectM/Renderer/CMakeLists.txt (revision 1287)
++++ src/libprojectM/Renderer/CMakeLists.txt (working copy)
+@@ -7,8 +7,8 @@
+ Filters.cpp PerlinNoise.cpp PipelineContext.cpp Renderable.cpp BeatDetect.cpp Shader.cpp TextureManager.cpp VideoEcho.cpp
+ RenderItemDistanceMetric.cpp RenderItemMatcher.cpp ${SOIL_SOURCES})
+
+-SET (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fPIC)
+-SET (CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -fPIC)
++SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+
+ INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR})
+ ADD_LIBRARY(Renderer STATIC ${Renderer_SOURCES})
More information about the vlc-devel
mailing list