source: trunk/dports/devel/cryptlib/Portfile

Last change on this file was 153798, checked in by ryandesign@…, 9 months ago

cryptlib: update to 3.4.3

Resolves #45675

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
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
4PortSystem          1.0
5PortGroup           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."
13PortGroup           muniversal 1.0
14
15name                cryptlib
16version             3.4.3
17set branch          [join [lrange [split ${version} .] 0 1] .]
18categories          devel security crypto
19platforms           darwin
20maintainers         ryandesign openmaintainer
21license             {Sleepycat Restrictive}
22
23description         cryptlib is a powerful security toolkit (library)
24
25long_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
34homepage            https://www.cs.auckland.ac.nz/~pgut001/cryptlib/
35master_sites        ftp://ftp.franken.de/pub/crypt/cryptlib/ \
36                    http://www.cypherpunks.to/~peter/
37distname            cl[join [split $version .] ""]
38use_zip             yes
39
40checksums           rmd160  407a473d64cad30931f93b6d52bc3eb77c63e55f \
41                    sha256  08b104442bb5c7281a3299853d5585cc63bd928454dff3150569c02b957427ad
42
43pre-extract {
44    # DOS to UNIX line endings.
45    extract.pre_args-append -a
46}
47extract.mkdir       yes
48
49patchfiles-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.
54conflicts_build     unixODBC
55
56use_configure       no
57
58build.target        default shared
59build.env           CC="${configure.cc}" \
60                    PREFIX="${prefix}"
61
62configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
63
64foreach 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
69if {![variant_isset universal] && [info exists merger_build_env(${build_arch})]} {
70    build.env-append $merger_build_env(${build_arch})
71}
72
73destroot.env        PREFIX="${prefix}"
74
75post-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
84livecheck.type      regex
85livecheck.url       ${homepage}download.html
86livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.