2010-07-31 17:46:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class OpenMesh < Formula
|
2011-09-25 01:16:51 +00:00
|
|
|
homepage 'http://openmesh.org'
|
2012-07-30 15:58:33 +00:00
|
|
|
url 'http://www.openmesh.org/fileadmin/openmesh-files/2.2/OpenMesh-2.2.tar.gz'
|
|
|
|
sha1 'ee1114d7dbcf66c4717ea9b5897f5f78ec754b91'
|
2012-02-21 06:04:21 +00:00
|
|
|
|
2011-09-25 01:16:51 +00:00
|
|
|
head 'http://openmesh.org/svnrepo/OpenMesh/trunk/', :using => :svn
|
2010-07-31 17:46:01 +00:00
|
|
|
|
2010-09-19 17:21:57 +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
|
2012-02-21 06:04:21 +00:00
|
|
|
system "cmake -DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=Release .."
|
2010-07-31 17:46:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2011-09-25 01:16:51 +00:00
|
|
|
|
|
|
|
def test
|
2012-02-22 04:48:36 +00:00
|
|
|
system "#{bin}/mconvert", '-help'
|
2011-09-25 01:16:51 +00:00
|
|
|
end
|
2010-07-31 17:46:01 +00:00
|
|
|
end
|