source: trunk/dports/devel/cryptlib/Portfile @ 153708

Last change on this file since 153708 was 153708, checked in by ryandesign@…, 4 years ago

cryptlib: Use https for homepage

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 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 153708 2016-10-08 14:47:55Z 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
[114713]16version             3.4.2
[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
[114713]40checksums           rmd160  c16757dbd44a50b211b5168fbc7ecf7c307b88d6 \
41                    sha256  0ee4a7568ddb7de6b155b79844e25bc1a20af9439b0db38bfbd47a984be923a3
[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
[114713]49patchfiles          patch-crypt-osconfig.h.diff \
[114712]50                    patch-makefile.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 {
[78167]76    xinstall -d ${destroot}${prefix}/share/doc/${name}
77    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
[5019]78}
79
[85867]80livecheck.type      regex
81livecheck.url       ${homepage}download.html
82livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.