# $Id: Portfile 59592 2009-10-17 16:04:57Z rowue@macports.org $

PortSystem          1.0
name                qca-ossl
version             2.0.0-beta3
categories          devel crypto security
maintainers         rowue openmaintainer
description         Qt Cryptographic Architecture - openssl plugin
long_description \
    This library 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. \
    \
    This plugin provides support for openssl related chipers

platforms           darwin

homepage            http://delta.affinix.com/qca/
master_sites        http://delta.affinix.com/download/qca/2.0/plugins/
use_bzip2           yes

checksums           md5 bdc62c01321385c7da8d27b3902910ce \
                    sha1 dd925e8732ff76f24f9f90f4094abaf2f0ac27bf \
                    rmd160 c979c3c3427eb45e8866e28746f83966e8bcf3c2

depends_lib         port:qca \
                    port:openssl

patchfiles          disable-whirlpool.patch \
                    fix-configure.patch

configure.pre_args  --qtdir=${prefix}/libexec/qt4-mac --with-qca=${prefix}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/libexec/qt4-mac/plugins/crypto
        
    xinstall -m 644 -W ${worksrcpath}/lib libqca-ossl.bundle \
                ${destroot}${prefix}/libexec/qt4-mac/plugins/crypto
}

