source: trunk/dports/print/pdflib/Portfile

Last change on this file was 145013, checked in by khindenburg@…, 20 months ago

pdflib: remove legacy variants

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 145013 2016-01-23 20:20:10Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pdflib
7version             7.0.5
8revision            2
9categories          print
10platforms           darwin
11license             Restrictive
12maintainers         nomaintainer
13
14description         PDFlib Lite (Source Code) is a subset of PDFlib
15long_description    ${description}, a library of C routines that allow \
16                    to programmatically generate PDF, the Adobe's \
17                    Portable Document File format.
18homepage            http://www.pdflib.com/download/free-software/pdflib-lite-7/
19
20master_sites        http://www.pdflib.com/binaries/PDFlib/[string map {"." ""} [strsed ${version} s/\[^0-9.\].*$//]]/
21distname            PDFlib-Lite-${version}
22checksums           md5     34a1cc89e2cfdc1e43ba57019e442a90 \
23                    sha1    5b2bf5edc49dba3da0997ade0e191511a37fae01 \
24                    rmd160  7f3862e70e2f74cf3143ea61e051c30e518ab2eb
25
26patchfiles          patch-configure.diff \
27                    patch-perl_Makefile.diff \
28                    patch-libtool.diff
29
30configure.ccache    no
31configure.args      --without-java \
32                    --without-perl \
33                    --without-py \
34                    --without-ruby \
35                    --without-tcl
36
37# The existence of tiff header files interferes with PDFLib (#11789).
38configure.cppflags-replace  -I${prefix}/include -isystem${prefix}/include
39
40use_parallel_build  yes
41
42test.run            yes
43
44post-destroot {
45    xinstall -m 755 -d ${destroot}${prefix}/share/doc/
46    file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
47}
48
49variant java description {Enable Java language binding} {
50    configure.args-replace  --without-java --with-java=yes
51}
52
53variant perl description {Enable Perl language binding} {
54    depends_lib-append      path:bin/perl:perl5
55    configure.args-replace  --without-perl --with-perl=${prefix}/bin/perl
56}
57
58variant python27 description {Enable Python 2.7 binding} {
59    set pyversion 2.7
60    depends_lib-append      port:python[strsed ${pyversion} {g/[.]//}]
61    configure.args-replace  --without-py --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion}
62    configure.args-append   --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
63    configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
64}
65
66variant tcl description {Enable Tcl language binding} {
67    depends_lib-append      path:bin/tclsh:tcl
68    configure.args-replace  --without-tcl --with-tcl=${prefix}/bin/tclsh
69}
70
71variant ruby description {Enable Ruby language binding} {
72    depends_lib-append          port:ruby
73    pre-configure {
74        set rubyIncl [file dirname [glob ${prefix}/lib/ruby/*/*/ruby.h]]
75        configure.args-replace  --without-ruby --with-ruby=${prefix}
76        configure.args-append   --with-rubyincl=${rubyIncl}
77    }
78}
79
80if {[variant_isset universal]} {
81    depends_build-append    port:libtool
82    post-configure {
83        file copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
84    }
85}
86
87# The web page says “Note that PDFlib Lite is no longer maintained by PDFlib GmbH”
88# and that they “will not release new and updated versions”.
89livecheck.type              none
Note: See TracBrowser for help on using the repository browser.