homebrew-core/Formula/pngrewrite.rb
nibbles 2bits 9196983ad2 pngrewrite 1.4.0
- Upgrade to 1.4.0
- Switch to using the Makefile to fix build errors.
- Adjust the Makefile to use our `ENV.cc` and `ENV.cflags`

Closes Homebrew/homebrew#15483.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-16 09:43:36 -07:00

18 lines
419 B
Ruby

require 'formula'
class Pngrewrite < Formula
homepage 'http://entropymine.com/jason/pngrewrite/'
url 'http://entropymine.com/jason/pngrewrite/pngrewrite-1.4.0.zip'
sha1 'c959fbd507d84c6d4544d09493934b268e969b56'
depends_on :libpng
def install
inreplace 'Makefile' do |f|
f.gsub! 'gcc', ENV.cc
f.gsub! '-Wall -O2', ENV.cflags
end
system 'make'
bin.install 'pngrewrite'
end
end