Permalink
Browse files

libzzip: add universal option

 - Fix configure's failure to determine sizeof(long); reported upstream:
   https://sourceforge.net/tracker/?func=detail&aid=3511669&group_id=6389&atid=356389

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 5bf1400 commit f202962d91f475ad59efa1f9b1f312fdd064d791 @binarycrusader binarycrusader committed with jacknagel Mar 24, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 Library/Formula/libzzip.rb
View
@@ -7,7 +7,17 @@ class Libzzip < Formula
depends_on 'pkg-config' => :build
+ def options
+ [[ '--universal', 'Build a universal binary' ]]
+ end
+
def install
+ if ARGV.build_universal?
+ ENV.universal_binary
+ # See: https://sourceforge.net/tracker/?func=detail&aid=3511669&group_id=6389&atid=356389
+ ENV["ac_cv_sizeof_long"] = "(LONG_BIT/8)"
+ end
+
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
ENV.deparallelize # fails without this when a compressed file isn't ready.

0 comments on commit f202962

Please sign in to comment.