-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
53 lines (42 loc) · 1.6 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $Id$
PortSystem 1.0
name gpgme
version 1.1.2
revision 2
categories devel security crypto
maintainers darwinports@opendarwin.org
description A library for easy acces to GnuPG.
long_description \
GnuPG Made Easy (GPGME) is a library designed to make access \
to GnuPG easier for applications. It provides a High-Level \
Crypto API for encryption, decryption, signing, signature \
verification and key management. Currently it uses GnuPG \
as its backend but the API isn't restricted to this engine \
in fact we have already developed a backend for CMS (S/MIME).
platforms darwin
homepage http://www.gnupg.org/related_software/gpgme/
master_sites http://ftp.gnupg.org/gcrypt/gpgme/ \
http://mirrors.rootmode.com/ftp.gnupg.org/gpgme/ \
ftp://ftp.gnupg.org/gcrypt/gpgme/
use_bzip2 yes
checksums sha1 ebf8c278e967588acd7c416bd14bfe35615b7e81
patchfiles patch-assuan_assuan.h patch-assuan_funopen.c
depends_lib port:gnupg port:pth port:libgpg-error
post-patch {
reinplace "s|thread_modules=\"\"|thread_modules=\"pthread\"|" ${worksrcpath}/gpgme/gpgme-config.in
}
configure.env CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
configure.args --infodir=${prefix}/share/info \
--mandir=${prefix}/share/man \
--with-gpg=${prefix}/bin/gpg --enable-static
test.run yes
test.target check
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LESSER \
ChangeLog INSTALL NEWS README THANKS TODO \
${destroot}${prefix}/share/doc/${name}
}
platform darwin 7 {
configure.env-append LIBS="-lpth"
}