openbsd-ports/geo/qgis/patches/patch-cmake_FindGEOS_cmake
landry 37e8003ad6 Update to Quantum GIS 1.2.0, see http://blog.qgis.org/node/137 for
details.
Use gettext module & modpy_lib_depends.
2009-09-06 11:19:17 +00:00

17 lines
721 B
Plaintext

$OpenBSD: patch-cmake_FindGEOS_cmake,v 1.2 2009/09/06 11:19:17 landry Exp $
--- cmake/FindGEOS.cmake.orig Tue Apr 14 14:54:07 2009
+++ cmake/FindGEOS.cmake Thu Sep 3 20:17:54 2009
@@ -114,11 +114,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)