2012-03-10 15:01:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libqglviewer < Formula
|
|
|
|
homepage 'http://www.libqglviewer.com/'
|
2014-03-13 08:05:30 +00:00
|
|
|
url 'http://www.libqglviewer.com/src/libQGLViewer-2.5.1.tar.gz'
|
|
|
|
sha1 '21e10a28153cb649e29bbe9a288eecc280b30f0e'
|
2013-05-30 14:19:49 +00:00
|
|
|
|
|
|
|
head 'https://github.com/GillesDebunne/libQGLViewer.git'
|
2012-03-10 15:01:10 +00:00
|
|
|
|
2014-03-13 08:08:38 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "6c20fb8bac46fad1829c90f07b1d80b4ba797799" => :mavericks
|
|
|
|
sha1 "c3abf90b9e9eaa835e5c5faa979670175e2715a2" => :mountain_lion
|
|
|
|
sha1 "0ef379d978e5277914f9887bbf6240aa7f81294a" => :lion
|
|
|
|
end
|
|
|
|
|
2012-08-10 05:15:51 +00:00
|
|
|
option :universal
|
2012-03-10 15:01:10 +00:00
|
|
|
|
2012-08-10 05:15:51 +00:00
|
|
|
depends_on 'qt'
|
2012-03-10 15:01:10 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["PREFIX=#{prefix}"]
|
2012-10-04 14:40:16 +00:00
|
|
|
args << "CONFIG += x86 x86_64" if build.universal?
|
2012-03-10 15:01:10 +00:00
|
|
|
|
|
|
|
cd 'QGLViewer' do
|
|
|
|
system "qmake", *args
|
|
|
|
system "make"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|