5cd41a3075
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 Homebrew/homebrew#30747. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
26 lines
821 B
Ruby
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
|