Ticket #31027: gwenhywfar4.patch

File gwenhywfar4.patch, 2.0 KB (added by drkp (Dan Ports), 13 years ago)
  • Portfile

     
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem        1.0
     
    1112
    1213categories        devel net finance
    1314maintainers       mk openmaintainer
     15license           {LGPL-2.1 OpenSSLException}
    1416
    1517description       a utility library required by aqbanking and related software
    1618long_description  ${description}
     
    2931                  port:libgcrypt \
    3032                  port:gettext \
    3133                  port:libxml2 \
    32                   port:gnutls \
    33                   port:qt4-mac
     34                  port:gnutls
    3435
    3536depends_build     port:libtool \
    3637                  port:pkgconfig
    3738
    38 configure.args    --with-qt4-libs=${prefix}/lib \
    39                   --with-qt4-includes=${prefix}/include \
    40                   --with-qt4-moc=${prefix}/bin/moc \
    41                   --with-qt4-uic=${prefix}/bin/uic \
    42                   --with-guis=qt4 \
    43                   --enable-static
     39configure.args    --enable-static
    4440
    4541patch.dir         ${workpath}/${distname}
    4642patch.pre_args    -p1
    4743
     44if {$subport == $name} {
     45    conflicts               gwenhywfar4-gtk
     46    configure.args-append   --with-qt4-libs=${prefix}/lib \
     47                            --with-qt4-includes=${prefix}/include \
     48                            --with-qt4-moc=${prefix}/bin/moc \
     49                            --with-qt4-uic=${prefix}/bin/uic \
     50                            --with-guis=qt4
     51    depends_lib-append      port:qt4-mac
     52}
     53
     54subport gwenhywfar4-gtk {
     55    conflicts               gwenhywfar4
     56    depends_lib-append      port:gtk2
     57    configure.args-append   --with-guis=gtk2 --disable-qt4
     58}
     59
    4860variant enable_local_install description "Enable local installation mode (plugins, data, locale and config are located relatively to the binary)" {
    4961    configure.args-append   --enable-local-install
    5062}