61b2307139
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
18 lines
536 B
Ruby
18 lines
536 B
Ruby
require 'formula'
|
|
|
|
class Pngcrush <Formula
|
|
homepage 'http://pmt.sourceforge.net/pngcrush/'
|
|
url "http://downloads.sourceforge.net/sourceforge/pmt/pngcrush-1.7.2.tar.bz2"
|
|
md5 '24ead6781e7e017e8ee2bf61db93a355'
|
|
|
|
def install
|
|
# use our CFLAGS, LDFLAGS, CC, and LD
|
|
inreplace 'Makefile', 'CFLAGS = -I. -O3 -fomit-frame-pointer -Wall -Wshadow', ''
|
|
inreplace 'Makefile', 'LDFLAGS =', ''
|
|
inreplace 'Makefile', 'CC = gcc', ''
|
|
inreplace 'Makefile', 'LD = gcc', ''
|
|
|
|
system "make"
|
|
bin.install 'pngcrush'
|
|
end
|
|
end
|