aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/liblas.rb
diff options
context:
space:
mode:
authorPete Gadomski2014-05-19 10:08:10 -0600
committerJack Nagel2014-05-19 13:24:34 -0500
commit02b66f1063c26c9ad0da9594cb7fcd31401b3474 (patch)
treed91947a823f8924423679d9658df9af41e944265 /Library/Formula/liblas.rb
parent4eb999d7dcdb3818798913830edd9896788fab31 (diff)
downloadhomebrew-02b66f1063c26c9ad0da9594cb7fcd31401b3474.tar.bz2
liblas: add optional laszip dep
Add optional laszip dependency. Laszip (http://www.laszip.org) is a lossless compression format for las files. Closes #29390. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/liblas.rb')
-rw-r--r--Library/Formula/liblas.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/liblas.rb b/Library/Formula/liblas.rb
index a78360043..0fc058a30 100644
--- a/Library/Formula/liblas.rb
+++ b/Library/Formula/liblas.rb
@@ -11,6 +11,7 @@ class Liblas < Formula
depends_on 'libgeotiff'
depends_on 'gdal'
depends_on 'boost'
+ depends_on 'laszip' => :optional
option 'with-test', 'Verify during install with `make test`'
@@ -21,7 +22,9 @@ class Liblas < Formula
# http://liblas.org/compilation.html
ENV['Boost_INCLUDE_DIR'] = "#{HOMEBREW_PREFIX}/include"
ENV['Boost_LIBRARY_DIRS'] = "#{HOMEBREW_PREFIX}/lib"
- system "cmake", "..", "-DWITH_GEOTIFF=ON", "-DWITH_GDAL=ON", *std_cmake_args
+ args = ["-DWITH_GEOTIFF=ON", "-DWITH_GDAL=ON"] + std_cmake_args
+ args << "-DWITH_LASZIP=ON" if build.with? 'laszip'
+ system "cmake", "..", *args
system "make"
system "make test" if build.with? "test"
system "make install"