1 | # $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name pdflib |
---|
6 | version 7.0.1 |
---|
7 | categories print |
---|
8 | platforms darwin |
---|
9 | maintainers nomaintainer@macports.org |
---|
10 | description library of C routines to programmatically generate PDF files |
---|
11 | long_description PDFlib is a library of C routines which allow you to \ |
---|
12 | programmatically generate files in Adobe's Portable Document \ |
---|
13 | format PDF. |
---|
14 | |
---|
15 | homepage http://www.pdflib.com/products/pdflib-family/pdflib-lite/ |
---|
16 | master_sites http://www.pdflib.com/binaries/PDFlib/701/ |
---|
17 | distname PDFlib-Lite-${version} |
---|
18 | checksums sha1 096f0b569695aab6fbf675f4eeb19b32d4e5e443 |
---|
19 | patchfiles patch-config-mkcommon.inc.in patch-libs__pdcore__pc_util.h |
---|
20 | |
---|
21 | configure.args --without-java --without-perl --without-py --without-tcl |
---|
22 | |
---|
23 | post-destroot { |
---|
24 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/ |
---|
25 | file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name} |
---|
26 | } |
---|
27 | |
---|
28 | variant java { |
---|
29 | configure.args-delete --without-java |
---|
30 | configure.args-append --with-java=yes |
---|
31 | } |
---|
32 | |
---|
33 | variant perl { |
---|
34 | depends_lib path:${prefix}/bin/perl:perl5.8 |
---|
35 | configure.args-delete --without-perl |
---|
36 | configure.args-append --with-perl=${prefix}/bin/perl |
---|
37 | } |
---|
38 | |
---|
39 | variant python { |
---|
40 | depends_lib path:${prefix}/bin/python:python24 |
---|
41 | configure.args-delete --without-py |
---|
42 | configure.args-append --with-py=${prefix} |
---|
43 | } |
---|
44 | |
---|
45 | variant tcl { |
---|
46 | depends_lib path:${prefix}/bin/tclsh:tcl |
---|
47 | configure.args-delete --without-tcl |
---|
48 | configure.args-append --with-tcl=${prefix}/bin/tclsh |
---|
49 | } |
---|
50 | |
---|
51 | platform darwin 8 { |
---|
52 | configure.env CC="/usr/bin/gcc-4.0 -DPDF_TARGET_API_MAC_CLASSIC" CPP="/usr/bin/cpp-4.0 -DPDF_TARGET_API_MAC_CLASSIC" CXX="/usr/bin/g++-4.0 -DPDF_TARGET_API_MAC_CLASSIC" |
---|
53 | } |
---|
54 | |
---|