Skip to content

Instantly share code, notes, and snippets.

@mitmul
Created November 27, 2012 07:29
Show Gist options
  • Save mitmul/4152945 to your computer and use it in GitHub Desktop.
Save mitmul/4152945 to your computer and use it in GitHub Desktop.
PCL(trunk, 1.7.0)
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Pcl < Formula
homepage 'http://pointclouds.org'
head 'http://svn.pointclouds.org/pcl/trunk/'
depends_on 'cmake' => :build
depends_on 'boost'
depends_on 'eigen'
depends_on 'flann'
depends_on 'qt'
depends_on 'vtk'
depends_on 'qhull'
def install
system "cmake", ".", *std_cmake_args
system "make install" # if this fails, try separate make/make install steps
end
def test
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test PCL`.
system "false"
end
end
@mitmul
Copy link
Author

mitmul commented Nov 27, 2012

Locate this pcl.rb to /usr/local/Library/Formula, and do "brew install --HEAD pcl".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment