aboutsummaryrefslogtreecommitdiffstats
path: root/security/pecl-gnupg/Makefile
blob: 2e73a9f0400c9260a210e3389127551b32512cd0 (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
# Ports collection makefile for:  pear-gnupg
# Date created:           16 March 2006
# Whom:               mnag@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   gnupg
PORTVERSION=    1.3
CATEGORIES= security
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    PECL

MAINTAINER= mnag@FreeBSD.org
COMMENT=    A pecl wrapper around the gpgme library

LIB_DEPENDS=    gpgme.17:${PORTSDIR}/security/gpgme

USE_PHP=    yes
USE_PHPEXT= yes
PHP_MODNAME=    gnupg

CONFIGURE_ARGS= --with-gnupg=${LOCALBASE}/include/gpgme
CFLAGS+=        -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000 && ${PHP_VER} == 5
USE_GCC=    3.2+
.endif

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

.include <bsd.port.post.mk>