# -*- 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 # $Id: Portfile 70436 2010-08-09 17:52:21Z michaelld@macports.org $ PortSystem 1.0 name qca version 2.0.2 revision 2 set branch [join [lrange [split ${version} .] 0 1] .] categories devel crypto security maintainers michaelld openmaintainer license LGPLv2.1 description Qt Cryptographic Architecture long_description \ Qt Cryptographic Architecture provides an easy API for the following \ features: SSL/TLS, X509, SASL, RSA, Hashing (SHA1, MD5), Ciphers \ (BlowFish, 3DES, AES). Functionality is supplied via plugins. platforms darwin homepage http://delta.affinix.com/qca/ master_sites http://delta.affinix.com/download/qca/${branch}/ use_bzip2 yes checksums md5 27ebdfbd9869d90dae078a6decd029f4 \ sha1 5a414c3296cd37d1ec34182be0d089c5073f55a8 \ rmd160 18b0f497709f9700227644977946735d2ec3c623 depends_build port:pkgconfig depends_lib port:qt4-mac # patch to correct pkgconfig file for framework install, if selected. # and allow for 'debug' and 'framework' options at the same time. # This change is needed to allow for +combined [+framework]; handle # +debug [+framework] in pre-extract. patchfiles patch-configure.diff set qt_dir ${prefix}/libexec/qt4-mac set qca_dir ${prefix}/libexec/qt4-mac # set QT4 plugins to install into the QT4 directory configure.pre_args --prefix=${qca_dir} # defaults: release only, framework, specific build_arch. # use variants to change these configure.args --verbose \ --qtdir=${qt_dir} \ --release \ --framework destroot.destdir INSTALL_ROOT="${destroot}" post-destroot { # tweak header install for framework only if {![variant_isset no_framework]} { # when installed as a framework, link headers from # the framework into ${qca_dir}/include xinstall -d 755 ${destroot}${qca_dir}/include ln -s ${qca_dir}/lib/qca.framework/Headers \ ${destroot}${qca_dir}/include/QtCrypto } # install docs xinstall -d 755 ${destroot}${qca_dir}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} COPYING README TODO \ ${destroot}${qca_dir}/share/doc/${name} } variant no_framework description \ {Build as a library, not framework} { configure.args-delete --framework configure.args-append --no-framework } variant debug description \ {Build both release and debug library / framework} { configure.args-delete --release configure.args-append --debug-and-release } variant examples description \ {Include examples in install} { post-destroot { xinstall -d 755 ${destroot}${qca_dir}/share/examples/${name} eval file copy [glob ${worksrcpath}/examples/*] \ ${destroot}${qca_dir}/share/examples/${name} } } variant universal { configure.universal_args-append --universal } livecheck.type regex livecheck.url ${homepage} livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"