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 153798 2016-10-11 16:47:40Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup conflicts_build 1.0 |
---|
6 | |
---|
7 | # Quoth the makefile: "[Multiple-architecture building] is rather trouble-prone |
---|
8 | # because the low-level crypto code has to configure itself for CPU endianness |
---|
9 | # and word size for the algorithms that require low-level bit fiddling, and |
---|
10 | # uses different code strategies depending on the CPU architecture and bit |
---|
11 | # width. This single-pass build for multiple architectures often causes |
---|
12 | # problems, and you're more or less on your own if you decide to try it." |
---|
13 | PortGroup muniversal 1.0 |
---|
14 | |
---|
15 | name cryptlib |
---|
16 | version 3.4.3 |
---|
17 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
18 | categories devel security crypto |
---|
19 | platforms darwin |
---|
20 | maintainers ryandesign openmaintainer |
---|
21 | license {Sleepycat Restrictive} |
---|
22 | |
---|
23 | description cryptlib is a powerful security toolkit (library) |
---|
24 | |
---|
25 | long_description cryptlib is a powerful security toolkit that allows even \ |
---|
26 | inexperienced crypto programmers to easily add encryption \ |
---|
27 | and authentication services to their software. The \ |
---|
28 | high-level interface provides anyone with the ability to \ |
---|
29 | add strong security capabilities to an application in as \ |
---|
30 | little as half an hour, without needing to know any of \ |
---|
31 | the low-level details that make the encryption or \ |
---|
32 | authentication work. |
---|
33 | |
---|
34 | homepage https://www.cs.auckland.ac.nz/~pgut001/cryptlib/ |
---|
35 | master_sites ftp://ftp.franken.de/pub/crypt/cryptlib/ \ |
---|
36 | http://www.cypherpunks.to/~peter/ |
---|
37 | distname cl[join [split $version .] ""] |
---|
38 | use_zip yes |
---|
39 | |
---|
40 | checksums rmd160 407a473d64cad30931f93b6d52bc3eb77c63e55f \ |
---|
41 | sha256 08b104442bb5c7281a3299853d5585cc63bd928454dff3150569c02b957427ad |
---|
42 | |
---|
43 | pre-extract { |
---|
44 | # DOS to UNIX line endings. |
---|
45 | extract.pre_args-append -a |
---|
46 | } |
---|
47 | extract.mkdir yes |
---|
48 | |
---|
49 | patchfiles-append patch-makefile.diff \ |
---|
50 | patch-random-unix.c.diff \ |
---|
51 | patch-tools-ccopts.sh.diff |
---|
52 | |
---|
53 | # Build fails when compiler is gcc or llvm-gcc; warnings are printed when compiler is clang. |
---|
54 | conflicts_build unixODBC |
---|
55 | |
---|
56 | use_configure no |
---|
57 | |
---|
58 | build.target default shared |
---|
59 | build.env CC="${configure.cc}" \ |
---|
60 | PREFIX="${prefix}" |
---|
61 | |
---|
62 | configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include |
---|
63 | |
---|
64 | foreach arch ${universal_archs} { |
---|
65 | lappend merger_build_env(${arch}) CFLAGS='${configure.cflags} ${configure.cppflags} -arch ${arch}' |
---|
66 | lappend merger_build_env(${arch}) LDFLAGS='-arch ${arch}' |
---|
67 | } |
---|
68 | |
---|
69 | if {![variant_isset universal] && [info exists merger_build_env(${build_arch})]} { |
---|
70 | build.env-append $merger_build_env(${build_arch}) |
---|
71 | } |
---|
72 | |
---|
73 | destroot.env PREFIX="${prefix}" |
---|
74 | |
---|
75 | post-destroot { |
---|
76 | set docdir ${prefix}/share/doc/${subport} |
---|
77 | xinstall -d ${destroot}${docdir} |
---|
78 | xinstall -m 644 -W ${worksrcpath} \ |
---|
79 | COPYING \ |
---|
80 | README \ |
---|
81 | ${destroot}${docdir} |
---|
82 | } |
---|
83 | |
---|
84 | livecheck.type regex |
---|
85 | livecheck.url ${homepage}download.html |
---|
86 | livecheck.regex ${name} (\[0-9.\]+) |
---|