liblas: add optional laszip dep
Add optional laszip dependency. Laszip (http://www.laszip.org) is a lossless compression format for las files. Closes Homebrew/homebrew#29390. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
d9d715cd7f
commit
a6fbe0ce86
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue