openbsd-ports/geo/qgis/patches/patch-cmake_FindGEOS_cmake
landry 2d3c925c45 Update to QuantumGIS 1.6.0.
See http://blog.qgis.org/node/146 for details on this release.
2010-12-08 09:07:48 +00:00

17 lines
742 B
Plaintext

$OpenBSD: patch-cmake_FindGEOS_cmake,v 1.3 2010/12/08 09:07:48 landry Exp $
--- cmake/FindGEOS.cmake.orig Mon Nov 29 17:54:29 2010
+++ cmake/FindGEOS.cmake Mon Nov 29 17:54:44 2010
@@ -131,11 +131,7 @@ ELSE(WIN32)
ENDIF (GEOS_LIB_NAME_WITH_PREFIX)
#MESSAGE("DBG GEOS_LIB_NAME=${GEOS_LIB_NAME}")
- IF (APPLE)
- SET(GEOS_LIBRARY ${GEOS_LINK_DIRECTORIES}/lib${GEOS_LIB_NAME}.dylib CACHE STRING INTERNAL)
- ELSE (APPLE)
- SET(GEOS_LIBRARY ${GEOS_LINK_DIRECTORIES}/lib${GEOS_LIB_NAME}.so CACHE STRING INTERNAL)
- ENDIF (APPLE)
+ FIND_LIBRARY(GEOS_LIBRARY NAMES geos_c PATHS ${LOCALBASE}/lib)
#MESSAGE("DBG GEOS_LIBRARY=${GEOS_LIBRARY}")
ELSE(GEOS_CONFIG)