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

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

cryptlib: remove unnecessary darwin 10 patch that does nothing

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 78173 2011-04-27 13:09:51Z 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
39pre-configure {
40        foreach {badport badfile} "unixODBC ${prefix}/include/sql.h" {
41                if {[file exists ${badfile}]} {
42                        ui_error "${name} cannot be built while ${badport} is active."
43                        ui_error "Please deactivate ${badport} and try again."
44                        ui_error "You can reactivate ${badport} again later."
45                        return -code error "${badport} is installed"
46                }
47        }
48}
49
50build.target    default shared
51build.args              LIBDIR="${prefix}/lib" \
52                CFLAGS="${configure.cflags} ${configure.cc_archflags} -c -D__UNIX__ -DNDEBUG -I." \
53                CC="${configure.cc}"
54
55destroot {
56    xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} ${destroot}${prefix}/lib
57    ln -s ${cryptlibDylib} ${destroot}${prefix}/lib/${cryptlibDylibLink}
58    xinstall -m 644 ${worksrcpath}/cryptlib.h ${destroot}${prefix}/include
59    xinstall -d ${destroot}${prefix}/share/doc/${name}
60    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
61}
62
63platform darwin {
64    patchfiles-append patch-crypt_osconfig.h
65        global cryptlibDylib cryptlibDylibLink
66        set cryptlibDylib               libcl.${branch}.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.${branch}
74        set cryptlibDylibLink   libcl.so
75}
Note: See TracBrowser for help on using the repository browser.