Ticket #25686: openssl-Portfile_3.diff

File openssl-Portfile_3.diff, 3.4 KB (added by michaelld (Michael Dickens), 14 years ago)

3rd try at openssl Portfile diff

  • Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     
    67name                    openssl
    78version                 1.0.0a
    89epoch                   1
     10revision        1
    911platforms               darwin freebsd
    1012categories              devel security
    1113maintainers             mww
     
    3537configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
    3638configure.ccache        no
    3739
    38 variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
    39         configure.args-append   enable-rfc3779
     40post-configure {
     41    # assume that the depends needs to be remade before building
     42    system "cd ${worksrcpath} && make depend"
    4043}
    4144
     45variant rfc3779 description {enable support for RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
     46    configure.args-append  enable-rfc3779
     47}
     48
     49variant md2 description {enable support for RFC 1319: MD2 message digest algorithm; also used as a hash function for PKI certificates; WARNING: no longer considered secure} {
     50    configure.args-append  enable-md2
     51}
     52
     53variant rc5 description {enable support for RFC 2040: RC5 general block cipher; patented by RSA Security; still considered secure for keys of at least 72 bits} {
     54    configure.args-append  enable-rc5
     55}
     56
     57# krb5_heimdal not functional as of 1.0.0a
     58# variant krb5_mit conflicts krb5_heimdal description {enable experimental support for RFC 4120: the Kerberos 5 network authentication protocol, MIT version} {
     59variant krb5 description {enable experimental support for RFC 4120: the Kerberos 5 network authentication protocol, MIT version} {
     60    configure.args-delete  no-krb5
     61    configure.args-append  --with-krb5-flavor=MIT \
     62                           --with-krb5-dir=${prefix}
     63    depends_lib-append     port:kerberos5
     64}
     65
     66# krb5_heimdal not functional as of 1.0.0a
     67#variant krb5_heimdal conflicts krb5_mit description {enable experimental support for RFC 4120: the Kerberos 5 network authentication protocol, Heimdal version} {
     68#    configure.args-delete  no-krb5
     69#    configure.args-append  --with-krb5-flavor=Heimdal \
     70#                           --with-krb5-dir=${prefix}/libexec/heimdal
     71#    depends_lib-append     port:heimdal
     72#}
     73
     74variant gmp description {enable support for GMP (the GNU Multiple Precision Arithmetic Library) to perform RSA private key operations} {
     75    configure.args-delete  no-gmp
     76    configure.args-append  enable-gmp -lgmp
     77    depends_lib-append     port:gmp
     78}
     79
     80variant jpake description {enable experimental support for J-PAKE (Password Authenticated Key Exchange by Juggling; possibly part of IEEE P1363)} {
     81    configure.args-delete  no-jpake
     82    configure.args-append  experimental-jpake
     83}
     84
    4285use_parallel_build      no
    4386
    4487destroot.destdir        INSTALL_PREFIX=${destroot}
    4588destroot.args           MANDIR=${prefix}/share/man
    4689
     90post-destroot {
     91    # make sure engines (shared libraries) reference themselves
     92    # using full paths (just like all other shared libraries)
     93    foreach fixfile [exec /bin/ls ${destroot}${prefix}/lib/engines] {
     94        system "install_name_tool -id ${prefix}/lib/engines/${fixfile} \
     95${destroot}${prefix}/lib/engines/${fixfile}"
     96    }
     97}
     98
    4799test.run                yes
    48100
    49101livecheck.type  regex