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

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

cryptlib: remove www.cypherpunks.to mirror; its cl341.zip is a much older version than the one on the main FTP site and its checksums obviously don't match those in the portfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
RevLine 
[20267]1# $Id: Portfile 85989 2011-10-18 03:41:28Z 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/
[85989]25master_sites    ftp://ftp.franken.de/pub/crypt/cryptlib/
[78167]26distname            cl[join [split $version .] ""]
[5019]27use_zip                 yes
28
[85985]29checksums           rmd160  2272e20697e3e1d8b484ae9d571b08371b1319fb \
30                    sha256  d3057acbf4bc7d45694d8ec2621ee4027f9303d36cebdfe2af770567ec912c94
[78167]31
[5019]32pre-extract {
[78167]33    # DOS to UNIX line endings.
34    extract.pre_args-append -a
[5019]35}
[78167]36extract.mkdir       yes
[5019]37
[85985]38patchfiles          patch-makefile.diff \
39                    patch-tools-ccopts.sh.diff
40
[5019]41use_configure   no
42
[78169]43pre-configure {
44        foreach {badport badfile} "unixODBC ${prefix}/include/sql.h" {
45                if {[file exists ${badfile}]} {
46                        ui_error "${name} cannot be built while ${badport} is active."
47                        ui_error "Please deactivate ${badport} and try again."
48                        ui_error "You can reactivate ${badport} again later."
49                        return -code error "${badport} is installed"
50                }
51        }
52}
53
[5019]54build.target    default shared
[85985]55build.env           LIBDIR="${prefix}/lib" \
56                    CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
57                    LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
58                    CC="${configure.cc}"
[5019]59
60destroot {
[78167]61    xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} ${destroot}${prefix}/lib
62    ln -s ${cryptlibDylib} ${destroot}${prefix}/lib/${cryptlibDylibLink}
63    xinstall -m 644 ${worksrcpath}/cryptlib.h ${destroot}${prefix}/include
64    xinstall -d ${destroot}${prefix}/share/doc/${name}
65    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
[5019]66}
67
[26898]68platform darwin {
[58077]69    patchfiles-append patch-crypt_osconfig.h
[5019]70        global cryptlibDylib cryptlibDylibLink
[78167]71        set cryptlibDylib               libcl.${branch}.dylib
[5019]72        set cryptlibDylibLink   libcl.dylib
73}
74
[26899]75platform sunos {
[5019]76        global cryptlibDylib cryptlibDylibLink
[11595]77        patchfiles-append       patch-makefile.sunos
[78167]78        set cryptlibDylib               libcl.so.${branch}
[5019]79        set cryptlibDylibLink   libcl.so
80}
[85867]81
82livecheck.type      regex
83livecheck.url       ${homepage}download.html
84livecheck.regex     ${name} (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.