openbsd-ports/geo/qgis/patches/patch-cmake_FindGEOS_cmake
landry afa5a71b2d Import Quantum GIS 1.0.2:
QGIS aims to be an easy to use GIS, providing common functions and
features. The initial goal was to provide a GIS data viewer, but now
it also permits to edit, create and analyze lots of spatial datas.
QGIS supports a number of raster and vector data formats, with new
support easily added using the plugin architecture.

with some tweaks by and ok ajacoutot@
2009-06-01 23:14:58 +00:00

17 lines
725 B
Plaintext

$OpenBSD: patch-cmake_FindGEOS_cmake,v 1.1.1.1 2009/06/01 23:14:58 landry Exp $
--- cmake/FindGEOS.cmake.orig Fri Mar 27 18:32:47 2009
+++ cmake/FindGEOS.cmake Sun May 31 10:50:58 2009
@@ -103,11 +103,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)