source: trunk/dports/devel/libcryptopp/Portfile

Last change on this file was 153797, checked in by raphael@…, 11 months ago

libcryptopp: update to 5.6.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 153797 2016-10-11 16:09:22Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                libcryptopp
7version             5.6.5
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             Boost-1
17
18master_sites        sourceforge:cryptopp \
19                    ${homepage}
20distname            cryptopp[strsed ${version} {g/\.//}]
21
22checksums           rmd160  4c13bb99dd205d54598527386e88b0dd436fc524 \
23                    sha256  a75ef486fe3128008bbb201efee3dcdcffbe791120952910883b26337ec32c34
24
25use_zip             yes
26extract.mkdir       yes
27
28patchfiles          patch-GNUmakefile.diff
29
30use_configure       no
31
32variant universal {}
33
34proc _get_cryptopp_init_priority_flag {compiler} {
35    if {[string match "macports-gcc*" $compiler]} {
36        return " -DMACPORTS_GCC_COMPILER"
37    }
38    return ""
39}
40
41build.type          gnu
42build.target        dynamic static cryptest.exe
43build.env-append    CXXFLAGS="[get_canonical_archflags cxx] -DNDEBUG [_get_cryptopp_init_priority_flag ${configure.compiler}]"
44build.args-append   CXX=${configure.cxx} PREFIX=${prefix}
45
46test.run            yes
47test.cmd            ./cryptest.exe
48test.target         v
49
50destroot {
51    xinstall -m 755 -d ${destroot}${prefix}/include/cryptopp \
52        ${destroot}${prefix}/share/doc/${name}
53    xinstall -m 644 ${worksrcpath}/libcryptopp.a \
54        ${worksrcpath}/libcryptopp.dylib \
55        ${destroot}${prefix}/lib
56    xinstall -m 644 {*}[glob ${worksrcpath}/*.h] \
57        ${destroot}${prefix}/include/cryptopp/
58    xinstall -m 644 -W ${worksrcpath} Readme.txt License.txt \
59        ${destroot}${prefix}/share/doc/${name}/
60}
61
62livecheck.type      regex
63livecheck.regex     "Crypto\\+\\+ (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.