libicns: add --universal as an option
This commit is contained in:
parent
b6e830b4ee
commit
28f37d4e80
1 changed files with 7 additions and 3 deletions
|
@ -5,14 +5,18 @@ class Libicns < Formula
|
|||
url 'http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz'
|
||||
sha256 '335f10782fc79855cf02beac4926c4bf9f800a742445afbbf7729dab384555c2'
|
||||
|
||||
option :uinversal
|
||||
|
||||
depends_on 'jasper'
|
||||
depends_on :libpng
|
||||
|
||||
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'
|
||||
# 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'
|
||||
|
||||
ENV.universal_binary # Also build 32-bit so Wine can use it
|
||||
ENV.universal_binary if build.universal?
|
||||
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
|
|
Loading…
Reference in a new issue