aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-08-25 11:04:01 -0700
committerMisty De Meo2013-08-25 11:06:12 -0700
commit3fd2d6d04542e5d51cc3d492e3fa1af090e26396 (patch)
treea62995a23a109c50404f7ef17a0a0cd0ed9df87b /Library
parent8f9d97d5a36b3af42d129dc4affbac088daea6ec (diff)
downloadhomebrew-3fd2d6d04542e5d51cc3d492e3fa1af090e26396.tar.bz2
freeglut: add universal option
As requested in: http://librelist.com/browser//homebrew/2013/8/25/how-do-i-request-a-modfication-to-a-formula/
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/freeglut.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/freeglut.rb b/Library/Formula/freeglut.rb
index e34ff5aea..10fdda7a9 100644
--- a/Library/Formula/freeglut.rb
+++ b/Library/Formula/freeglut.rb
@@ -8,6 +8,7 @@ class Freeglut < Formula
# Examples won't build on Snow Leopard as one of them requires
# a header the system provided X11 doesn't have.
option 'with-examples', "Build the examples."
+ option :universal
depends_on :x11
@@ -16,6 +17,7 @@ class Freeglut < Formula
end
def install
+ ENV.universal_binary if build.universal?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"