diff options
| author | José MartÃnez | 2011-06-13 16:04:18 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-15 08:06:22 -0700 |
| commit | c5df40ea8cf015bc699ec96ef3b993920fa1b931 (patch) | |
| tree | 5d12e766977b73874740efa9a1268a94a4e7bec5 | |
| parent | dcdfcc31d9a8c22a04cc7080cd1cf737d9c2d048 (diff) | |
| download | homebrew-c5df40ea8cf015bc699ec96ef3b993920fa1b931.tar.bz2 | |
libicns: fix for Lion using libpng 1.5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/libicns.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/libicns.rb b/Library/Formula/libicns.rb index f3a72bd6a..9aacda951 100644 --- a/Library/Formula/libicns.rb +++ b/Library/Formula/libicns.rb @@ -5,11 +5,14 @@ class Libicns < Formula homepage 'http://icns.sourceforge.net/' md5 'ff4624353a074c6cb51e41d145070e10' - depends_on 'jasper' # or openjpeg + depends_on 'jasper' def install + # Fix for libpng 1.5 on Lion, may not be needed in head version of libicns + inreplace 'icnsutils/png2icns.c', 'png_set_gray_1_2_4_to_8', 'png_set_expand_gray_1_2_4_to_8' + ENV.libpng - ENV.universal_binary # build fat so wine can use it + ENV.universal_binary # Also build 32-bit so Wine can use it system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" |
