openbsd-ports/geo/qgis/patches/patch-cmake_FindPostgres_cmake

17 lines
656 B
Plaintext
Raw Normal View History

$OpenBSD: patch-cmake_FindPostgres_cmake,v 1.3 2010/12/08 09:07:48 landry Exp $
--- cmake/FindPostgres.cmake.orig Sat Oct 16 16:52:43 2010
+++ cmake/FindPostgres.cmake Mon Nov 29 17:31:37 2010
@@ -57,11 +57,7 @@ ELSE(WIN32)
EXEC_PROGRAM(${POSTGRES_CONFIG}
ARGS --libdir
OUTPUT_VARIABLE PG_TMP)
- IF (APPLE)
- SET(POSTGRES_LIBRARY ${PG_TMP}/libpq.dylib CACHE STRING INTERNAL)
- ELSE (APPLE)
- SET(POSTGRES_LIBRARY ${PG_TMP}/libpq.so CACHE STRING INTERNAL)
- ENDIF (APPLE)
+ FIND_LIBRARY(POSTGRES_LIBRARY NAMES pq libpq libpqdll PATHS ${LOCALBASE}/lib)
ENDIF(POSTGRES_CONFIG)
ENDIF(UNIX)