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.
16 lines
405 B
Ruby
16 lines
405 B
Ruby
require 'formula'
|
|
|
|
class Libpng <Formula
|
|
@url='http://prdownloads.sourceforge.net/libpng/libpng-1.2.40.tar.gz'
|
|
@homepage='http://www.libpng.org/pub/png/libpng.html'
|
|
@md5='a2f6808735bf404967f81519a967fb2a'
|
|
|
|
def keg_only?
|
|
:provided_by_osx
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
system "make install"
|
|
end
|
|
end
|