diff options
| author | Kyungdahm Yun | 2013-09-10 22:14:59 +0900 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-14 14:31:02 +0100 |
| commit | 798d322a4297073c1c75ec0490aec8b2af1f2c57 (patch) | |
| tree | 22684217896a49703c3e03d6d4ee54d344403b90 /Library | |
| parent | aa960aaa7f0b9d913de49880a51f40bab17c51a3 (diff) | |
| download | homebrew-798d322a4297073c1c75ec0490aec8b2af1f2c57.tar.bz2 | |
gdal 1.10.1
Apply patch for build failure on OS X 10.6/7.
Closes #22438.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gdal.rb | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index dd65fa473..a234312c3 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -2,8 +2,8 @@ require 'formula' class Gdal < Formula homepage 'http://www.gdal.org/' - url 'http://download.osgeo.org/gdal/1.10.0/gdal-1.10.0.tar.gz' - sha1 'e522b95056905e4c41047fdb42c0ca172ef3ad25' + url 'http://download.osgeo.org/gdal/1.10.1/gdal-1.10.1.tar.gz' + sha1 'b4df76e2c0854625d2bedce70cc1eaf4205594ae' head 'https://svn.osgeo.org/gdal/trunk/gdal' @@ -181,6 +181,13 @@ class Gdal < Formula return args end + def patches + # Prevent build failure on 10.6 / 10.7 + # TODO: Remove when 1.10.2 releases + # http://trac.osgeo.org/gdal/ticket/5197 + DATA + end + def install # Linking flags for SQLite are not added at a critical moment when the GDAL # library is being assembled. This causes the build to fail due to missing @@ -236,3 +243,18 @@ class Gdal < Formula end end end + +__END__ +diff --git a/port/cpl_spawn.cpp b/port/cpl_spawn.cpp +index d702594..69ea3c2 100644 +--- a/port/cpl_spawn.cpp ++++ b/port/cpl_spawn.cpp +@@ -464,7 +464,7 @@ void CPLSpawnAsyncCloseErrorFileHandle(CPLSpawnedProcess* p) + #ifdef __APPLE__ + #include <TargetConditionals.h> + #endif +- #if defined(__APPLE__) && !defined(TARGET_OS_IPHONE) ++ #if defined(__APPLE__) && (!defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE==0) + #include <crt_externs.h> + #define environ (*_NSGetEnviron()) + #else |
