summaryrefslogtreecommitdiff
path: root/geography/qgis/patches/patch-cmake_FindGEOS.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'geography/qgis/patches/patch-cmake_FindGEOS.cmake')
-rw-r--r--geography/qgis/patches/patch-cmake_FindGEOS.cmake33
1 files changed, 33 insertions, 0 deletions
diff --git a/geography/qgis/patches/patch-cmake_FindGEOS.cmake b/geography/qgis/patches/patch-cmake_FindGEOS.cmake
new file mode 100644
index 00000000000..f084a37967f
--- /dev/null
+++ b/geography/qgis/patches/patch-cmake_FindGEOS.cmake
@@ -0,0 +1,33 @@
+$NetBSD: patch-cmake_FindGEOS.cmake,v 1.1 2012/01/23 08:58:00 adam Exp $
+
+Avoid application bundles.
+
+--- cmake/FindGEOS.cmake.orig 2011-06-07 06:45:26.000000000 +0000
++++ cmake/FindGEOS.cmake
+@@ -45,7 +45,7 @@ ELSE(WIN32)
+
+ # try to use framework on mac
+ # want clean framework path, not unix compatibility path
+- IF (APPLE)
++ IF (ELPPA)
+ IF (CMAKE_FIND_FRAMEWORK MATCHES "FIRST"
+ OR CMAKE_FRAMEWORK_PATH MATCHES "ONLY"
+ OR NOT CMAKE_FIND_FRAMEWORK)
+@@ -70,7 +70,7 @@ ELSE(WIN32)
+ ENDIF (GEOS_LIBRARY)
+ SET (CMAKE_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK_save} CACHE STRING "" FORCE)
+ ENDIF ()
+- ENDIF (APPLE)
++ ENDIF (ELPPA)
+
+ IF (NOT GEOS_INCLUDE_DIR OR NOT GEOS_LIBRARY OR NOT GEOS_CONFIG)
+ # didn't find OS X framework, and was not set by user
+@@ -114,7 +114,7 @@ ELSE(WIN32)
+ ## split off the link dirs (for rpath)
+ ## use regular expression to match wildcard equivalent "-L*<endchar>"
+ ## with <endchar> is a space or a semicolon
+- STRING(REGEX MATCHALL "[-][L]([^ ;])+"
++ STRING(REGEX MATCH "[-][L]([^ ;])+"
+ GEOS_LINK_DIRECTORIES_WITH_PREFIX
+ "${GEOS_CONFIG_LIBS}" )
+ #MESSAGE("DBG GEOS_LINK_DIRECTORIES_WITH_PREFIX=${GEOS_LINK_DIRECTORIES_WITH_PREFIX}")