homebrew-core/Formula/open-mesh.rb

25 lines
581 B
Ruby
Raw Normal View History

2010-07-31 17:46:01 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class OpenMesh < Formula
homepage 'http://openmesh.org'
url 'http://www.openmesh.org/fileadmin/openmesh-files/2.3/OpenMesh-2.3.tar.gz'
sha1 '3cccb46afd6f8b0c60dfbdcd883806f77efd14c3'
head 'http://openmesh.org/svnrepo/OpenMesh/trunk/', :using => :svn
2010-07-31 17:46:01 +00:00
depends_on 'cmake' => :build
2010-07-31 17:46:01 +00:00
depends_on 'qt'
depends_on 'glew'
def install
2012-02-22 04:48:36 +00:00
mkdir 'openmesh-build' do
system "cmake -DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=Release .."
2010-07-31 17:46:01 +00:00
system "make install"
end
end
def test
2012-02-22 04:48:36 +00:00
system "#{bin}/mconvert", '-help'
end
2010-07-31 17:46:01 +00:00
end