homebrew-core/Formula/libicns.rb
Camillo Lugaresi c8a3bfe9d0 added libicns formula
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-12-23 08:11:45 +00:00

21 lines
587 B
Ruby

require 'formula'
class Libicns <Formula
url 'http://downloads.sourceforge.net/project/icns/icns/libicns-0.7.1/libicns-0.7.1.tar.gz'
homepage 'http://icns.sourceforge.net/'
md5 'ff4624353a074c6cb51e41d145070e10'
depends_on 'jasper' # or openjpeg
def install
ENV.libpng
# build fat so wine can use it
ENV.append "CFLAGS", "-arch x86_64 -arch i386"
ENV.append "LDFLAGS", "-arch x86_64 -arch i386"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end