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
RevLine 
[20267]1# $Id: Portfile 86000 2011-10-18 07:05:19Z ryandesign@macports.org $
[5019]2
3PortSystem              1.0
[34180]4
[5019]5name                    cryptlib
[85985]6version             3.4.1
[78167]7set branch          [join [lrange [split ${version} .] 0 1] .]
[5019]8categories              devel security crypto
[30224]9maintainers             nomaintainer
[85868]10license             {Sleepycat Restrictive}
11
[5019]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/
[86000]25master_sites    ftp://ftp.franken.de/pub/crypt/cryptlib/ \
26                http://www.cypherpunks.to/~peter/
[78167]27distname            cl[join [split $version .] ""]
[5019]28use_zip                 yes
29
[85985]30checksums           rmd160  2272e20697e3e1d8b484ae9d571b08371b1319fb \
31                    sha256  d3057acbf4bc7d45694d8ec2621ee4027f9303d36cebdfe2af770567ec912c94
[78167]32
[5019]33pre-extract {
[78167]34    # DOS to UNIX line endings.
35    extract.pre_args-append -a
[5019]36}
[78167]37extract.mkdir       yes
[5019]38
[85985]39patchfiles          patch-makefile.diff \
40                    patch-tools-ccopts.sh.diff
41
[5019]42use_configure   no
43
[78169]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
[5019]55build.target    default shared
[85985]56build.env           LIBDIR="${prefix}/lib" \
57                    CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
58                    LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
59                    CC="${configure.cc}"
[5019]60
61destroot {
[78167]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}
[5019]67}
68
[26898]69platform darwin {
[58077]70    patchfiles-append patch-crypt_osconfig.h
[5019]71        global cryptlibDylib cryptlibDylibLink
[78167]72        set cryptlibDylib               libcl.${branch}.dylib
[5019]73        set cryptlibDylibLink   libcl.dylib
74}
75
[26899]76platform sunos {
[5019]77        global cryptlibDylib cryptlibDylibLink
[11595]78        patchfiles-append       patch-makefile.sunos
[78167]79        set cryptlibDylib               libcl.so.${branch}
[5019]80        set cryptlibDylibLink   libcl.so
81}
[85867]82
83livecheck.type      regex
84livecheck.url       ${homepage}download.html
85livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.