2011-10-11 18:44:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Podofo < Formula
|
|
|
|
homepage 'http://podofo.sourceforge.net'
|
|
|
|
url 'http://downloads.sourceforge.net/podofo/podofo-0.9.1.tar.gz'
|
|
|
|
md5 'cec586ab69f92bc88d38b5d4b8eee5a0'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2011-10-11 18:44:42 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'libtiff'
|
|
|
|
depends_on 'lua'
|
|
|
|
|
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'build' do
|
2011-10-11 18:44:42 +00:00
|
|
|
# Build shared to simplify linking for other programs.
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", "..",
|
|
|
|
"-DPODOFO_BUILD_SHARED:BOOL=TRUE",
|
|
|
|
*std_cmake_args
|
2011-10-11 18:44:42 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|