homebrew-core/Formula/libzip.rb
Duncan Tebbs 3ce10d35d6 libzip: universal binary support
Closes Homebrew/homebrew#26122.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-23 10:50:30 -08:00

18 lines
490 B
Ruby

require 'formula'
class Libzip < Formula
homepage 'http://www.nih.at/libzip/'
url 'http://www.nih.at/libzip/libzip-0.11.2.tar.gz'
sha1 'eeb3b5567fcf3532fa4bcb6440a87c7ad8507d2d'
option :universal
def install
ENV.universal_binary if build.universal?
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"CXX=#{ENV.cxx}",
"CXXFLAGS=#{ENV.cflags}"
system "make install"
end
end