source: trunk/dports/devel/libcryptopp/Portfile @ 92132

Last change on this file since 92132 was 92132, checked in by raphael@…, 5 years ago

libcryptopp:

  • indicate license
  • use rmd160 and sha256 checksums
  • fix for building with clang
  • use the right compiler; fixes #34125
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 92132 2012-04-19 17:11:35Z raphael@macports.org $
3
4PortSystem 1.0
5
6name                libcryptopp
7version             5.6.1
8categories          devel security
9platforms           darwin
10maintainers         raphael openmaintainer
11description         C++ class library of cryptographic schemes
12long_description    Crypto++ Library is a free C++ class library of \
13                    cryptographic schemes.
14
15homepage            http://www.cryptopp.com/
16license             public-domain
17
18master_sites        sourceforge:cryptopp \
19                    ${homepage}
20distname            cryptopp[strsed ${version} {g/\.//}]
21
22checksums           rmd160  a8a5b80c995c5d4ddafba228caf8866425212fbf \
23                    sha256  98e74d8cb17a38033354519ac8ba9c5d98a6dc00bf5d1ec3c533c2e8ec86f268
24
25use_zip             yes
26extract.mkdir       yes
27
28patchfiles          patch-GNUmakefile.diff \
29                    patch-name_lookup.diff
30
31use_configure       no
32
33build.type          gnu
34build.env-append    CXXFLAGS="${configure.cxx_archflags}"
35build.args-append   CXX=${configure.cxx}
36
37test.run            yes
38test.cmd            ./cryptest.exe
39test.target         v
40
41destroot {
42    xinstall -m 755 -d ${destroot}${prefix}/include/cryptopp \
43        ${destroot}${prefix}/share/doc/${name}
44    xinstall -m 644 ${worksrcpath}/libcryptopp.a ${destroot}${prefix}/lib
45    eval xinstall -m 644 [glob ${worksrcpath}/*.h] \
46        ${destroot}${prefix}/include/cryptopp/
47    xinstall -m 644 -W ${worksrcpath} Readme.txt License.txt \
48        ${destroot}${prefix}/share/doc/${name}/
49}
50
51variant universal {
52    build.env-delete    CXXFLAGS="${configure.cxx_archflags}"
53    build.env-append    CXXFLAGS="${configure.universal_cxxflags}"
54}
55
56livecheck.type                  regex
57livecheck.regex                 "Crypto\\+\\+ (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.