Ticket #11789: Portfile

File Portfile, 1.6 KB (added by fisch@…, 17 years ago)
Line 
1# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
2
3PortSystem 1.0
4
5name                    pdflib
6version                 7.0.1
7categories              print
8platforms               darwin
9maintainers             nomaintainer@macports.org
10description             library of C routines to programmatically generate PDF files
11long_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
15homepage                http://www.pdflib.com/products/pdflib-family/pdflib-lite/
16master_sites            http://www.pdflib.com/binaries/PDFlib/701/
17distname                PDFlib-Lite-${version}
18checksums               sha1 096f0b569695aab6fbf675f4eeb19b32d4e5e443
19patchfiles              patch-config-mkcommon.inc.in patch-libs__pdcore__pc_util.h
20
21configure.args  --without-java --without-perl --without-py --without-tcl
22
23post-destroot {
24        xinstall -m 755 -d ${destroot}${prefix}/share/doc/
25        file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
26}
27
28variant java {
29        configure.args-delete   --without-java
30        configure.args-append   --with-java=yes
31}
32
33variant 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
39variant python {
40        depends_lib                             path:${prefix}/bin/python:python24
41        configure.args-delete   --without-py
42        configure.args-append   --with-py=${prefix}
43}
44
45variant 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
51platform 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