Ticket #41547: Portfile

File Portfile, 1.5 KB (added by jpo@…, 10 years ago)

fix universal

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$
3
4PortSystem          1.0
5
6name                bcrypt
7version             1.1
8categories          security
9license             BSD
10platforms           darwin
11maintainers         vt.edu:jpo openmaintainer
12description         cross platform file encryption utility
13long_description    Bcrypt uses the blowfish encryption algorithm published \
14                    by Bruce Schneier in 1993. More information on the \
15                    algorithm can be found at Counterpane. Specifically, \
16                    bcrypt uses Paul Kocher's implementation of the algorithm.
17homepage            http://bcrypt.sourceforge.net/
18master_sites        sourceforge:project/bcrypt/bcrypt/${version}
19
20checksums           rmd160  c043a25169b09e7b07c2e00db0d4ca2c3b3d13be \
21                    sha256  b9c1a7c0996a305465135b90123b0c63adbb5fa7c47a24b3f347deb2696d417d
22
23depends_lib         port:zlib
24
25variant universal   {}
26
27use_configure       no
28
29build.target        bcrypt
30build.args-append   CC="${configure.cc} [get_canonical_archflags]" \
31                    LDFLAGS="${configure.ldflags} -lz"
32
33destroot {
34    xinstall -m 755 ${worksrcpath}/bcrypt   ${destroot}${prefix}/bin
35    xinstall -m 644 ${worksrcpath}/bcrypt.1 ${destroot}${prefix}/share/man/man1
36
37    set docdir ${prefix}/share/doc/${subport}
38    xinstall -d ${destroot}${docdir}
39    xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir}
40}