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

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

cryptlib: update to 3.4 and clean up the port a bit

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 78167 2011-04-27 12:32:32Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    cryptlib
6version             3.4.0
7set branch          [join [lrange [split ${version} .] 0 1] .]
8categories              devel security crypto
9maintainers             nomaintainer
10description             cryptlib is a powerful security toolkit (library)
11
12long_description \
13        cryptlib is a powerful security toolkit that allows even inexperienced \
14        crypto programmers to easily add encryption and authentication services \
15        to their software. The high-level interface provides anyone with the \
16        ability to add strong security capabilities to an application in as \
17        little as half an hour, without needing to know any of the low-level \
18        details that make the encryption or authentication work.
19
20platforms               darwin sunos
21
22homepage                http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
23master_sites    ftp://ftp.franken.de/pub/crypt/cryptlib/ \
24                http://www.cypherpunks.to/~peter/
25distname            cl[join [split $version .] ""]
26use_zip                 yes
27
28checksums           sha1    78f7599971c889a55346ddf858e3ef147a5270f0 \
29                    rmd160  d38cf69841942670f84e4c2d64a708f5cb3d4299
30
31pre-extract {
32    # DOS to UNIX line endings.
33    extract.pre_args-append -a
34}
35extract.mkdir       yes
36
37use_configure   no
38
39build.target    default shared
40build.args              LIBDIR="${prefix}/lib" \
41                CFLAGS="${configure.cflags} ${configure.cc_archflags} -c -D__UNIX__ -DNDEBUG -I." \
42                CC="${configure.cc}"
43
44destroot {
45    xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} ${destroot}${prefix}/lib
46    ln -s ${cryptlibDylib} ${destroot}${prefix}/lib/${cryptlibDylibLink}
47    xinstall -m 644 ${worksrcpath}/cryptlib.h ${destroot}${prefix}/include
48    xinstall -d ${destroot}${prefix}/share/doc/${name}
49    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
50}
51
52platform darwin {
53    patchfiles-append patch-crypt_osconfig.h
54        global cryptlibDylib cryptlibDylibLink
55        set cryptlibDylib               libcl.${branch}.dylib
56        set cryptlibDylibLink   libcl.dylib
57}
58
59platform darwin 10 {
60    patchfiles-append lresolv.diff
61}
62
63platform sunos {
64        global cryptlibDylib cryptlibDylibLink
65        patchfiles-append       patch-makefile.sunos
66        set cryptlibDylib               libcl.so.${branch}
67        set cryptlibDylibLink   libcl.so
68}
Note: See TracBrowser for help on using the repository browser.