aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisty De Meo2011-12-28 13:29:31 -0600
committerMisty De Meo2011-12-28 13:33:50 -0600
commit4d6fc3720c551a22310388f4cff408a4f52e397b (patch)
treea52ff9e61d22d0884c72ca583fb1ec5534177654
parent7eeb81da8ee0cfa75ff0aad9c2941537fded3c5f (diff)
downloadhomebrew-4d6fc3720c551a22310388f4cff408a4f52e397b.tar.bz2
tiff2png: fix download location, libpng1.5
Fixes #9313.
-rw-r--r--Library/Formula/tiff2png.rb22
1 files changed, 21 insertions, 1 deletions
diff --git a/Library/Formula/tiff2png.rb b/Library/Formula/tiff2png.rb
index 8912c6632..a3387f7cc 100644
--- a/Library/Formula/tiff2png.rb
+++ b/Library/Formula/tiff2png.rb
@@ -1,13 +1,18 @@
require 'formula'
class Tiff2png < Formula
- url 'ftp://ftp.simplesystems.org/pub/libpng/png/applications/tiff2png-0.91.tar.gz'
+ url 'ftp://ftp.simplesystems.org/pub/libpng/png/applications/tiff2png/tiff2png-0.91.tar.gz'
homepage 'http://www.libpng.org/pub/png/apps/tiff2png.html'
md5 'b5db7add863c5cf469197aa327c0b202'
depends_on 'libtiff'
depends_on 'jpeg'
+ # libpng 1.5 no longer #includes zlib.h
+ def patches
+ DATA
+ end
+
def install
inreplace 'Makefile.unx' do |s|
s.remove_make_var! 'DEBUGFLAGS'
@@ -24,3 +29,18 @@ class Tiff2png < Formula
bin.install 'tiff2png'
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
+