source: trunk/dports/devel/gwenhywfar4/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.6 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# kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;
3# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
4
5PortSystem        1.0
6
7name              gwenhywfar4
8revision          1
9# This port offers the latest stable version (also as a gtk subport)
10# as well as the latest beta version as gwenhywfar4-devel!
11
12categories        devel net finance
13maintainers       mk dports openmaintainer
14platforms         darwin
15license           {LGPL-2.1 OpenSSLException}
16
17description       a utility library required by aqbanking and related software
18long_description  ${description}
19
20homepage          http://www2.aquamaniac.de/sites/aqbanking/index.php
21
22conflicts         gwenhywfar gwenhywfar4 gwenhywfar4-devel gwenhywfar4-gtk gwenhywfar4-gtk-devel
23
24depends_lib       path:lib/libssl.dylib:openssl \
25                  port:libgcrypt \
26                  port:gettext \
27                  port:libxml2 \
28                  port:gnutls
29
30depends_build     port:libtool \
31                  port:pkgconfig
32
33configure.args    --enable-static
34
35conflicts-delete  $subport
36
37
38# Usually the port has a different version than the *-devel subports
39if {$subport eq $name || $subport eq "gwenhywfar4-gtk"} {
40    version                 4.14.0
41    # this is specific to this port and *version* for downloading it
42    set release             01
43
44    checksums               md5     b0662b7c1451b6e6fcad41a00c4db713 \
45                            sha1    9e00927c1b3a7d02408caf0e3540619d2e75c069 \
46                            rmd160  c092c53e4137b47d5595eb57be6cb9bbb186314d
47}
48
49subport gwenhywfar4-gtk {}
50subport gwenhywfar4-devel {}
51subport gwenhywfar4-gtk-devel {}
52
53patchfiles      patch-shlib-extensions.diff
54
55if {[string match "*-devel" $subport]} {
56    version                 4.14.0
57    # this is specific to this port and *version* for downloading it
58    set release             01
59
60    checksums               md5     b0662b7c1451b6e6fcad41a00c4db713 \
61                            sha1    9e00927c1b3a7d02408caf0e3540619d2e75c069 \
62                            rmd160  c092c53e4137b47d5595eb57be6cb9bbb186314d
63}
64
65if {$subport eq $name || $subport eq "gwenhywfar4-devel"} {
66    # the correct way to depend on Qt4:
67    PortGroup               qt4 1.0
68    configure.args-append   --with-qt4-libs=${qt_libs_dir} \
69                            --with-qt4-includes=${qt_includes_dir} \
70                            --with-qt4-moc=${qt_moc_cmd} \
71                            --with-qt4-uic=${qt_uic_cmd} \
72                            --with-guis="qt4 cpp cocoa"
73}
74
75master_sites      http://www2.aquamaniac.de/sites/download/download.php?package=01&release=${release}&file=01&dummy=
76distname          gwenhywfar-${version}
77
78if {[string match "gwenhywfar4-gtk*" $subport]} {
79    depends_lib-append      port:gtk2
80    configure.args-append   --with-guis="gtk2 cpp" --disable-qt4
81
82    # Allow gwenhywfar4-gtk and aqbanking5-gtk to replace the old
83    # gwenhywfar and aqbanking by deactivating them if installed. This
84    # allows gnucash to switch versions without conflicts.
85    #
86    # kmymoney still depends on gwenhywfar/aqbanking, so don't
87    # deactivate if it's installed.
88    conflicts-delete        gwenhywfar
89    pre-activate {
90        if {![catch {set vers [lindex [registry_active gwenhywfar] 0]}]} {
91            if {![catch {set vers [lindex [registry_active kmymoney] 0]}]} {
92                ui_error "${subport} conflicts with gwenhywfar and aqbanking. Please uninstall the ports that depend on them."
93                return -code error "conflict"
94            }
95            if {![catch {set vers [lindex [registry_active aqbanking] 0]}]} {
96                registry_deactivate_composite aqbanking "" [list ports_nodepcheck 1]
97            }
98            registry_deactivate_composite gwenhywfar "" [list ports_nodepcheck 1]
99        }
100    }
101}
102
103variant enable_local_install description "Enable local installation mode (plugins, data, locale and config are located relatively to the binary)" {
104    configure.args-append   --enable-local-install
105}
106
107variant debug description "Enable debug." {
108    configure.args-append --enable-debug
109}
110
111configure.args-append   --disable-dependency-tracking --disable-silent-rules
112
113livecheck.type    regex
114livecheck.url     http://www2.aquamaniac.de/sites/download/packages.php?package=01&showall=1
115if {[string match "*-devel" $subport]} {
116    livecheck.regex   gwenhywfar-(\[0-9.\]*beta)\\.tar
117} else {
118    livecheck.regex   gwenhywfar-(\[0-9.\]*)\\.tar
119}
Note: See TracBrowser for help on using the repository browser.