# -*- 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 # $Id$ PortSystem 1.0 name gwenhywfar4 # This port offers the latest stable version (also as a gtk subport) # as well as the latest beta version as gwenhywfar4-devel! categories devel net finance maintainers mk dports openmaintainer platforms darwin license {LGPL-2.1 OpenSSLException} description a utility library required by aqbanking and related software long_description ${description} homepage http://www2.aquamaniac.de/sites/aqbanking/index.php conflicts gwenhywfar depends_lib port:openssl \ port:libgcrypt \ port:gettext \ port:libxml2 \ port:gnutls depends_build port:libtool \ port:pkgconfig configure.args --enable-static if {$subport == $name} { conflicts-append gwenhywfar4-devel gwenhywfar4-gtk } if {$subport == $name || $subport =="gwenhywfar4-gtk"} { version 4.3.3 revision 2 # this is specific to this port and *version* for downloading it set release 67 checksums md5 c5b9d52a25960f84f9264a5a5dd484d1 \ sha1 c2ba4c45f1eeb379db6c2ae09122c592893f3bd0 \ rmd160 61f56c7a8550003fe41be20cb35f370375390f6d } subport gwenhywfar4-devel { conflicts-append gwenhywfar4 gwenhywfar4-gtk version 4.8.0beta # this is specific to this port and *version* for downloading it set release 71 checksums md5 d80b50587c79366697c3bbc0c8998cc5 \ sha1 13b02c2485d0ddb33eaa391d295addd96cdb3071 \ rmd160 71ea26a185f6a7f56e1aab842a0e1cdef69a07bb } if {$subport == $name || $subport == "gwenhywfar4-devel"} { configure.args-append --with-qt4-libs=${prefix}/lib \ --with-qt4-includes=${prefix}/include \ --with-qt4-moc=${prefix}/bin/moc \ --with-qt4-uic=${prefix}/bin/uic \ --with-guis=qt4 depends_lib-append path:bin/qmake:qt4-mac } master_sites http://www2.aquamaniac.de/sites/download/download.php?package=01&release=${release}&file=01&dummy= distname gwenhywfar-${version} subport gwenhywfar4-gtk { conflicts-append gwenhywfar4 gwenhywfar4-devel depends_lib-append port:gtk2 configure.args-append --with-guis=gtk2 --disable-qt4 # Allow gwenhywfar4-gtk and aqbanking5-gtk to replace the old # gwenhywfar and aqbanking by deactivating them if installed. This # allows gnucash to switch versions without conflicts. # # kmymoney still depends on gwenhywfar/aqbanking, so don't # deactivate if it's installed. conflicts-delete gwenhywfar pre-activate { if {![catch {set vers [lindex [registry_active gwenhywfar] 0]}]} { if {![catch {set vers [lindex [registry_active kmymoney] 0]}]} { ui_error "${subport} conflicts with gwenhywfar and aqbanking. Please uninstall the ports that depend on them." return -code error "conflict" } if {![catch {set vers [lindex [registry_active aqbanking] 0]}]} { registry_deactivate_composite aqbanking "" [list ports_nodepcheck 1] } registry_deactivate_composite gwenhywfar "" [list ports_nodepcheck 1] } } } variant enable_local_install description "Enable local installation mode (plugins, data, locale and config are located relatively to the binary)" { configure.args-append --enable-local-install } variant debug description "Enable debug." { configure.args-append --enable-debug } livecheck.type regex livecheck.url http://www2.aquamaniac.de/sites/download/packages.php?package=01&showall=1 if {$subport != "gwenhywfar4-devel"} { livecheck.regex gwenhywfar-(\[0-9.\]*)\\.tar } else { livecheck.regex gwenhywfar-(\[0-9.\]*beta)\\.tar }