diff options
| author | Mike McQuaid | 2015-02-04 23:55:21 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-04 23:55:21 +0000 |
| commit | 1e5dfcb5e8dfdd62cc2fca19927534bac009477f (patch) | |
| tree | 0bc7db2b8fc05cdb6b0889ef9a624176ff38e59a | |
| parent | aa5f792a46f5a79c6db52cdac9965090e19cc0e2 (diff) | |
| download | homebrew-1e5dfcb5e8dfdd62cc2fca19927534bac009477f.tar.bz2 | |
tiff2png 0.9.2
Closes #36310.
| -rw-r--r-- | Library/Formula/tiff2png.rb | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/Library/Formula/tiff2png.rb b/Library/Formula/tiff2png.rb index 56bd069de..39b4f8971 100644 --- a/Library/Formula/tiff2png.rb +++ b/Library/Formula/tiff2png.rb @@ -1,45 +1,18 @@ -require 'formula' - class Tiff2png < Formula - homepage 'http://www.libpng.org/pub/png/apps/tiff2png.html' - url 'ftp://ftp.simplesystems.org/pub/libpng/png/applications/tiff2png/tiff2png-0.91.tar.gz' - sha1 '3a23abaaadbed8f3d13b88241257fe2078eb61fd' - revision 1 - - depends_on 'libtiff' - depends_on 'libpng' - depends_on 'jpeg' + homepage "http://www.libpng.org/pub/png/apps/tiff2png.html" + url "https://github.com/rillian/tiff2png/archive/v0.92.tar.gz" + sha1 "b838d0e43410a237837b46654e3fb1644fd9891f" - # libpng 1.5 no longer #includes zlib.h - patch :DATA + depends_on "libtiff" + depends_on "libpng" + depends_on "jpeg" def install - system "make", "-f", "Makefile.unx", "CC=#{ENV.cc}", - "OPTIMFLAGS=#{ENV.cflags}", - "LIBTIFF=#{HOMEBREW_PREFIX}/lib", - "TIFFINC=#{HOMEBREW_PREFIX}/include", - "LIBJPEG=#{HOMEBREW_PREFIX}/lib", - "ZLIB=/usr/lib", - "DEBUGFLAGS=" - bin.install 'tiff2png' + bin.mkpath + system "make", "INSTALL=#{prefix}", "CC=#{ENV.cc}", "install" end test do system "#{bin}/tiff2png", test_fixtures("test.tiff") end end - -__END__ -diff --git a/tiff2png.c b/tiff2png.c -index 6a06571..f903c0c 100644 ---- a/tiff2png.c -+++ b/tiff2png.c -@@ -87,6 +87,7 @@ - # include "tiffcomp.h" /* not installed by default */ - #endif - #include "png.h" -+#include "zlib.h" - - #ifdef _MSC_VER /* works for MSVC 5.0; need finer tuning? */ - # define strcasecmp _stricmp - |
