|
|
@@ -5,19 +5,18 @@ 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 |
|
|
# and word size 5975092or 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." |
|
|
PortGroup muniversal 1.0 |
|
|
|
|
|
name cryptlib |
|
|
version 3.4.3.1 |
|
|
revision 1 |
|
|
version 3.4.4 |
|
|
set branch [join [lrange [split ${version} .] 0 1] .] |
|
|
categories devel security crypto |
|
|
platforms darwin |
|
|
maintainers ryandesign openmaintainer |
|
|
maintainers {ryandesign @ryandesign} openmaintainer |
|
|
license {Sleepycat Restrictive} |
|
|
|
|
|
description cryptlib is a powerful security toolkit (library) |
|
|
@@ -34,44 +33,51 @@ long_description cryptlib is a powerful security toolkit that allows even \ |
|
|
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 .] ""] |
|
|
use_zip yes |
|
|
|
|
|
checksums rmd160 e4b48ea2b888a4cc684d425520b49e0578c39263 \ |
|
|
sha256 4a608d725f66669d983083420f9f57f763f320292c50346de3e8c1caeee743bd |
|
|
checksums rmd160 0c51232bba6eac582b16991f6d01518dc8cbf49f \ |
|
|
sha256 aa461b57c703f987a649a3987feb10d088d440f42b3160ef36104058909fec3d \ |
|
|
size 5975092 |
|
|
|
|
|
depends_lib port:zlib |
|
|
|
|
|
pre-extract { |
|
|
# DOS to UNIX line endings. |
|
|
extract.pre_args-append -a |
|
|
} |
|
|
extract.mkdir yes |
|
|
|
|
|
patchfiles-append patch-makefile.diff \ |
|
|
patch-tools-ccopts.sh.diff |
|
|
patchfiles-append patch-makefile.diff |
|
|
|
|
|
# Build fails when compiler is gcc or llvm-gcc; warnings are printed when compiler is clang. |
|
|
conflicts_build unixODBC |
|
|
|
|
|
use_configure no |
|
|
|
|
|
configure.ldflags-append -lz |
|
|
|
|
|
build.target default shared |
|
|
build.env CC="${configure.cc}" \ |
|
|
build.args CC="${configure.cc}" \ |
|
|
PREFIX="${prefix}" |
|
|
|
|
|
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include |
|
|
|
|
|
foreach arch ${universal_archs} { |
|
|
lappend merger_build_env(${arch}) CFLAGS='${configure.cflags} ${configure.cppflags} -arch ${arch}' |
|
|
lappend merger_build_env(${arch}) LDFLAGS='-arch ${arch}' |
|
|
# set archflag "-arch ${arch}" |
|
|
# lappend merger_build_env(${arch}) \ |
|
|
# CFLAGS=[list {*}${configure.cflags} {*}${configure.cppflags} {*}${archflag}] \ |
|
|
# LDFLAGS=[list {*}${configure.ldflags} {*}${archflag}] |
|
|
lappend merger_build_env(${arch}) \ |
|
|
CFLAGS="${configure.cflags} ${configure.cppflags} -arch ${arch}" \ |
|
|
LDFLAGS="${configure.ldflags} -arch ${arch}" |
|
|
} |
|
|
|
|
|
if {![variant_isset universal] && [info exists merger_build_env(${build_arch})]} { |
|
|
build.env-append $merger_build_env(${build_arch}) |
|
|
if {![variant_isset universal] && [info exists merger_build_env(${configure.build_arch})]} { |
|
|
build.env-append $merger_build_env(${configure.build_arch}) |
|
|
} |
|
|
|
|
|
destroot.env PREFIX="${prefix}" |
|
|
destroot.args PREFIX="${prefix}" |
|
|
|
|
|
post-destroot { |
|
|
set docdir ${prefix}/share/doc/${subport} |
|
|
|
Typo?