source: trunk/dports/devel/aqbanking5/Portfile

Last change on this file was 154150, checked in by mk@…, 13 months ago

aqbanking5-devel: update to 5.7.4beta

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.9 KB
Line 
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
2# $Id: Portfile 154150 2016-10-22 13:49:29Z ryandesign@macports.org $
3
4PortSystem        1.0
5
6name              aqbanking5
7# This port offers the latest stable version (also as a gtk subport)
8# as well as the latest beta version as aqbanking5-devel
9# and the svn version as aqbanking5-svn!
10
11# The package number is unique for aqbanking:
12set package       03
13revision          1
14
15categories        devel net finance
16maintainers       mk dports openmaintainer
17platforms         darwin
18license           {GPL-2 GPL-3 OpenSSLException}
19
20description       a generic online banking interface
21long_description  aqbanking is a generic online banking interface mainly \
22                  supporting Home Banking Computer Interface, a standard \
23                  used for German checking accounts, but also suitable \
24                  for OFX as used in several other countries. \
25                  Note that the YellowNet backend (for Suisse Postfinance) \
26                  is not available for OS X (upstream only has a Linux binary).
27
28homepage          http://www2.aquamaniac.de/sites/aqbanking/index.php
29
30conflicts         aqbanking aqbanking5 aqbanking5-devel aqbanking5-gtk aqbanking5-gtk-devel aqbanking5-svn
31
32depends_lib       port:ktoblzcheck \
33                  port:libofx \
34                  port:gmp \
35                  port:gnutls
36
37depends_build     port:pkgconfig
38
39universal_variant no
40
41conflicts-delete  $subport
42
43
44patchfiles        patch-aqbanking-config.cmake.in.diff
45
46subport           aqbanking5-gtk {
47   depends_lib-append  port:gwenhywfar4-gtk
48   depends_lib-delete  port:qt4-mac
49}
50
51subport           aqbanking5-devel {}
52subport           aqbanking5-gtk-devel {}
53
54if {$subport eq $name || $subport eq "aqbanking5-gtk"} {
55    version             5.5.1
56    revision            2
57    # this is specific to this port and *version* for downloading it
58    set release         118
59
60    checksums           md5     6069af5cafb97d1f4d3a8a08ba58b876 \
61                        sha1    4783890253acf04dddede6d34bf81b8f1c24480d \
62                        rmd160  67450fabccb2a403aa79ca97705211eacd107ca9
63
64    if {$subport eq $name} {
65        depends_lib-append port:gwenhywfar4
66    }
67}
68
69if {[string match "*-devel" $subport]} {
70    version             5.7.4beta
71    # this is specific to this port and *version* for downloading it
72    set release         213
73
74    checksums           md5     1e263c2382d23839a3211612bd79d80f \
75                        sha1    d8f93ad4fa12258b4b628e40133cce2d711d4bfa \
76                        rmd160  2b9a62325da5b31f88cf302c6a081477e7730475
77
78    patchfiles          patch-aqbanking-config.cmake.in-devel.diff
79
80    if {$subport eq "aqbanking5-devel"} {
81        depends_lib-append  port:gwenhywfar4-devel
82    } else {
83        depends_lib-append  port:gwenhywfar4-gtk-devel
84        depends_lib-delete  port:qt4-mac
85    }
86}
87
88subport aqbanking5-svn {
89    fetch.type          svn
90    svn.url             http://devel.aqbanking.de/svn/aqbanking/trunk
91    # r2384 is indeed identical to 5.0.32beta
92    svn.revision        2384
93    version             svn-r${svn.revision}
94    revision            2
95    worksrcdir          trunk
96
97    use_autoreconf      yes
98    autoreconf.args     -fvi
99    patchfiles-append   patch-Makefile.am.diff
100
101    depends_lib-append  port:gwenhywfar4-devel
102}
103
104if {$subport ne "aqbanking5-svn"} {
105    master_sites      http://www2.aquamaniac.de/sites/download/download.php?package=${package}&release=${release}&file=01&dummy=
106}
107
108distname          aqbanking-${version}
109# This is only to be used in case the dist was directly created from git
110#distname          aqbanking-${version}.0-git
111
112configure.cppflags-append "-L${prefix}/lib"
113configure.cflags-append   "-L${prefix}/lib"
114configure.ldflags-append  "-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
115configure.env             PKG_CONFIG=${prefix}/bin/pkg-config QTDIR=${prefix}
116configure.args-append \
117                          --enable-static \
118                          --disable-dependency-tracking \
119                          --with-backends="aqhbci aqofxconnect aqnone aqpaypal"
120
121variant enable_local_install description "Enable local installation mode (plugins, data, locale and config are located relatively to the binary)" {
122    configure.args-append   --enable-local-install
123}
124
125variant debug description "Enable debug." {
126    configure.args-append --enable-debug
127}
128
129use_parallel_build no
130
131if {$subport ne "aqbanking5-svn"} {
132    livecheck.type    regex
133    livecheck.url     http://www2.aquamaniac.de/sites/download/packages.php?package=${package}&showall=1
134    if {[string match "*-devel" $subport]} {
135        livecheck.regex   aqbanking-(\[0-9.\]*beta)\\.tar
136    } else {
137        livecheck.regex   aqbanking-(\[0-9.\]*)\\.tar
138    }
139} else {
140    livecheck.type    none
141}
142
Note: See TracBrowser for help on using the repository browser.