# $Id: Portfile 37380 2008-06-05 08:14:16Z ryandesign@macports.org $ PortSystem 1.0 name pdflib version 7.0.3 revision 3 categories print platforms darwin maintainers nomaintainer use_parallel_build yes description library of C routines to programmatically generate PDF files long_description PDFlib is a library of C routines which allow you to \ programmatically generate files in Adobe's Portable Document \ format PDF. homepage http://www.pdflib.com/products/pdflib-family/pdflib-lite/ master_sites http://www.pdflib.com/binaries/PDFlib/[string map {"." ""} ${version}]/ distname PDFlib-Lite-${version} checksums md5 97bcdd73206bae30b322f49d2c0d852b \ sha1 f63950303de23b9c13e9fdf5d6aa6ecae1ddc542 \ rmd160 90f91e2ff08e0280dce63801899162411889f0b7 patchfiles patch-config-mkcommon.inc.diff patch-libs__pdcore__pc_util.diff \ patch-perl_Makefile.diff configure.args --without-java --without-perl --without-py --without-tcl --without-ruby post-patch { reinplace "s/PYTHONLIBDIR=`cat << EOF | python/PYTHONLIBDIR=`cat << EOF | \$PYTHONBIN/g" \ ${worksrcpath}/configure } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/ file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name} } variant java description {Enable Java language binding} { configure.args-delete --without-java configure.args-append --with-java=yes } variant perl description {Enable Perl language binding} { depends_lib path:${prefix}/bin/perl:perl5.8 configure.args-delete --without-perl configure.args-append --with-perl=${prefix}/bin/perl } variant python24 description {Enable Python language binding using vervion 2.4} conflicts python25 { set pyversion 2.4 depends_lib-append port:python[strsed ${pyversion} {g/[.]//}] configure.args-delete --without-py configure.args-append --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion} configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion} } variant python25 description {Enable Python language binding using vervion 2.5} conflicts python24 { set pyversion 2.5 depends_lib-append port:python[strsed ${pyversion} {g/[.]//}] configure.args-delete --without-py configure.args-append --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion} configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion} } variant tcl description {Enable Tcl language binding} { depends_lib-append path:${prefix}/bin/tclsh:tcl configure.args-delete --without-tcl configure.args-append --with-tcl=${prefix}/bin/tclsh } variant ruby description {Enable Ruby language binding} { depends_lib-append port:ruby pre-configure { set rubyIncl [file dirname [glob ${prefix}/lib/ruby/*/*/ruby.h]] configure.args-delete --without-ruby configure.args-append --with-ruby=${prefix} --with-rubyincl=${rubyIncl} } } platform darwin 8 { configure.cc "/usr/bin/gcc-4.0 -DPDF_TARGET_API_MAC_CLASSIC" configure.cpp "/usr/bin/cpp-4.0 -DPDF_TARGET_API_MAC_CLASSIC" configure.cxx "/usr/bin/g++-4.0 -DPDF_TARGET_API_MAC_CLASSIC" } livecheck.check regex livecheck.regex "PDFlib Lite \(\[\\d\\.\]+\)"