aboutsummaryrefslogtreecommitdiffstats
path: root/security/pecl-gnupg/Makefile
blob: e4dbc760e31d68f08ee53f8fd5979d75f8e79603 (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
# Created by: mnag@FreeBSD.org
# $FreeBSD$

PORTNAME=   gnupg
PORTVERSION=    1.3.3
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
DIST_SUBDIR=    PECL

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    PECL wrapper around the gpgme library

LICENSE=    BSD2CLAUSE

LIB_DEPENDS=    libgpgme.so:${PORTSDIR}/security/gpgme

CFLAGS+=    -I${LOCALBASE}/include
CONFIGURE_ARGS= --with-gnupg=${LOCALBASE}/include/gpgme
LDFLAGS+=   -L${LOCALBASE}/lib
USE_PHP=    yes
USE_PHPEXT= yes
USES=       tar:tgz

post-patch:
    @${REINPLACE_CMD} -e 's|$$GNUPG_DIR/lib|${LOCALBASE}/lib|; s| -ldl||g' ${WRKSRC}/config.m4

.include <bsd.port.mk>