homebrew-core/Formula/zint.rb
Alexis Hildebrandt 65a6c95bcb Zint 2.4.0
An Open Source barcode encoding and image generating
library written entirely in C.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-27 09:08:08 -07:00

18 lines
521 B
Ruby

require 'formula'
class Zint <Formula
url 'http://downloads.sourceforge.net/project/zint/zint/2.4/zint-2.4.0.src.tar.gz'
homepage 'http://www.zint.org.uk'
md5 '31fbb05dc45d3c460075096b702cefb0'
head 'git://zint.git.sourceforge.net/gitroot/zint/zint'
depends_on 'cmake'
depends_on 'libpng'
def install
mkdir('build')
cd('build')
system "cmake .. #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{prefix} -DCMAKE_C_FLAGS=-I#{Formula.factory('libpng').include}"
system "make install"
end
end