homebrew-core/Formula/libicns.rb

27 lines
674 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libicns < Formula
homepage 'http://icns.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz'
sha256 '335f10782fc79855cf02beac4926c4bf9f800a742445afbbf7729dab384555c2'
2014-03-23 02:51:41 +00:00
revision 1
2013-04-05 04:00:07 +00:00
option :universal
2013-01-31 19:06:10 +00:00
depends_on 'jasper'
2014-03-23 02:51:41 +00:00
depends_on 'libpng'
def install
2013-01-31 19:06:10 +00:00
# Fix for libpng 1.5
inreplace 'icnsutils/png2icns.c',
'png_set_gray_1_2_4_to_8',
'png_set_expand_gray_1_2_4_to_8'
2013-01-31 19:06:10 +00:00
ENV.universal_binary if build.universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end