2010-12-16 01:49:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Glfw < Formula
|
2010-12-16 01:49:19 +00:00
|
|
|
homepage 'http://www.glfw.org/'
|
2013-04-24 04:05:02 +00:00
|
|
|
url 'http://sourceforge.net/projects/glfw/files/glfw/2.7.8/glfw-2.7.8.zip'
|
|
|
|
sha1 'b4f51221ffed0a064bb413074544a530ae2751ec'
|
2010-12-16 01:49:19 +00:00
|
|
|
|
2013-06-07 02:55:01 +00:00
|
|
|
option :universal
|
|
|
|
|
2010-12-16 01:49:19 +00:00
|
|
|
def install
|
2013-06-07 02:55:01 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-04-18 03:56:27 +00:00
|
|
|
system 'make', "PREFIX=#{prefix}", 'cocoa-dist-install'
|
2010-12-16 01:49:19 +00:00
|
|
|
end
|
|
|
|
end
|