e1bb919734
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm", to specifically message to the user when a formula is known or suspected to not build with LLVM. If the user specifies "--use-llvm", the message will be displayed, but compilation will be tried anyway. Since using LLVM is now an advanced/hidden feature instead of the default on 10.6, we'll let the user try anyway (and submit patches if things are now working.)
30 lines
1.1 KiB
Ruby
30 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class PdflibLite <Formula
|
|
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"
|
|
|
|
def install
|
|
fails_with_llvm "SL 10.6.1 LLVM crashes with an internal compiler error on this version."
|
|
|
|
# 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}"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
|
|
"--without-java", "--without-perl", "--without-py", "--without-tcl",
|
|
"--without-ruby"
|
|
system "make"
|
|
system "make install"
|
|
|
|
def caveats; <<-EOM
|
|
pdflib-lite is not open source software; usage restrictions apply! Be sure to
|
|
understand and obey the license terms, which can be found at:
|
|
http://www.pdflib.com/products/pdflib-family/pdflib-lite/pdflib-lite-licensing/
|
|
EOM
|
|
end
|
|
end
|
|
end
|