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:
Jeffrey Carpenter 2014-10-29 21:11:59 -05:00 committed by Mike McQuaid
parent 955b6bda93
commit fd5a95ca21

View file

@ -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"