homebrew-core/Formula/libicns.rb
Clarence Silver 28939805f9 libicns: fix url and upgrade to version 0.8.1
Closes Homebrew/homebrew#12863.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-06-15 14:38:40 -05:00

21 lines
693 B
Ruby

require 'formula'
class Libicns < Formula
homepage 'http://icns.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz'
sha256 '335f10782fc79855cf02beac4926c4bf9f800a742445afbbf7729dab384555c2'
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 # Also build 32-bit so Wine can use it
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end