aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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