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

Last change on this file since 62406 was 62406, checked in by jmr@…, 11 years ago

cryptlib: stealth update (#23162)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 62406 2010-01-06 21:56:01Z jmr@macports.org $
2
3PortSystem              1.0
4
5name                    cryptlib
6version                 3.3.3
7revision                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 .] ""]
26dist_subdir     ${name}/${version}_1
27use_zip                 yes
28checksums               md5 98effb4644e1336a57bd3be50bae07d4 \
29                                sha1 f745ec44b4578b76eae49702035b635a004dfa14
30
31worksrcdir              cryptlib
32pre-extract {
33        extract.pre_args-append         "-a"
34        extract.post_args                       "-d ${worksrcpath}"
35}
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        set drprefix    ${destroot}${prefix}
46        file mkdir "${drprefix}/lib" "${drprefix}/include" \
47                "${drprefix}/share/doc/${name}"
48        xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} \
49                ${drprefix}/lib
50        system "ln -s ${cryptlibDylib} ${drprefix}/lib/${cryptlibDylibLink}"
51        xinstall -m 644 ${worksrcpath}/cryptlib.h ${drprefix}/include
52        xinstall -m 644 ${worksrcpath}/README ${drprefix}/share/doc/${name}
53        system "/bin/echo ${homepage} > ${drprefix}/share/doc/${name}/website"
54}
55
56platform darwin {
57    patchfiles-append patch-crypt_osconfig.h
58        global cryptlibDylib cryptlibDylibLink
59        set cryptlibDylib               libcl.3.3.dylib
60        set cryptlibDylibLink   libcl.dylib
61}
62
63platform darwin 10 {
64    patchfiles-append lresolv.diff
65}
66
67platform sunos {
68        global cryptlibDylib cryptlibDylibLink
69        patchfiles-append       patch-makefile.sunos
70        set cryptlibDylib               libcl.so.3.3
71        set cryptlibDylibLink   libcl.so
72}
Note: See TracBrowser for help on using the repository browser.