homebrew-core/Formula/liblas.rb
Pete Gadomski 1aab408ebf liblas HEAD
Add HEAD url for liblas.

libLAS 1.7.0 is broken (libLAS/libLAS#33) when building with GDAL and
GEOTiff, so a HEAD url is necessary to get the fix until a new version
is tagged.

Closes Homebrew/homebrew#29249.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-14 13:25:27 -05:00

30 lines
937 B
Ruby

require 'formula'
class Liblas < Formula
homepage 'http://liblas.org'
url 'http://download.osgeo.org/liblas/libLAS-1.7.0.tar.gz'
sha1 'f31070efdf7bb7d6675c23c6c6c84584e3a10869'
head 'https://github.com/libLAS/libLAS.git'
depends_on 'cmake' => :build
depends_on 'libgeotiff'
depends_on 'gdal'
depends_on 'boost'
option 'with-test', 'Verify during install with `make test`'
def install
mkdir 'macbuild' do
# CMake finds boost, but variables like this were set in the last
# version of this formula. Now using the variables listed here:
# 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
system "make"
system "make test" if build.with? "test"
system "make install"
end
end
end