7a48c566f2
* Upgrade lzlib to version 1.3. * Correct configure flags. It is a C library, not C++. Before it would always compile with gcc. It only uses CC and CFLAGS. * Add make check because it's a compression library, and data integrity seems worth the 2 seconds extra. Tested on Lion and 64bit Snow Leopard with all compilers from XCode-4.3.2 and 4.0.2. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
16 lines
446 B
Ruby
16 lines
446 B
Ruby
require 'formula'
|
|
|
|
class Lzlib < Formula
|
|
homepage 'http://www.nongnu.org/lzip/lzlib.html'
|
|
url 'http://download.savannah.gnu.org/releases/lzip/lzlib-1.3.tar.gz'
|
|
sha1 '788de95072cd2cf89d763b441a7fc76395193265'
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"CC=#{ENV.cc}",
|
|
"CFLAGS=#{ENV.cflags}"
|
|
system "make"
|
|
system "make check"
|
|
system "make install"
|
|
end
|
|
end
|