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

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

cryptlib: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 85868 2011-10-17 03:39:38Z 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
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           sha1    78f7599971c889a55346ddf858e3ef147a5270f0 \
31                    rmd160  d38cf69841942670f84e4c2d64a708f5cb3d4299
32
33pre-extract {
34    # DOS to UNIX line endings.
35    extract.pre_args-append -a
36}
37extract.mkdir       yes
38
39use_configure   no
40
41pre-configure {
42        foreach {badport badfile} "unixODBC ${prefix}/include/sql.h" {
43                if {[file exists ${badfile}]} {
44                        ui_error "${name} cannot be built while ${badport} is active."
45                        ui_error "Please deactivate ${badport} and try again."
46                        ui_error "You can reactivate ${badport} again later."
47                        return -code error "${badport} is installed"
48                }
49        }
50}
51
52build.target    default shared
53build.args              LIBDIR="${prefix}/lib" \
54                CFLAGS="${configure.cflags} ${configure.cc_archflags} -c -D__UNIX__ -DNDEBUG -I." \
55                CC="${configure.cc}"
56
57destroot {
58    xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} ${destroot}${prefix}/lib
59    ln -s ${cryptlibDylib} ${destroot}${prefix}/lib/${cryptlibDylibLink}
60    xinstall -m 644 ${worksrcpath}/cryptlib.h ${destroot}${prefix}/include
61    xinstall -d ${destroot}${prefix}/share/doc/${name}
62    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
63}
64
65platform darwin {
66    patchfiles-append patch-crypt_osconfig.h
67        global cryptlibDylib cryptlibDylibLink
68        set cryptlibDylib               libcl.${branch}.dylib
69        set cryptlibDylibLink   libcl.dylib
70}
71
72platform sunos {
73        global cryptlibDylib cryptlibDylibLink
74        patchfiles-append       patch-makefile.sunos
75        set cryptlibDylib               libcl.so.${branch}
76        set cryptlibDylibLink   libcl.so
77}
78
79livecheck.type      regex
80livecheck.url       ${homepage}download.html
81livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.