aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/open-mesh.rb
blob: 49d13c796e5e3a013ca6112f675238e9587ca748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class OpenMesh <Formula
  url 'http://openmesh.org/fileadmin/openmesh-files/2.0RC5/OpenMesh-2.0-RC5.tar.gz'
  homepage 'http://www.openmesh.org'
  md5 '9b4f24a7b1a31cfd65aada58672a6c09'

  depends_on 'cmake'
  depends_on 'qt'
  depends_on 'glew'

  def install
    mkdir 'openmesh-build'
    Dir.chdir 'openmesh-build' do
      system "cmake .. -DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=Release"
      system "make"
      system "make install"
    end
  end
end