From ef72d1bc8ad78dfbd2cc0daf795196dc3accf3c9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 14 Mar 2011 13:48:20 -0700 Subject: zint: works fine against system libpng --- Library/Formula/zint.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/zint.rb b/Library/Formula/zint.rb index 2bdde66c6..74e3e9d82 100644 --- a/Library/Formula/zint.rb +++ b/Library/Formula/zint.rb @@ -7,11 +7,16 @@ class Zint < Formula head 'git://zint.git.sourceforge.net/gitroot/zint/zint' depends_on 'cmake' - depends_on 'libpng' def install cd('build') - system "cmake .. #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{prefix} -DCMAKE_C_FLAGS=-I#{Formula.factory('libpng').include}" + system "cmake .. #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{prefix} -DCMAKE_C_FLAGS=-I/usr/X11R6/include" system "make install" end + + def test + system "zint -o test-zing.png -d 'This Text'" + system "open test-zing.png" + puts "You may want to `rm test-zing.png`" + end end -- cgit v1.2.3