homebrew-core/Formula/podofo.rb
2015-06-05 14:47:57 +01:00

27 lines
871 B
Ruby

require 'formula'
class Podofo < Formula
desc "Library to work with the PDF file format"
homepage 'http://podofo.sourceforge.net'
url 'https://downloads.sourceforge.net/podofo/podofo-0.9.3.tar.gz'
sha1 'e3b08af1266eb480032456e3bde030c75452d380'
depends_on 'cmake' => :build
depends_on 'libpng'
depends_on 'freetype'
depends_on 'fontconfig'
depends_on 'jpeg'
depends_on 'libtiff'
def install
mkdir 'build' do
# Build shared to simplify linking for other programs.
system "cmake", "..",
"-DPODOFO_BUILD_SHARED:BOOL=TRUE",
"-DFREETYPE_INCLUDE_DIR_FT2BUILD=#{Formula['freetype'].include}/freetype2",
"-DFREETYPE_INCLUDE_DIR_FTHEADER=#{Formula['freetype'].include}/freetype2/config/",
*std_cmake_args
system "make install"
end
end
end