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

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

cryptlib: prevent installation if unixODBC is active; it would fail

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
RevLine 
[20267]1# $Id: Portfile 78169 2011-04-27 12:38:57Z ryandesign@macports.org $
[5019]2
3PortSystem              1.0
[34180]4
[5019]5name                    cryptlib
[78167]6version             3.4.0
7set branch          [join [lrange [split ${version} .] 0 1] .]
[5019]8categories              devel security crypto
[30224]9maintainers             nomaintainer
[5019]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/
[62406]23master_sites    ftp://ftp.franken.de/pub/crypt/cryptlib/ \
24                http://www.cypherpunks.to/~peter/
[78167]25distname            cl[join [split $version .] ""]
[5019]26use_zip                 yes
27
[78167]28checksums           sha1    78f7599971c889a55346ddf858e3ef147a5270f0 \
29                    rmd160  d38cf69841942670f84e4c2d64a708f5cb3d4299
30
[5019]31pre-extract {
[78167]32    # DOS to UNIX line endings.
33    extract.pre_args-append -a
[5019]34}
[78167]35extract.mkdir       yes
[5019]36
37use_configure   no
38
[78169]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
[5019]50build.target    default shared
[58077]51build.args              LIBDIR="${prefix}/lib" \
52                CFLAGS="${configure.cflags} ${configure.cc_archflags} -c -D__UNIX__ -DNDEBUG -I." \
53                CC="${configure.cc}"
[5019]54
55destroot {
[78167]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}
[5019]61}
62
[26898]63platform darwin {
[58077]64    patchfiles-append patch-crypt_osconfig.h
[5019]65        global cryptlibDylib cryptlibDylibLink
[78167]66        set cryptlibDylib               libcl.${branch}.dylib
[5019]67        set cryptlibDylibLink   libcl.dylib
68}
69
[58077]70platform darwin 10 {
71    patchfiles-append lresolv.diff
72}
73
[26899]74platform sunos {
[5019]75        global cryptlibDylib cryptlibDylibLink
[11595]76        patchfiles-append       patch-makefile.sunos
[78167]77        set cryptlibDylib               libcl.so.${branch}
[5019]78        set cryptlibDylibLink   libcl.so
79}
Note: See TracBrowser for help on using the repository browser.