2009-10-22 13:04:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class PdflibLite < Formula
|
2009-10-22 13:04:01 +00:00
|
|
|
url 'http://www.pdflib.com/binaries/PDFlib/704/PDFlib-Lite-7.0.4p4.tar.gz'
|
|
|
|
homepage 'http://www.pdflib.com/download/free-software/pdflib-lite/'
|
|
|
|
md5 '1765de9c5f2b6c5769a2160eaa911e9a'
|
|
|
|
version "7.0.4p4"
|
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
fails_with_llvm "SL 10.6.1 LLVM crashes with an internal compiler error on this version."
|
2009-10-22 13:04:01 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2009-10-22 13:04:01 +00:00
|
|
|
# Without the following substituion, pdflib-lite runs into weird
|
|
|
|
# build errors due to bad interactions with the TIFF headers.
|
|
|
|
# This workaround comes from the MacPorts.org portfile for pdflib.
|
|
|
|
ENV['CPPFLAGS'] = "-isystem#{prefix}"
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--without-java",
|
|
|
|
"--without-perl",
|
|
|
|
"--without-py",
|
|
|
|
"--without-tcl",
|
|
|
|
"--without-ruby"
|
2009-10-22 13:04:01 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-10-22 13:04:01 +00:00
|
|
|
def caveats; <<-EOM
|
2010-04-07 05:58:35 +00:00
|
|
|
pdflib-lite is not open source software; usage restrictions apply!
|
|
|
|
Be sure to understand and obey the license terms, which can be found at:
|
2009-10-22 13:04:01 +00:00
|
|
|
http://www.pdflib.com/products/pdflib-family/pdflib-lite/pdflib-lite-licensing/
|
|
|
|
EOM
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|