1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## remove-broken-FindGDAL.dpatch by <alberto@negro>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' openscenegraph-2.8.3~/OpenSceneGraph/CMakeModules/FindGDAL.cmake openscenegraph-2.8.3/OpenSceneGraph/CMakeModules/FindGDAL.cmake
9
--- openscenegraph-2.8.3~/OpenSceneGraph/CMakeModules/FindGDAL.cmake 2008-11-26 13:07:03.000000000 +0100
10
+++ openscenegraph-2.8.3/OpenSceneGraph/CMakeModules/FindGDAL.cmake 1970-01-01 01:00:00.000000000 +0100
13
-# This module defines
15
-# GDAL_FOUND, if false, do not try to link to gdal
16
-# GDAL_INCLUDE_DIR, where to find the headers
18
-# $GDALDIR is an environment variable that would
19
-# correspond to the ./configure --prefix=$GDAL_DIR
20
-# used in building gdal.
22
-# Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
23
-# for osgTerrain so I whipped this module together for completeness.
24
-# I actually don't know the conventions or where files are typically
26
-# Any real gdal users are encouraged to correct this (but please don't
27
-# break the OS X framework stuff when doing so which is what usually seems
30
-# This makes the presumption that you are include gdal.h like
33
-FIND_PATH(GDAL_INCLUDE_DIR gdal.h
37
- PATH_SUFFIXES include
40
-FIND_PATH(GDAL_INCLUDE_DIR gdal.h
41
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
43
- PATH_SUFFIXES include
46
-FIND_PATH(GDAL_INCLUDE_DIR gdal.h
48
- ~/Library/Frameworks/gdal.framework/Headers
49
- /Library/Frameworks/gdal.framework/Headers
50
- /usr/local/include/gdal
51
- /usr/local/include/GDAL
59
- /opt/local/include/gdal
60
- /opt/local/include/GDAL
61
- /opt/local/include # DarwinPorts
62
- /opt/csw/include/gdal
63
- /opt/csw/include/GDAL
64
- /opt/csw/include # Blastwave
70
-FIND_LIBRARY(GDAL_LIBRARY
71
- NAMES gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
75
- PATH_SUFFIXES lib64 lib
77
-FIND_LIBRARY(GDAL_LIBRARY
78
- NAMES gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
79
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
81
- PATH_SUFFIXES lib64 lib
83
-FIND_LIBRARY(GDAL_LIBRARY
84
- NAMES gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
86
- ~/Library/Frameworks
95
- [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;GDAL_ROOT]/lib
96
- PATH_SUFFIXES lib64 lib
100
-IF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)
101
- SET(GDAL_FOUND "YES")
102
-ENDIF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)