diff options
| author | Shawn Walker | 2012-03-24 10:35:42 -0700 |
|---|---|---|
| committer | Jack Nagel | 2012-04-15 15:49:34 -0500 |
| commit | f202962d91f475ad59efa1f9b1f312fdd064d791 (patch) | |
| tree | b64fd9ca2e497d2dea58f9ac45e647611db88f4f /Library/Formula/libzzip.rb | |
| parent | 5bf140090054d5b36888f6cc9156c09baf700782 (diff) | |
| download | homebrew-f202962d91f475ad59efa1f9b1f312fdd064d791.tar.bz2 | |
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>
Diffstat (limited to 'Library/Formula/libzzip.rb')
| -rw-r--r-- | Library/Formula/libzzip.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/libzzip.rb b/Library/Formula/libzzip.rb index f960f5d1d..8816bfe76 100644 --- a/Library/Formula/libzzip.rb +++ b/Library/Formula/libzzip.rb @@ -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. |
