# -*- 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
PortGroup conflicts_build 1.0
# Quoth the makefile: "[Multiple-architecture building] is rather trouble-prone
# because the low-level crypto code has to configure itself for CPU endianness
# and word size for the algorithms that require low-level bit fiddling, and
# uses different code strategies depending on the CPU architecture and bit
# width. This single-pass build for multiple architectures often causes
# problems, and you're more or less on your own if you decide to try it."
set branch [join [lrange [split ${version} .] 0 1] .]
categories devel security crypto
maintainers ryandesign openmaintainer
license {Sleepycat Restrictive}
description cryptlib is a powerful security toolkit (library)
long_description cryptlib is a powerful security toolkit that allows even \
inexperienced crypto programmers to easily add encryption \
and authentication services to their software. The \
high-level interface provides anyone with the ability to \
add strong security capabilities to an application in as \
little as half an hour, without needing to know any of \
the low-level details that make the encryption or \
homepage https://www.cs.auckland.ac.nz/~pgut001/cryptlib/
master_sites ftp://ftp.franken.de/pub/crypt/cryptlib/ \
http://www.cypherpunks.to/~peter/
# 3.4.3.1 was stealth-updated 2017-01-30
dist_subdir ${name}/${version}_1
distname cl[join [split $version .] ""]
checksums rmd160 e4b48ea2b888a4cc684d425520b49e0578c39263 \
sha256 4a608d725f66669d983083420f9f57f763f320292c50346de3e8c1caeee743bd
# DOS to UNIX line endings.
extract.pre_args-append -a
patchfiles-append patch-makefile.diff \
patch-tools-ccopts.sh.diff
# Build fails when compiler is gcc or llvm-gcc; warnings are printed when compiler is clang.
build.target default shared
build.env CC="${configure.cc}" \
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include