source: trunk/dports/devel/cryptlib/Portfile

Last change on this file was 153798, checked in by ryandesign@…, 4 years 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
RevLine 
[97535]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
[20267]2# $Id: Portfile 153798 2016-10-11 16:47:40Z ryandesign@macports.org $
[5019]3
[97535]4PortSystem          1.0
[97530]5PortGroup           conflicts_build 1.0
6
[114714]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
[97535]15name                cryptlib
[153798]16version             3.4.3
[78167]17set branch          [join [lrange [split ${version} .] 0 1] .]
[97535]18categories          devel security crypto
[114712]19platforms           darwin
[153707]20maintainers         ryandesign openmaintainer
[85868]21license             {Sleepycat Restrictive}
22
[97535]23description         cryptlib is a powerful security toolkit (library)
[5019]24
[97535]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.
[5019]33
[153708]34homepage            https://www.cs.auckland.ac.nz/~pgut001/cryptlib/
[97535]35master_sites        ftp://ftp.franken.de/pub/crypt/cryptlib/ \
36                    http://www.cypherpunks.to/~peter/
[78167]37distname            cl[join [split $version .] ""]
[97535]38use_zip             yes
[5019]39
[153798]40checksums           rmd160  407a473d64cad30931f93b6d52bc3eb77c63e55f \
41                    sha256  08b104442bb5c7281a3299853d5585cc63bd928454dff3150569c02b957427ad
[78167]42
[5019]43pre-extract {
[78167]44    # DOS to UNIX line endings.
45    extract.pre_args-append -a
[5019]46}
[78167]47extract.mkdir       yes
[5019]48
[153798]49patchfiles-append   patch-makefile.diff \
50                    patch-random-unix.c.diff \
[85985]51                    patch-tools-ccopts.sh.diff
52
[97530]53# Build fails when compiler is gcc or llvm-gcc; warnings are printed when compiler is clang.
[114833]54conflicts_build     unixODBC
[97530]55
[97535]56use_configure       no
[5019]57
[97535]58build.target        default shared
[114714]59build.env           CC="${configure.cc}" \
60                    PREFIX="${prefix}"
[5019]61
[114833]62configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
63
[114714]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
[114713]73destroot.env        PREFIX="${prefix}"
74
75post-destroot {
[153798]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}
[5019]82}
83
[85867]84livecheck.type      regex
85livecheck.url       ${homepage}download.html
86livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.