aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/optipng.rb
diff options
context:
space:
mode:
authorJonathan Wright2010-01-04 18:00:47 +1300
committerMax Howell2010-01-24 12:27:40 +0000
commitc7a4de54b47b2643f7f385bbded079ca6c186f28 (patch)
tree7c288f30fe9c156d78259bbac7ce41279e651986 /Library/Formula/optipng.rb
parentbc213267a6892f26c2a785556b540b73849995a0 (diff)
downloadhomebrew-c7a4de54b47b2643f7f385bbded079ca6c186f28.tar.bz2
OptiPNG 0.6.3
OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. http://optipng.sourceforge.net/
Diffstat (limited to 'Library/Formula/optipng.rb')
-rw-r--r--Library/Formula/optipng.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/optipng.rb b/Library/Formula/optipng.rb
new file mode 100644
index 000000000..fa1e4a92e
--- /dev/null
+++ b/Library/Formula/optipng.rb
@@ -0,0 +1,14 @@
+require 'formula'
+
+class Optipng <Formula
+ url 'http://downloads.sourceforge.net/optipng/optipng-0.6.3.tar.gz'
+ homepage 'http://optipng.sourceforge.net/'
+ md5 '6cef405197a878acff4c6216cf38e871'
+
+ def install
+ inreplace 'src/scripts/gcc.mak.in', '/usr/local', prefix
+ inreplace 'src/scripts/gcc.mak.in', 'mandir=$(prefix)/man', 'mandir=$(prefix)/share/man'
+ system "./configure", "-with-system-zlib"
+ system "make install"
+ end
+end