source: trunk/dports/graphics/poppler/Portfile @ 95790

Last change on this file since 95790 was 95790, checked in by devans@…, 8 years ago

poppler: update to version 0.20.2, use lcms2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 95790 2012-07-22 17:50:29Z devans@macports.org $
3
4PortSystem 1.0
5PortGroup  muniversal 1.0
6
7name        poppler
8conflicts   xpdf-tools
9version     0.20.2
10license     GPL-2+
11maintainers devans openmaintainer
12categories  graphics
13platforms   darwin
14homepage    http://${name}.freedesktop.org/
15
16description Poppler is a PDF rendering library based on the xpdf-3.0 code base.
17long_description ${description}
18
19master_sites ${homepage}
20
21checksums   rmd160  8b9361a972d43c7c92398c1e2055cdf5be10c1a2 \
22            sha256  2debc5034e0e85402957d84fb2674737658a3dbe8a3c631e1792e3f8c88ce369
23
24depends_build \
25    port:pkgconfig
26
27depends_lib \
28    port:bzip2 \
29    port:curl \
30    port:expat \
31    port:fontconfig \
32    port:freetype \
33    path:lib/pkgconfig/glib-2.0.pc:glib2 \
34    path:lib/pkgconfig/cairo.pc:cairo \
35    port:lcms2 \
36    port:libpng \
37    port:openjpeg \
38    port:poppler-data \
39    port:tiff \
40    port:zlib
41
42post-patch {
43    reinplace "s|\$includedir|${prefix}/include|g" \
44        ${worksrcpath}/configure
45    reinplace "s|tests||" \
46        ${worksrcpath}/qt4/Makefile.in
47}
48
49configure.args \
50    --disable-introspection \
51    --disable-poppler-qt4 \
52    --disable-gtk-test \
53    --disable-silent-rules \
54    --enable-xpdf-headers \
55    --enable-zlib \
56    --enable-libcurl \
57    --enable-poppler-glib \
58    --mandir=${prefix}/share/man
59
60variant quartz {
61    configure.args-append --without-x
62}
63
64if {![variant_isset quartz]} {
65    if {[file exists ${prefix}/lib/pkgconfig/x11.pc]} {
66            configure.args-append --x-includes=${prefix}/include \
67                                  --x-libraries=${prefix}/lib
68    }
69}
70
71variant qt4 description { Support for the QT4 toolkit } {
72    configure.args-delete --disable-poppler-qt4
73    if ([variant_isset quartz]) {
74        PortGroup qt4 1.0
75    } else {
76        depends_lib-append  port:qt4-x11
77        set qt_dir ${prefix}/libexec/qt4-x11
78        configure.env-append  QTDIR=${qt_dir}
79        set env(PATH) "${qt_dir}/bin:$env(PATH)"
80        configure.pkg_config_path ${qt_dir}/lib/pkgconfig
81    }
82}
83
84variant docs conflicts universal description {Build gtk-doc documentation} {
85    depends_build-append   port:gtk-doc
86    configure.args-append  --enable-gtk-doc
87}
88
89test.run    yes
90test.dir    ${worksrcpath}/test
91test.target all
92
93livecheck.type  regex
94livecheck.url   ${master_sites}
95livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.