aboutsummaryrefslogtreecommitdiffstats
path: root/security/gpgme03/Makefile
blob: 7c99911c42755806ff75f77ff31dd35e1f2d7ece (plain) (blame)
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
# New ports collection makefile for:    gpgme
# Date created:     15 June 2001
# Whom:         teramoto@comm.eng.osaka-u.ac.jp
#
# $FreeBSD$
#

PORTNAME=   gpgme
PORTVERSION=    0.3.16
PORTREVISION=   2
CATEGORIES= security
MASTER_SITES=   ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= gpgme

MAINTAINER= markun@onohara.to
COMMENT=    A library to make access to GnuPG easier

BUILD_DEPENDS=  gpg:${PORTSDIR}/security/gnupg
LIB_DEPENDS=    pth.20:${PORTSDIR}/devel/pth

LATEST_LINK=    gpgme03

USE_INC_LIBTOOL_VER=13
USE_GMAKE=  yes
USE_AUTOCONF_VER=   259
INSTALLS_SHLIB= yes
USE_REINPLACE=  YES

INFO=   gpgme03

CONFIGURE_ARGS+=    --includedir=${PREFIX}/include/gpgme03

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/bin/gpgsm)
WITH_GPGSM= yes
.endif

.if defined(WITH_GPGSM)
BUILD_DEPENDS+= gpgsm:${PORTSDIR}/security/gnupg-devel
.else
CONFIGURE_ARGS+=    --without-gpgsm
.endif

post-patch:
.for i in tests tests/gpg tests/gpgsm
    @${REINPLACE_CMD} -e 's/libgpgme.la/libgpgme03.la/' \
        ${WRKSRC}/${i}/Makefile.in
.endfor

.include <bsd.port.post.mk>