diff options
| author | Adam Vandenberg | 2011-03-14 13:48:20 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-14 13:48:20 -0700 |
| commit | ef72d1bc8ad78dfbd2cc0daf795196dc3accf3c9 (patch) | |
| tree | 766ad59caa947c08d115409dab8e5605dad490e7 /Library/Formula | |
| parent | 0a3e3bd3cda2613a5a68940797103acb6f080caa (diff) | |
| download | homebrew-ef72d1bc8ad78dfbd2cc0daf795196dc3accf3c9.tar.bz2 | |
zint: works fine against system libpng
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/zint.rb | 9 |
1 files changed, 7 insertions, 2 deletions
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 |
