source: trunk/dports/print/pdflib/Portfile @ 17099

Last change on this file since 17099 was 17099, checked in by mww, 13 years ago

Bug: #7870

fix 1st entry in master_sites

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1# $Id: Portfile,v 1.8 2006/03/21 08:39:18 mww Exp $
2
3PortSystem 1.0
4
5name                    pdflib
6version                 6.0.3
7categories              print
8platforms               darwin
9maintainers             mww@opendarwin.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/
16master_sites    http://www.pdflib.com/products/pdflib/download/603src/ \
17                                freebsd
18distname                PDFlib-Lite-${version}
19checksums               sha1 93c5d78bdff142e873873967df8be49b70fe3c39
20patchfiles              patch-config-mkcommon.inc.in patch-libs__pdcore__pc_util.h
21
22configure.args  --without-java --without-perl --without-py --without-tcl
23
24post-destroot {
25        xinstall -m 755 -d ${destroot}${prefix}/share/doc/
26        file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
27}
28
29variant java {
30        configure.args-delete   --without-java
31        configure.args-append   --with-java=yes
32}
33
34variant perl {
35        depends_lib                             path:${prefix}/bin/perl:perl5.8
36        configure.args-delete   --without-perl
37        configure.args-append   --with-perl=${prefix}/bin/perl
38}
39
40variant python {
41        depends_lib                             path:${prefix}/bin/python:python24
42        configure.args-delete   --without-py
43        configure.args-append   --with-py=${prefix}
44}
45
46variant tcl {
47        depends_lib                             path:${prefix}/bin/tclsh:tcl
48        configure.args-delete   --without-tcl
49        configure.args-append   --with-tcl=${prefix}/bin/tclsh
50}
51
52platform darwin 8 {
53        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"
54}
55
Note: See TracBrowser for help on using the repository browser.