diff options
Diffstat (limited to 'Library/Formula/gdal.rb')
| -rw-r--r-- | Library/Formula/gdal.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index 35e29d4d1..91654a00f 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -55,10 +55,6 @@ class Gdal < Formula depends_on "poppler" end - def png_prefix - MacOS.version >= :mountain_lion ? HOMEBREW_PREFIX/"opt/libpng" : MacOS::X11.prefix - end - def get_configure_args args = [ # Base configuration. @@ -79,7 +75,7 @@ class Gdal < Formula # Backends supported by OS X. "--with-libiconv-prefix=/usr", "--with-libz=/usr", - "--with-png=#{png_prefix}", + "--with-png=#{Formula["libpng"].opt_prefix}", "--with-expat=/usr", "--with-curl=/usr/bin/curl-config", |
