categories security devel
description OpenPGP library SDK
The OpenPGP SDK project provides an open source library, written in C, \
which implements the OpenPGP specification.
homepage http://openpgp.nominet.org.uk/
master_sites ${homepage}downloads/
checksums md5 a2fe87ee864e6bcc0d5ea3db20e0f57a \
sha1 faa2eb844da0f1689dee29c3220364545ca7746b \
rmd160 9260e464f8f9b385d0cc8348d20e1c264856cee3
depends_build bin:perl:perl5 path:bin/gpg:gnupg2
depends_lib path:lib/libssl.dylib:openssl port:bzip2 port:zlib port:cunit
patchfiles patch-disable_werror.diff
configure.args --with-bz2lib=${prefix}/lib --with-cunit=${prefix} \
--with-openssl=${prefix} --with-zlib=${prefix}/lib \
copy ${worksrcpath}/include/${name} ${destroot}${prefix}/include
xinstall -m 644 -W ${worksrcpath}/lib libops.a ${destroot}${prefix}/lib
xinstall -m 755 -W ${worksrcpath}/bin openpgp ${destroot}${prefix}/bin
variant doc description {Install doxygen-generated documentation} {
depends_build-append port:doxygen
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
# Using foreach instead of copy due to the number of files
foreach htmlfile [glob ${worksrcpath}/doc/doxy-user/html/*] {
xinstall -m 644 ${htmlfile} ${destroot}${prefix}/share/doc/${name}
foreach manpage [glob ${worksrcpath}/doc/doxy-user/man/man3/*] {
xinstall -m 644 ${manpage} ${destroot}${prefix}/share/man/man3/