source: trunk/dports/security/openpgpsdk/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
2
3PortSystem          1.0
4
5name                openpgpsdk
6version             0.9
7revision            1
8categories          security devel
9license             BSD
10maintainers         nomaintainer
11description         OpenPGP library SDK
12long_description \
13   The OpenPGP SDK project provides an open source library, written in C, \
14   which implements the OpenPGP specification.
15
16platforms           darwin
17
18homepage            http://openpgp.nominet.org.uk/
19master_sites        ${homepage}downloads/
20extract.suffix      .tgz
21
22checksums           md5     a2fe87ee864e6bcc0d5ea3db20e0f57a \
23                    sha1    faa2eb844da0f1689dee29c3220364545ca7746b \
24                    rmd160  9260e464f8f9b385d0cc8348d20e1c264856cee3
25
26depends_build       bin:perl:perl5 bin:gpg:gnupg
27
28depends_lib         path:lib/libssl.dylib:openssl port:bzip2 port:zlib port:cunit
29
30universal_variant   no
31
32patchfiles          patch-disable_werror.diff
33
34configure.pre_args
35configure.args      --with-bz2lib=${prefix}/lib --with-cunit=${prefix} \
36                    --with-openssl=${prefix} --with-zlib=${prefix}/lib \
37                    --cc=${configure.cc}
38
39test.run            yes
40
41destroot {
42   copy ${worksrcpath}/include/${name} ${destroot}${prefix}/include
43   xinstall -m 644 -W ${worksrcpath}/lib libops.a ${destroot}${prefix}/lib
44   xinstall -m 755 -W ${worksrcpath}/bin openpgp ${destroot}${prefix}/bin
45}
46
47variant doc description {Install doxygen-generated documentation} {
48   depends_build-append   port:doxygen
49   build.target-append    doc
50   post-destroot {
51      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
52      # Using foreach instead of copy due to the number of files
53      foreach htmlfile [glob ${worksrcpath}/doc/doxy-user/html/*] {
54         xinstall -m 644 ${htmlfile} ${destroot}${prefix}/share/doc/${name}
55      }
56      foreach manpage [glob ${worksrcpath}/doc/doxy-user/man/man3/*] {
57         xinstall -m 644 ${manpage} ${destroot}${prefix}/share/man/man3/
58      }
59   }
60}
61
62livecheck.type      none
Note: See TracBrowser for help on using the repository browser.