tiff2png 0.91
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
4e8464d5a3
commit
091e9d3ad0
1 changed files with 26 additions and 0 deletions
26
Formula/tiff2png.rb
Normal file
26
Formula/tiff2png.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
require 'formula'
|
||||
|
||||
class Tiff2png < Formula
|
||||
url 'ftp://ftp.simplesystems.org/pub/libpng/png/applications/tiff2png-0.91.tar.gz'
|
||||
homepage 'http://www.libpng.org/pub/png/apps/tiff2png.html'
|
||||
md5 'b5db7add863c5cf469197aa327c0b202'
|
||||
|
||||
depends_on 'libtiff'
|
||||
depends_on 'jpeg'
|
||||
|
||||
def install
|
||||
inreplace 'Makefile.unx' do |s|
|
||||
s.remove_make_var! 'DEBUGFLAGS'
|
||||
s.change_make_var! 'CC', ENV.cc
|
||||
s.change_make_var! 'LIBTIFF', HOMEBREW_PREFIX+"lib"
|
||||
s.change_make_var! 'TIFFINC', HOMEBREW_PREFIX+"include"
|
||||
s.change_make_var! 'LIBJPEG', HOMEBREW_PREFIX+"lib"
|
||||
s.change_make_var! 'LIBPNG', '/usr/X11R6/lib'
|
||||
s.change_make_var! 'PNGINC', '/usr/X11R6/include'
|
||||
s.change_make_var! 'ZLIB', '/usr/lib'
|
||||
end
|
||||
|
||||
system 'make -f Makefile.unx'
|
||||
bin.install 'tiff2png'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue