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

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

cryptlib: revert r85989: the www.cypherpunks.to mirror has been synced with the master and is now up to date again

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 86000 2011-10-18 07:05:19Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    cryptlib
6version             3.4.1
7set branch          [join [lrange [split ${version} .] 0 1] .]
8categories              devel security crypto
9maintainers             nomaintainer
10license             {Sleepycat Restrictive}
11
12description             cryptlib is a powerful security toolkit (library)
13
14long_description \
15        cryptlib is a powerful security toolkit that allows even inexperienced \
16        crypto programmers to easily add encryption and authentication services \
17        to their software. The high-level interface provides anyone with the \
18        ability to add strong security capabilities to an application in as \
19        little as half an hour, without needing to know any of the low-level \
20        details that make the encryption or authentication work.
21
22platforms               darwin sunos
23
24homepage                http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
25master_sites    ftp://ftp.franken.de/pub/crypt/cryptlib/ \
26                http://www.cypherpunks.to/~peter/
27distname            cl[join [split $version .] ""]
28use_zip                 yes
29
30checksums           rmd160  2272e20697e3e1d8b484ae9d571b08371b1319fb \
31                    sha256  d3057acbf4bc7d45694d8ec2621ee4027f9303d36cebdfe2af770567ec912c94
32
33pre-extract {
34    # DOS to UNIX line endings.
35    extract.pre_args-append -a
36}
37extract.mkdir       yes
38
39patchfiles          patch-makefile.diff \
40                    patch-tools-ccopts.sh.diff
41
42use_configure   no
43
44pre-configure {
45        foreach {badport badfile} "unixODBC ${prefix}/include/sql.h" {
46                if {[file exists ${badfile}]} {
47                        ui_error "${name} cannot be built while ${badport} is active."
48                        ui_error "Please deactivate ${badport} and try again."
49                        ui_error "You can reactivate ${badport} again later."
50                        return -code error "${badport} is installed"
51                }
52        }
53}
54
55build.target    default shared
56build.env           LIBDIR="${prefix}/lib" \
57                    CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
58                    LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
59                    CC="${configure.cc}"
60
61destroot {
62    xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} ${destroot}${prefix}/lib
63    ln -s ${cryptlibDylib} ${destroot}${prefix}/lib/${cryptlibDylibLink}
64    xinstall -m 644 ${worksrcpath}/cryptlib.h ${destroot}${prefix}/include
65    xinstall -d ${destroot}${prefix}/share/doc/${name}
66    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
67}
68
69platform darwin {
70    patchfiles-append patch-crypt_osconfig.h
71        global cryptlibDylib cryptlibDylibLink
72        set cryptlibDylib               libcl.${branch}.dylib
73        set cryptlibDylibLink   libcl.dylib
74}
75
76platform sunos {
77        global cryptlibDylib cryptlibDylibLink
78        patchfiles-append       patch-makefile.sunos
79        set cryptlibDylib               libcl.so.${branch}
80        set cryptlibDylibLink   libcl.so
81}
82
83livecheck.type      regex
84livecheck.url       ${homepage}download.html
85livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.