glew: add option to build universal.
This adds the option to build GLEW as a universal "fat" library. Closes Homebrew/homebrew#33726. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
955b6bda93
commit
fd5a95ca21
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue