2012-10-03 09:48:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Scale2x < Formula
|
2013-01-08 13:41:07 +00:00
|
|
|
homepage 'http://scale2x.sourceforge.net'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/scale2x/scale2x/2.4/scale2x-2.4.tar.gz'
|
2012-10-03 09:48:33 +00:00
|
|
|
sha1 '30bbd674dcdf134a58b34e75f87ed05bd716d484'
|
|
|
|
|
|
|
|
depends_on :libpng
|
|
|
|
|
|
|
|
def install
|
|
|
|
# This function was renamed in current versions of libpng.
|
|
|
|
inreplace 'file.c', 'png_set_gray_1_2_4_to_8', 'png_set_expand_gray_1_2_4_to_8'
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|