diff options
| author | Moritz Wurth | 2012-10-03 11:48:33 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-07 20:28:49 -0800 |
| commit | d2d71ed3e5bf968a9582c69aeee1efc4b27c1cc3 (patch) | |
| tree | 30c9519c223658ef3cb146ecd67c905bb0bc20a3 /Library/Formula/scale2x.rb | |
| parent | 9cadc8126d3c927b244ad71cf20a2799f1c41a14 (diff) | |
| download | homebrew-d2d71ed3e5bf968a9582c69aeee1efc4b27c1cc3.tar.bz2 | |
scale2x 2.4
Closes #15276.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/scale2x.rb')
| -rw-r--r-- | Library/Formula/scale2x.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/scale2x.rb b/Library/Formula/scale2x.rb new file mode 100644 index 000000000..0cff79e31 --- /dev/null +++ b/Library/Formula/scale2x.rb @@ -0,0 +1,16 @@ +require 'formula' + +class Scale2x < Formula + homepage '//http://scale2x.sourceforge.net' + url 'http://sourceforge.net/projects/scale2x/files/scale2x/2.4/scale2x-2.4.tar.gz' + 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 |
