aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNicklas Ansman Giertz2012-08-04 15:11:06 +0200
committerAdam Vandenberg2012-08-26 13:51:43 -0700
commitac5c2707339ac4279dfa6299e84f0a6e95d305c6 (patch)
tree288497c5e2ae04063404a417441d439f5596132c /Library
parenta595b524af334ec12282f86e4d3164165e05d7f4 (diff)
downloadhomebrew-ac5c2707339ac4279dfa6299e84f0a6e95d305c6.tar.bz2
pngquant 1.7.2
Closes #13943. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pngquant.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/pngquant.rb b/Library/Formula/pngquant.rb
new file mode 100644
index 000000000..44f1bb73d
--- /dev/null
+++ b/Library/Formula/pngquant.rb
@@ -0,0 +1,22 @@
+require 'formula'
+
+class Pngquant < Formula
+ homepage 'http://pngquant.org/'
+ url 'https://github.com/pornel/improved-pngquant/tarball/1.7.2'
+ sha1 'fcb10d23380824451371f47a62428ce496f21636'
+
+ head 'https://github.com/pornel/improved-pngquant.git'
+
+ depends_on :libpng
+
+ def install
+ ENV.append_to_cflags "-DNDEBUG" # Turn off debug
+ system "make", "PREFIX=#{prefix}", "CC=#{ENV.cc}"
+ bin.install 'pngquant'
+ man1.install 'pngquant.1'
+ end
+
+ def test
+ system "#{bin}/pngquant", "--help"
+ end
+end