homebrew-core/Formula/podofo.rb
luzpaz 5cd41a3075 podofo 0.9.3
Since build was failing on Lion because X11 Freetype2 libs were used instead of Homebrew Freetype, 2 new Cmake arguments were added to successfully compile on all current Homebrew supported OSX platforms

Closes .

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-07-08 14:13:35 -07:00

26 lines
821 B
Ruby

require 'formula'
class Podofo < Formula
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