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

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

cryptlib: use conflicts_build

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 97530 2012-09-08 05:23:38Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5PortGroup           conflicts_build 1.0
6
7name                    cryptlib
8version             3.4.1
9set branch          [join [lrange [split ${version} .] 0 1] .]
10categories              devel security crypto
11maintainers             nomaintainer
12license             {Sleepycat Restrictive}
13
14description             cryptlib is a powerful security toolkit (library)
15
16long_description \
17        cryptlib is a powerful security toolkit that allows even inexperienced \
18        crypto programmers to easily add encryption and authentication services \
19        to their software. The high-level interface provides anyone with the \
20        ability to add strong security capabilities to an application in as \
21        little as half an hour, without needing to know any of the low-level \
22        details that make the encryption or authentication work.
23
24platforms               darwin sunos
25
26homepage                http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
27master_sites    ftp://ftp.franken.de/pub/crypt/cryptlib/ \
28                http://www.cypherpunks.to/~peter/
29distname            cl[join [split $version .] ""]
30use_zip                 yes
31
32checksums           rmd160  2272e20697e3e1d8b484ae9d571b08371b1319fb \
33                    sha256  d3057acbf4bc7d45694d8ec2621ee4027f9303d36cebdfe2af770567ec912c94
34
35pre-extract {
36    # DOS to UNIX line endings.
37    extract.pre_args-append -a
38}
39extract.mkdir       yes
40
41patchfiles          patch-makefile.diff \
42                    patch-tools-ccopts.sh.diff
43
44# Build fails when compiler is gcc or llvm-gcc; warnings are printed when compiler is clang.
45conflicts_build     unixODBC
46
47use_configure   no
48
49build.target    default shared
50build.env           LIBDIR="${prefix}/lib" \
51                    CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
52                    LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
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}
76
77livecheck.type      regex
78livecheck.url       ${homepage}download.html
79livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.