source: trunk/dports/devel/qca/Portfile @ 70436

Last change on this file since 70436 was 70436, checked in by michaelld@…, 10 years ago

Allow for correct framework info in PKGCONFIG file, as appropriate.
Allow default installer to do 'destroot' stage.
Correct header install for framework only.
Allow for debug and framework (and release) at the same time; do not

allow just debug and framework.

Install into QT4 main directory; plugins too. Hopefully addresses

ticket #25670.

Default install to just release version (no debug), framework, and

arch specific (not universal); allow variants for each of these as
well as examples.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 70436 2010-08-09 17:52:21Z michaelld@macports.org $
3
4PortSystem          1.0
5name                qca
6version             2.0.2
7revision            2
8set branch          [join [lrange [split ${version} .] 0 1] .]
9categories          devel crypto security
10maintainers         michaelld openmaintainer
11license             LGPLv2.1
12description         Qt Cryptographic Architecture
13long_description \
14    Qt Cryptographic Architecture provides an easy API for the following \
15    features: SSL/TLS, X509, SASL, RSA, Hashing (SHA1, MD5), Ciphers \
16    (BlowFish, 3DES, AES).  Functionality is supplied via plugins.
17
18platforms            darwin
19
20homepage             http://delta.affinix.com/qca/
21master_sites         http://delta.affinix.com/download/qca/${branch}/
22use_bzip2            yes
23
24checksums            md5     27ebdfbd9869d90dae078a6decd029f4 \
25                     sha1    5a414c3296cd37d1ec34182be0d089c5073f55a8 \
26                     rmd160  18b0f497709f9700227644977946735d2ec3c623
27
28depends_build        port:pkgconfig
29depends_lib          port:qt4-mac
30
31# patch to correct pkgconfig file for framework install, if selected.
32# and allow for 'debug' and 'framework' options at the same time.
33# This change is needed to allow for +combined [+framework]; handle
34# +debug [+framework] in pre-extract.
35patchfiles           patch-configure.diff
36
37set qt_dir           ${prefix}/libexec/qt4-mac
38set qca_dir          ${prefix}/libexec/qt4-mac
39
40# set QT4 plugins to install into the QT4 directory
41configure.pre_args   --prefix=${qca_dir}
42
43# defaults: release only, framework, specific build_arch.
44# use variants to change these
45configure.args        --verbose         \
46                      --qtdir=${qt_dir} \
47                      --release         \
48                      --framework
49
50destroot.destdir      INSTALL_ROOT="${destroot}"
51
52post-destroot {
53    # tweak header install for framework only
54    if {![variant_isset no_framework]} {
55        # when installed as a framework, link headers from
56        # the framework into ${qca_dir}/include
57        xinstall -d 755 ${destroot}${qca_dir}/include
58        ln -s ${qca_dir}/lib/qca.framework/Headers \
59            ${destroot}${qca_dir}/include/QtCrypto
60    }
61
62    # install docs
63    xinstall -d 755 ${destroot}${qca_dir}/share/doc/${name}
64    xinstall -m 644 -W ${worksrcpath} COPYING README TODO \
65        ${destroot}${qca_dir}/share/doc/${name}
66}
67
68variant no_framework description \
69{Build as a library, not framework} {
70    configure.args-delete --framework
71    configure.args-append --no-framework
72}
73
74variant debug description \
75{Build both release and debug library / framework} {
76    configure.args-delete --release
77    configure.args-append --debug-and-release
78}
79
80variant examples description \
81{Include examples in install} {
82    post-destroot {
83        xinstall -d 755 ${destroot}${qca_dir}/share/examples/${name}
84        eval file copy [glob ${worksrcpath}/examples/*] \
85            ${destroot}${qca_dir}/share/examples/${name}
86    }
87}
88
89variant universal {
90    configure.universal_args-append --universal
91}
92
93livecheck.type  regex
94livecheck.url   ${homepage}
95livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.