homebrew-core/Formula/pngrewrite.rb
Jack Nagel 5bd598db36 Use ENV shortcut methods where applicable
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 14:03:12 -05:00

13 lines
380 B
Ruby

require 'formula'
class Pngrewrite < Formula
url 'http://entropymine.com/jason/pngrewrite/pngrewrite-1.3.0.zip'
homepage 'http://entropymine.com/jason/pngrewrite/'
md5 '37216932d12bf9b47dca1f45724080d6'
def install
ENV.libpng
system "#{ENV.cc} #{ENV.cflags} #{ENV.cppflags} -o pngrewrite pngrewrite.c #{ENV.ldflags} -lpng"
bin.install 'pngrewrite'
end
end