pcl: remove homebrew/science optional deps.

This commit is contained in:
Mike McQuaid 2017-12-22 17:34:13 +00:00
parent e3879384ca
commit f8914c18ee

View file

@ -33,8 +33,6 @@ class Pcl < Formula
depends_on "libusb"
depends_on "qhull"
depends_on "vtk"
depends_on "homebrew/science/openni" => :optional
depends_on "homebrew/science/openni2" => :optional
def install
args = std_cmake_args + %w[
@ -62,18 +60,6 @@ class Pcl < Formula
args << "-DBUILD_apps_modeler:BOOL=OFF"
end
if build.with? "openni"
args << "-DOPENNI_INCLUDE_DIR=#{Formula["openni"].opt_include}/ni"
else
args << "-DCMAKE_DISABLE_FIND_PACKAGE_OpenNI:BOOL=TRUE"
end
if build.with? "openni2"
ENV.append "OPENNI2_INCLUDE", "#{Formula["openni2"].opt_include}/ni2"
ENV.append "OPENNI2_LIB", "#{Formula["openni2"].opt_lib}/ni2"
args << "-DBUILD_OPENNI2:BOOL=ON"
end
mkdir "build" do
system "cmake", "..", *args
system "make", "install"