Ticket #47025: poppler.diff

File poppler.diff, 2.8 KB (added by RJVB (René Bertin), 9 years ago)
  • graphics/poppler/Portfile

    old new  
    11# -*- 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 145844 2016-02-18 23:56:08Z devans@macports.org $
     2# $Id: Portfile 133752 2015-03-10 20:34:42Z devans@macports.org $
    33
    44PortSystem          1.0
    55PortGroup           compiler_blacklist_versions 1.0
     
    4040                    port:openjpeg15 \
    4141                    port:poppler-data \
    4242                    port:tiff \
    43                     port:zlib
     43                    port:zlib \
     44                    port:curl
    4445
    4546gobject_introspection yes
    4647
     
    6566}
    6667
    6768# TODO:
    68 # add subport poppler-qt4-x11 when qt4-x11 builds and port group qt4 allows
    69 # add subport poppler-qt5-mac when various qt5 build issues are resolved (#47025)
     69# add subport for poppler-qt4-x11 when qt4-x11 builds and port group qt4 allows
    7070
    7171subport poppler-qt4-mac {
    7272    PortGroup qt4 1.0
    73 
     73    configure.env-append    MOCQT4=${qt_bins_dir}/moc
    7474    configure.args-delete   --disable-poppler-qt4
    7575}
    7676
     77subport poppler-qt5-mac {
     78    PortGroup qt5 1.0
     79
     80    configure.env-append    MOCQT5=${qt_bins_dir}/moc
     81    configure.args-delete   --disable-poppler-qt5
     82}
     83
    7784if {${subport} ne ${name}} {
    7885    depends_extract-append  port:git
    7986
     
    8289    post-extract {
    8390        system -W ${workpath} "${prefix}/bin/git clone --depth=1 http://anongit.freedesktop.org/git/poppler/test"
    8491    }
    85    
     92
    8693    configure.args-append   --disable-cairo-output \
    8794                            --disable-poppler-glib \
    8895                            --disable-poppler-cpp \
    8996                            --disable-utils
    9097
    9198# currently poppler only provides unit tests for the Qt wrappers
    92    
     99
    93100    test.run    yes
    94101    test.target check
    95102
     
    97104        foreach dot_h [glob -nocomplain -directory ${destroot}${prefix}/include/poppler *.h] {
    98105            delete $dot_h
    99106        }
     107        foreach l [glob -nocomplain ${destroot}${prefix}/lib/libpoppler.*] {
     108            delete ${l}
     109        }
    100110        delete  ${destroot}${prefix}/include/poppler/fofi \
    101111                ${destroot}${prefix}/include/poppler/goo \
    102112                ${destroot}${prefix}/include/poppler/splash \
    103                 ${destroot}${prefix}/lib/libpoppler.58.dylib \
    104                 ${destroot}${prefix}/lib/libpoppler.a \
    105                 ${destroot}${prefix}/lib/libpoppler.dylib \
    106                 ${destroot}${prefix}/lib/libpoppler.la \
    107113                ${destroot}${prefix}/lib/pkgconfig/poppler-splash.pc \
    108114                ${destroot}${prefix}/lib/pkgconfig/poppler.pc
    109115    }