Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.99k stars 11.36k forks source link

New Formula: OpenMesh #2032

Closed celil-kj closed 14 years ago

celil-kj commented 14 years ago
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
    FileUtils.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
adamv commented 14 years ago

Please fork and commit and link to the commit; it is easier to pull than to copy, create file, paste, etc. Plus that way you get credit in the history

adamv commented 14 years ago

Added.