Changeset 115965


Ignore:
Timestamp:
Jan 15, 2014, 4:31:13 PM (7 years ago)
Author:
devans@…
Message:

poppler: general overhaul.

  • update to version 0.24.5, ABI compatible with previous version
  • update dependencies, configuration
  • remove variant +doc which has absolutely no effect on installed content
  • remove variant +quartz, poppler is quartz/x11 agnostic
  • remove theoretical support for broken qt4-x11
  • replace variant +qt4 with new subport poppler-qt4-mac which depends on poppler and adds the additional poppler bindings for qt4-mac (#38350).
  • framework in place to support bindings for qt4-x11, qt5 as additional subports if and when those ports become availabe.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/poppler/Portfile

    r115019 r115965  
    88name            poppler
    99conflicts       pdf2json xpdf-tools
    10 version         0.24.4
    11 revision        1
     10version         0.24.5
    1211license         GPL-2+
    1312maintainers     devans openmaintainer
     
    2423use_xz          yes
    2524
    26 checksums       rmd160  2a71b7da5562e1ac655c9591812551f3fbfe6fe9 \
    27                 sha256  c8a3509a17e6f0bbb07eeb1b58276b485974a8bff3f5eef1bc8e150ccd7c01e2
     25checksums       rmd160  34a017f79e624091a62845beb26b3f81fb971645 \
     26                sha256  a2654910100c923c44e366242495e226db2798254f2fa2781138867348759f84
    2827
    2928depends_build   port:pkgconfig
     
    3534                port:freetype \
    3635                port:gobject-introspection \
     36                port:jpeg \
    3737                path:lib/pkgconfig/glib-2.0.pc:glib2 \
    3838                path:lib/pkgconfig/cairo.pc:cairo \
     
    4444                port:zlib
    4545
    46 post-patch {
    47     reinplace "s|\$includedir|${prefix}/include|g" \
    48         ${worksrcpath}/configure
    49     reinplace "s|tests||" \
    50         ${worksrcpath}/qt4/Makefile.in
    51 }
    52 
    5346# Generate newer libtool that passes -stdlib when linking dylibs.
    5447use_autoreconf  yes
     
    5851
    5952configure.args  --disable-poppler-qt4 \
     53                --disable-poppler-qt5 \
    6054                --disable-gtk-test \
    6155                --disable-silent-rules \
     
    6357                --enable-zlib \
    6458                --enable-libcurl \
    65                 --enable-poppler-glib \
    6659                --enable-introspection=yes
    6760
     
    7669}
    7770
    78 variant quartz {
    79     configure.args-append --without-x
    80 }
     71# TODO:
     72# add subport for poppler-qt4-x11 when qt4-x11 builds and port group qt4 allows
     73# add subport(s) for poppler-qt5-* when a qt5 port is available
    8174
    82 if {![variant_isset quartz]} {
    83     if {[file exists ${prefix}/lib/pkgconfig/x11.pc]} {
    84             configure.args-append --x-includes=${prefix}/include \
    85                                   --x-libraries=${prefix}/lib
     75subport poppler-qt4-mac {
     76    PortGroup qt4 1.0
     77    depends_lib-append port:poppler
     78    configure.args-delete --disable-poppler-qt4
     79    configure.args-append --disable-splash-output \
     80                          --disable-cairo-output \
     81                          --disable-poppler-glib \
     82                          --disable-poppler-cpp \
     83                          --disable-utils
     84    post-destroot {
     85        foreach dot_h [glob -nocomplain -directory ${destroot}${prefix}/include/poppler *.h] {
     86            delete $dot_h
     87        }
     88        delete ${destroot}${prefix}/include/poppler/fofi \
     89               ${destroot}${prefix}/include/poppler/goo \
     90               ${destroot}${prefix}/lib/libpoppler.44.dylib \
     91               ${destroot}${prefix}/lib/libpoppler.a \
     92               ${destroot}${prefix}/lib/libpoppler.dylib \
     93               ${destroot}${prefix}/lib/libpoppler.la \
     94               ${destroot}${prefix}/lib/pkgconfig/poppler.pc
    8695    }
    87 }
    88 
    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
    99     }
    100 }
    101 
    102 variant docs conflicts universal description {Build gtk-doc documentation} {
    103     depends_build-append   port:gtk-doc
    104     configure.args-append  --enable-gtk-doc
    10596}
    10697
Note: See TracChangeset for help on using the changeset viewer.