openbsd-ports/geo/qgis/patches/patch-cmake_FindGDAL_cmake
landry c7bf069305 Long awaited update to QGIS 2.4.0.
Since 1.8, QGIS requires bison > 2.4 at build time, but since noone
cares enough our bison is still stuck at 2.3. To workaround this,
add the parsers generated with a WIP bison 2.6.2 to files/, and comment
out the Cmake goo to call/detect bison.

Add patches from http://hub.qgis.org/issues/10762.

I've used QGIS 1.8, 2.0, 2.2 and 2.4 without issues since > 2 years.
2014-08-20 08:54:45 +00:00

13 lines
608 B
Plaintext

$OpenBSD: patch-cmake_FindGDAL_cmake,v 1.4 2014/08/20 08:54:45 landry Exp $
--- cmake/FindGDAL.cmake.orig Fri Jun 27 14:00:08 2014
+++ cmake/FindGDAL.cmake Mon Aug 18 15:49:46 2014
@@ -158,7 +158,7 @@ ELSE(WIN32)
SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.dylib CACHE STRING INTERNAL FORCE)
ENDIF (NOT GDAL_LIBRARY)
ELSE (APPLE)
- SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.so CACHE STRING INTERNAL)
+ FIND_LIBRARY(GDAL_LIBRARY NAMES gdal PATHS ${LOCALBASE}/lib)
ENDIF (APPLE)
ELSE(GDAL_CONFIG)