Ticket #25686: openssl-Portfile_2.diff

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

2nd 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; 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
     57variant krb5_mit conflicts krb5_heimdal description {enable experimental support for RFC 4120: the Kerberos 5 network authentication protocol, MIT version} {
     58    configure.args-delete  no-krb5
     59    configure.args-append  --with-krb5-flavor=MIT \
     60                           --with-krb5-dir=${prefix}
     61    depends_lib-append     port:kerberos5
     62}
     63
     64variant krb5_heimdal conflicts krb5_mit description {enable experimental support for RFC 4120: the Kerberos 5 network authentication protocol, Heimdal version} {
     65    configure.args-delete  no-krb5
     66    configure.args-append  --with-krb5-flavor=Heimdal \
     67                           --with-krb5-dir=${prefix}
     68    depends_lib-append     port:heimdal
     69}
     70
     71variant gmp description {enable support for GMP (the GNU Multiple Precision Arithmetic Library) to perform RSA private key operations} {
     72    configure.args-delete  no-gmp
     73    configure.args-append  enable-gmp -lgmp
     74    depends_lib-append     port:gmp
     75}
     76
     77variant jpake description {enable experimental support for J-PAKE (Password Authenticated Key Exchange by Juggling; possibly part of IEEE P1363)} {
     78    configure.args-delete  no-jpake
     79    configure.args-append  experimental-jpake
     80}
     81
    4282use_parallel_build      no
    4383
    4484destroot.destdir        INSTALL_PREFIX=${destroot}
    4585destroot.args           MANDIR=${prefix}/share/man
    4686
     87post-destroot {
     88    # make sure engines (shared libraries) reference themselves
     89    # using full paths (just like all other shared libraries)
     90    foreach fixfile [exec /bin/ls ${destroot}${prefix}/lib/engines] {
     91        system "install_name_tool -id ${prefix}/lib/engines/${fixfile} \
     92${destroot}${prefix}/lib/engines/${fixfile}"
     93    }
     94}
     95
    4796test.run                yes
    4897
    4998livecheck.type  regex