diff options
| author | Jeffrey Carpenter | 2014-10-29 21:11:59 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-30 08:30:39 +0000 |
| commit | 5a1eed40d905c4beb8b68ecdbbd3e571009bc798 (patch) | |
| tree | 79f48c1c91e54b96fbf3e9e445aaa20eddff2cb0 /Library | |
| parent | 4975bd61aa194b08c7c790daaf296100552d590a (diff) | |
| download | homebrew-5a1eed40d905c4beb8b68ecdbbd3e571009bc798.tar.bz2 | |
glew: add option to build universal.
This adds the option to build GLEW as a universal "fat" library.
Closes #33726.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/glew.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/glew.rb b/Library/Formula/glew.rb index 940e28906..c582e1546 100644 --- a/Library/Formula/glew.rb +++ b/Library/Formula/glew.rb @@ -13,10 +13,14 @@ class Glew < Formula sha1 "0ea8a4b4ec385c39eb52732ce8527f68410e35da" => :mountain_lion end + option :universal + def install # Makefile directory race condition on lion ENV.deparallelize + ENV.universal_binary if build.universal? + inreplace "glew.pc.in", "Requires: @requireslib@", "" system "make", "GLEW_PREFIX=#{prefix}", "GLEW_DEST=#{prefix}", "all" system "make", "GLEW_PREFIX=#{prefix}", "GLEW_DEST=#{prefix}", "install.all" |
