aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZigang Xiao2011-06-26 23:00:54 -0500
committerCharlie Sharpsteen2011-08-31 19:19:33 -0700
commitb155d22f713cfae669c2318b55fd5c47166083f4 (patch)
tree79d19c9643b26f89f8f023cbd71e3de45e181f30 /Library
parent689b919715103945200c091f1ea7e6662c56c8df (diff)
downloadhomebrew-b155d22f713cfae669c2318b55fd5c47166083f4.tar.bz2
New Formula: pngwriter
A C++ library for creating PNG images. Closes #6207. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pngwriter.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/pngwriter.rb b/Library/Formula/pngwriter.rb
new file mode 100644
index 000000000..ddb56c198
--- /dev/null
+++ b/Library/Formula/pngwriter.rb
@@ -0,0 +1,16 @@
+require 'formula'
+
+class Pngwriter < Formula
+ url 'http://downloads.sourceforge.net/project/pngwriter/pngwriter/pngwriter-0.5.4/pngwriter-0.5.4.zip'
+ homepage 'http://pngwriter.sourceforge.net/'
+ md5 '7e0c20f2cce6da685b68d5e9b15b5207'
+
+ def install
+ # the zip file contains one more directory
+ cd("pngwriter-0.5.4")
+ # use the OSX specific makefile
+ ln_sf("make.include.osx", "make.include")
+ system "make PREFIX=#{prefix}"
+ system "make install PREFIX=#{prefix}"
+ end
+end