source: trunk/dports/devel/qca-ossl/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: 2.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# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                qca-ossl
8version             2.0.0-beta3
9revision            4
10categories          devel crypto security
11license             LGPL-2.1+
12maintainers         michaelld openmaintainer
13description         Qt Cryptographic Architecture - openssl plugin
14long_description \
15    This library provides an easy API for the following features: SSL/TLS, \
16    X509, SASL, RSA, Hashing (SHA1, MD5), Ciphers (BlowFish, 3DES, AES), \
17    Functionality is supplied via plugins. \
18    \
19    This plugin provides support for OpenSSL related ciphers.
20
21platforms           darwin
22
23homepage            http://delta.affinix.com/qca/
24master_sites        http://delta.affinix.com/download/qca/2.0/plugins/
25use_bzip2           yes
26
27checksums           md5 bdc62c01321385c7da8d27b3902910ce \
28                    sha1 dd925e8732ff76f24f9f90f4094abaf2f0ac27bf \
29                    rmd160 c979c3c3427eb45e8866e28746f83966e8bcf3c2
30
31depends_lib-append  port:qca \
32                    path:lib/libssl.dylib:openssl
33
34# Without the patch to "qca-ossl.cpp", if MD2 isn't part of OpenSSL
35# (which it is not by default as of at least version 0.9.7) then
36# compiling will error out.  Upstream has already fixed this issue for
37# this port; just waiting for a new release.
38patchfiles-append   patch-qca-ossl.cpp.diff
39
40# (2) Use QCA's 'crypto.prf' file to correctly include its libraries
41# (no matter how QCA is installed), instead of forcing patching of
42# multiple files.  Correct compiling for universal or set of arches.
43patchfiles-append   patch-configure.diff
44
45# qca-ossl does not use --prefix
46configure.pre_args
47configure.args       --verbose             \
48                     --qtdir=${qt_dir}
49
50# QCA's configure does not handle this flag,
51# but does not generate an error either.
52configure.universal_args-delete --disable-dependency-tracking
53configure.args-delete  --disable-dependency-tracking
54
55post-patch {
56    # set arch type(s)
57    reinplace "s|@ARCHES@|${qt_arch_types}|g" \
58        ${worksrcpath}/configure
59}
60
61post-destroot {
62    # fix library path of installed library/ies
63    foreach fixfile [exec find ${destroot}${qt_dir} -name "*.dylib" | \
64                         sed -e "s@${destroot}@@g"] {
65        system "install_name_tool -id ${fixfile} ${destroot}${fixfile}"
66    }
67}
68
69variant debug description \
70{Build both release and debug library} \
71{
72    configure.args-delete --release
73    configure.args-append --debug-and-release
74}
75
76variant universal {
77    configure.universal_args-append --universal
78}
Note: See TracBrowser for help on using the repository browser.