-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPortfile
More file actions
98 lines (78 loc) · 2.6 KB
/
Copy pathPortfile
File metadata and controls
98 lines (78 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# $Id: Portfile 69417 2010-07-05 06:03:12Z jmr@macports.org $
PortSystem 1.0
PortGroup muniversal 1.0
name openssl098
version 0.9.8y
epoch 1
platforms darwin freebsd
categories devel security
maintainers mww
homepage http://www.openssl.org/
license BSD
description OpenSSL SSL/TLS cryptography library
long_description \
The OpenSSL Project is a collaborative effort to develop a robust, \
commercial-grade, full-featured, and Open Source toolkit implementing \
the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
(TLS v1) protocols as well as a full-strength general purpose \
cryptography library.
master_sites http://www.openssl.org/source/
distname openssl-${version}
checksums md5 47c7fb37f78c970f1d30aa2f9e9e26d8 \
sha1 32ec994d626555774548c82e48c5d220bec903c4 \
rmd160 a44d14e32c73ee9451089d06d18d04d8f83660bc
depends_lib port:zlib
platform darwin {
patchfiles patch-Makefile.org.diff patch-crypto-Makefile.diff
}
configure.cmd ./config
configure.args -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
configure.ccache no
variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
configure.args-append enable-rfc3779
}
use_parallel_build no
destroot.destdir INSTALL_PREFIX=${destroot}
destroot.args MANDIR=${prefix}/share/man
test.run yes
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex ${name}-(0.9.8\[a-z\])
post-patch {
# use SDK if necessary
if {${configure.sdkroot} != ""} {
reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
}
}
array set merger_configure_args {
ppc darwin-ppc-cc
i386 darwin-i386-cc
ppc64 darwin64-ppc-cc
x86_64 darwin64-x86_64-cc
}
if { [variant_isset universal] } {
configure.cmd ./Configure
set merger_arch_compiler "no"
configure.universal_args-delete --disable-dependency-tracking
configure.args-delete --disable-dependency-tracking
pre-destroot {
global merger_dont_diff
if { [llength ${universal_archs_to_use}] > 2 } {
lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
}
}
# Do not set --host.
array set merger_host {
ppc ""
i386 ""
ppc64 ""
x86_64 ""
}
} elseif {[info exists merger_configure_args($build_arch)]} {
configure.cmd ./Configure
configure.args-append $merger_configure_args($build_arch)
}
# the test suite can only be run *after* destrooting
# test.run yes
# test.dir ${worksrcpath}/test
# test.target alltests