tamiko      15/01/03 11:24:17

  Added:                poppler-0.28.1-fix-multilib-configuration.patch
  Log:
  workaround for multilib portage, fix qt library locations for 32bit variant
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
BD3A97A3)

Revision  Changes    Path
1.1                  
app-text/poppler/files/poppler-0.28.1-fix-multilib-configuration.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/poppler/files/poppler-0.28.1-fix-multilib-configuration.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/poppler/files/poppler-0.28.1-fix-multilib-configuration.patch?rev=1.1&content-type=text/plain

Index: poppler-0.28.1-fix-multilib-configuration.patch
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7178d25..934f38f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,6 +119,18 @@ 
else(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSIO
   message("-- CMake >= 2.8.8 is needed to enable Qt5")
 endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} 
VERSION_GREATER 2.8.7)
 
+#
+# Ugly workaround: Manually patch library paths for Qt4 and Qt5:
+#
+IF( "${CMAKE_CXX_FLAGS}" MATCHES "-m32")
+  GET_CMAKE_PROPERTY(_res VARIABLES)
+  FOREACH(_var ${_res})
+    IF(_var MATCHES "^QT" AND ${_var} MATCHES "lib64")
+      STRING(REPLACE "lib64" "lib32" ${_var} "${${_var}}")
+    ENDIF()
+  ENDFOREACH()
+ENDIF()
+
 macro_optional_find_package(Cairo ${CAIRO_VERSION})
 if(CAIRO_FOUND)
   set(HAVE_CAIRO ${CAIRO_FOUND})




Reply via email to