diff options
| author | nibbles 2bits | 2012-09-06 07:59:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-07 07:22:50 -0700 |
| commit | 01c6f8a28dbd692a53c4e30e16f39d950ff7b1c5 (patch) | |
| tree | 557e7f2e2fa7d09b455bb50e70caeff7ba9303fa /Library | |
| parent | 727cbc2f91e15a99428e3b3b7ad956c14bcda061 (diff) | |
| download | homebrew-01c6f8a28dbd692a53c4e30e16f39d950ff7b1c5.tar.bz2 | |
libzzip 0.13.62 + option for sdl
- Upgade libzzip to 0.13.62
- Add an option to build the SDL bindings
- Add a flag for `--without-debug`
Closes #14764.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libzzip.rb | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Library/Formula/libzzip.rb b/Library/Formula/libzzip.rb index e35fc5465..b15e918a2 100644 --- a/Library/Formula/libzzip.rb +++ b/Library/Formula/libzzip.rb @@ -1,11 +1,14 @@ require 'formula' class Libzzip < Formula - url 'http://downloads.sourceforge.net/project/zziplib/zziplib13/0.13.61/zziplib-0.13.61.tar.bz2' homepage 'http://sourceforge.net/projects/zziplib/' - sha1 'c7e526165e674962303d62798963d89524636813' + url 'http://downloads.sourceforge.net/project/zziplib/zziplib13/0.13.62/zziplib-0.13.62.tar.bz2' + sha1 'cf8b642abd9db618324a1b98cc71492a007cd687' + + option 'sdl', 'Enable SDL usage and create SDL_rwops_zzip.pc' depends_on 'pkg-config' => :build + depends_on 'sdl' if build.include? 'sdl' option :universal @@ -16,9 +19,15 @@ class Libzzip < Formula ENV["ac_cv_sizeof_long"] = "(LONG_BIT/8)" end - system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" - system "make install" + args = %W[ + --without-debug + --disable-dependency-tracking + --prefix=#{prefix} + ] + args << '--enable-sdl' if build.include? 'sdl' + system './configure', *args + system 'make install' ENV.deparallelize # fails without this when a compressed file isn't ready. - system "make check" # runing this after install bypasses DYLD issues. + system 'make check' # runing this after install bypasses DYLD issues. end end |
