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

Last change on this file since 26899 was 26899, checked in by yves@…, 13 years ago

Change variant sunos to platform sunos

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 26899 2007-07-11 05:28:52Z yves@macports.org $
2
3PortSystem              1.0
4name                    cryptlib
5version                 3.1
6revision                2
7categories              devel security crypto
8maintainers             nomaintainer@macports.org
9description             cryptlib is a powerful security toolkit (library)
10
11long_description \
12        cryptlib is a powerful security toolkit that allows even inexperienced \
13        crypto programmers to easily add encryption and authentication services \
14        to their software. The high-level interface provides anyone with the \
15        ability to add strong security capabilities to an application in as \
16        little as half an hour, without needing to know any of the low-level \
17        details that make the encryption or authentication work.
18
19platforms               darwin sunos
20
21homepage                http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
22master_sites    ftp://ftp.franken.de/pub/crypt/cryptlib/
23distname                cl31
24use_zip                 yes
25checksums               md5 d732c7d527debbd01848c303e62efa13
26
27worksrcdir              cryptlib
28pre-extract {
29        extract.pre_args-append         "-a"
30        extract.post_args                       "-d ${worksrcpath}"
31}
32
33patchfiles              patch-cert__certechk.c patch-cert__certedef.c \
34                patch-device__dev_sys.c \
35                patch-keyset__dbxdbms.c patch-keyset__dbxdca.c \
36                patch-keyset__dbxpgp.c patch-keyset__dbxp15w.c \
37                patch-cryptcfg.c patch-cryptkrn.c patch-cryptusr.c \
38                patch-misc__net_http.c patch-misc__net_tcp.c \
39                patch-misc__stream.c \
40                patch-session__cmp_rd.c patch-session__scep.c \
41                patch-session__ssh.c patch-makefile
42
43use_configure   no
44
45build.target    default shared
46build.args              LIBDIR=${prefix}/lib
47
48destroot {
49        set drprefix    ${destroot}/${prefix}
50        file mkdir "${drprefix}/lib" "${drprefix}/include" \
51                "${drprefix}/share/doc/${name}"
52        xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} \
53                ${drprefix}/lib
54        system "ln -s ${cryptlibDylib} ${drprefix}/lib/${cryptlibDylibLink}"
55        xinstall -m 644 ${worksrcpath}/cryptlib.h ${drprefix}/include
56        xinstall -m 644 ${worksrcpath}/README ${drprefix}/share/doc/${name}/
57        system "/bin/echo ${homepage} > ${drprefix}/share/doc/${name}/website"
58}
59
60platform darwin 7 {
61        patchfiles-append               patch-makefile.darwin7
62}
63
64platform darwin {
65        global cryptlibDylib cryptlibDylibLink
66        set cryptlibDylib               libcl.3.1.dylib
67        set cryptlibDylibLink   libcl.dylib
68}
69
70platform sunos {
71        global cryptlibDylib cryptlibDylibLink
72        patchfiles-append       patch-makefile.sunos
73        set cryptlibDylib               libcl.so.3.1.0
74        set cryptlibDylibLink   libcl.so
75}
76
Note: See TracBrowser for help on using the repository browser.