homebrew-core/Formula/pdal.rb

43 lines
1.4 KiB
Ruby

class Pdal < Formula
desc "Point data abstraction library"
homepage "https://www.pdal.io/"
url "https://github.com/PDAL/PDAL/releases/download/2.2.0/PDAL-2.2.0-src.tar.gz"
sha256 "421e94beafbfda6db642e61199bc4605eade5cab5d2e54585e08f4b27438e568"
license "BSD-3-Clause"
head "https://github.com/PDAL/PDAL.git"
bottle do
sha256 "107880f44e9d7c5d96f4724adf6060776cba1fce684334844b0add011f8de887" => :catalina
sha256 "7a65c661b61494c38838df4c7843f44cec465750dbaf93a845c8e51f868ef07a" => :mojave
sha256 "586954f437ffcfb37f83d9d131b66efbcaf44fbb1b79d359e10f4b89924d4ef9" => :high_sierra
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "gdal"
depends_on "hdf5"
depends_on "laszip"
depends_on "numpy"
depends_on "pcl"
depends_on "postgresql"
def install
system "cmake", ".", *std_cmake_args,
"-DWITH_LASZIP=TRUE",
"-DBUILD_PLUGIN_GREYHOUND=ON",
"-DBUILD_PLUGIN_ICEBRIDGE=ON",
"-DBUILD_PLUGIN_PCL=ON",
"-DBUILD_PLUGIN_PGPOINTCLOUD=ON",
"-DBUILD_PLUGIN_PYTHON=ON",
"-DBUILD_PLUGIN_SQLITE=ON"
system "make", "install"
rm_rf "test/unit"
doc.install "examples", "test"
end
test do
system bin/"pdal", "info", doc/"test/data/las/interesting.las"
end
end