Ticket #25686: openssl-Portfile.diff

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

Portfile diff for openssl 1.0.0a to allow for crypto variants

  • 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
     
    3234}
    3335
    3436configure.cmd   ./config
    35 configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
     37configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib-dynamic no-asm no-krb5 shared
    3638configure.ccache        no
    3739
     40post-configure {
     41    # assume that the depends needs to be remade before building
     42    system "cd ${worksrcpath} && make depend"
     43}
     44
    3845variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
    3946        configure.args-append   enable-rfc3779
    4047}
    4148
     49variant md2 description {enable MD2 extensions} {
     50        configure.args-append   enable-md2
     51}
     52
     53variant rc5 description {enable RC5 extensions} {
     54        configure.args-append   enable-rc5
     55}
     56
     57variant krb5_mit description {enable experimental Kerberos 5 (MIT) extensions} {
     58        configure.args-delete  no-krb5
     59        configure.args-append  --with-krb5-flavor=MIT --with-krb5-dir=${prefix}
     60        depends_lib-append     port:kerberos5
     61}
     62
     63variant krb5_heimdal description {enable experimental Kerberos 5 (Heimdal) extensions} {
     64        configure.args-delete  no-krb5
     65        configure.args-append  --with-krb5-flavor=Heimdal --with-krb5-dir=${prefix}
     66        depends_lib-append     port:heimdal
     67}
     68
    4269use_parallel_build      no
    4370
    4471destroot.destdir        INSTALL_PREFIX=${destroot}