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

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

mupdf: update to 1.0, which no longer conflicts with poppler or xpdf-tools (#31780); replace a patchfile with an environment variable

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