forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zlib.rb
32 lines (27 loc) · 956 Bytes
/
zlib.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'formula'
class Zlib < Formula
homepage 'http://www.zlib.net/'
url 'http://zlib.net/zlib-1.2.7.tar.gz'
sha1 '4aa358a95d1e5774603e6fa149c926a80df43559'
keg_only :provided_by_osx
def patches; DATA end
def install
system "./configure", "--prefix=#{prefix}"
system "make install"
end
end
# /usr/bin/libtool is no use to CLT-less rigs
__END__
diff --git a/configure b/configure
index 36c7d8e..0c97d7b 100755
--- a/configure
+++ b/configure
@@ -231,7 +231,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) >> configure.log 2>&1; then
SHAREDLIBV=libz.$VER$shared_ext
SHAREDLIBM=libz.$VER1$shared_ext
LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"}
- AR="/usr/bin/libtool"
+ AR="libtool"
ARFLAGS="-o" ;;
*) LDSHARED=${LDSHARED-"$cc -shared"} ;;
esac