/
Portfile
56 lines (45 loc) · 1.62 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $Id: Portfile,v 1.6 2005/11/19 16:37:44 mww Exp $
PortSystem 1.0
name pdflib
version 6.0.2
revision 1
categories print
platforms darwin
maintainers mww@opendarwin.org
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/
master_sites http://www.pdflib.com/products/pdflib/download/602src/ \
freebsd
distname PDFlib-Lite-${version}
checksums md5 eaeb8d8f000af50e6057eb2378ab6a94
patchfiles patch-config-mkcommon.inc.in patch-libs__pdcore__pc_util.h
configure.args --without-java --without-perl --without-py --without-tcl
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/
file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
}
platform darwin 8 {
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"
}
variant java {
configure.args-delete --without-java
configure.args-append --with-java=yes
}
variant perl {
depends_lib path:${prefix}/bin/perl:perl5.8
configure.args-delete --without-perl
configure.args-append --with-perl=${prefix}/bin/perl
}
variant python {
depends_lib path:${prefix}/bin/python:python24
configure.args-delete --without-py
configure.args-append --with-py=${prefix}
}
variant tcl {
depends_lib path:${prefix}/bin/tclsh:tcl
configure.args-delete --without-tcl
configure.args-append --with-tcl=${prefix}/bin/tclsh
}