From b155d22f713cfae669c2318b55fd5c47166083f4 Mon Sep 17 00:00:00 2001 From: Zigang Xiao Date: Sun, 26 Jun 2011 23:00:54 -0500 Subject: New Formula: pngwriter A C++ library for creating PNG images. Closes #6207. Signed-off-by: Charlie Sharpsteen --- Library/Formula/pngwriter.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Library/Formula/pngwriter.rb (limited to 'Library') 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 -- cgit v1.2.3