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

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

Numerous ports: add license field

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