diff --git graphics/poppler/Portfile graphics/poppler/Portfile
index 56ddd90..33fa717 100644
|
|
PortGroup compiler_blacklist_versions 1.0 |
6 | 6 | PortGroup muniversal 1.0 |
7 | 7 | |
8 | 8 | name poppler |
9 | | conflicts pdf2json xpdf-tools |
| 9 | conflicts pdf2json xpdf-tools poppler-qt4 |
10 | 10 | version 0.24.4 |
11 | 11 | revision 1 |
12 | 12 | license GPL-2+ |
… |
… |
autoreconf.args -fvi |
56 | 56 | |
57 | 57 | compiler.blacklist {gcc-4.0 < 5493} |
58 | 58 | |
59 | | configure.args --disable-poppler-qt4 \ |
60 | | --disable-gtk-test \ |
| 59 | configure.args --disable-gtk-test \ |
61 | 60 | --disable-silent-rules \ |
62 | 61 | --enable-xpdf-headers \ |
63 | 62 | --enable-zlib \ |
… |
… |
if {[variant_isset universal]} { |
75 | 74 | build.args-append CC="${configure.cc} ${configure.cc_archflags}" |
76 | 75 | } |
77 | 76 | |
78 | | variant quartz { |
79 | | configure.args-append --without-x |
80 | | } |
| 77 | if {${subport} == ${name}} { |
| 78 | configure.args-append --disable-poppler-qt4 |
| 79 | |
| 80 | variant quartz { |
| 81 | configure.args-append --without-x |
| 82 | } |
81 | 83 | |
82 | | if {![variant_isset quartz]} { |
83 | | if {[file exists ${prefix}/lib/pkgconfig/x11.pc]} { |
| 84 | if {![variant_isset quartz]} { |
| 85 | if {[file exists ${prefix}/lib/pkgconfig/x11.pc]} { |
84 | 86 | configure.args-append --x-includes=${prefix}/include \ |
85 | 87 | --x-libraries=${prefix}/lib |
| 88 | } |
86 | 89 | } |
87 | | } |
88 | 90 | |
89 | | variant qt4 description { Support for the QT4 toolkit } { |
90 | | configure.args-delete --disable-poppler-qt4 |
91 | | if ([variant_isset quartz]) { |
92 | | PortGroup qt4 1.0 |
93 | | } else { |
94 | | depends_lib-append port:qt4-x11 |
95 | | set qt_dir ${prefix}/libexec/qt4-x11 |
96 | | configure.env-append QTDIR=${qt_dir} |
97 | | set env(PATH) "${qt_dir}/bin:$env(PATH)" |
98 | | configure.pkg_config_path ${qt_dir}/lib/pkgconfig |
| 91 | variant qt4 description { Support for the QT4 toolkit } { |
| 92 | configure.args-delete --disable-poppler-qt4 |
| 93 | if ([variant_isset quartz]) { |
| 94 | PortGroup qt4 1.0 |
| 95 | } else { |
| 96 | depends_lib-append port:qt4-x11 |
| 97 | set qt_dir ${prefix}/libexec/qt4-x11 |
| 98 | configure.env-append QTDIR=${qt_dir} |
| 99 | set env(PATH) "${qt_dir}/bin:$env(PATH)" |
| 100 | configure.pkg_config_path ${qt_dir}/lib/pkgconfig |
| 101 | } |
99 | 102 | } |
100 | 103 | } |
101 | 104 | |
| 105 | subport poppler-qt4 { |
| 106 | PortGroup qt4 1.0 |
| 107 | conflicts pdf2json xpdf-tools poppler |
| 108 | |
| 109 | configure.args-append --without-x |
| 110 | } |
| 111 | |
102 | 112 | variant docs conflicts universal description {Build gtk-doc documentation} { |
103 | 113 | depends_build-append port:gtk-doc |
104 | 114 | configure.args-append --enable-gtk-doc |