aboutsummaryrefslogtreecommitdiffstats
path: root/security/php-Auth_OpenID/Makefile
blob: ea76f48b6b382b816a465e7fb25b23d88356cd8a (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
52
53
54
55
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=   Auth_OpenID
PORTVERSION=    1.2.3
CATEGORIES= security www pear
MASTER_SITES=   http://openidenabled.com/files/php-openid/packages/
PKGNAMEPREFIX=  php-
DISTNAME=   php-openid-${PORTVERSION}

MAINTAINER= gslin@gslin.org
COMMENT=    PHP OpenID library

RUN_DEPENDS=    pear:${PORTSDIR}/devel/pear
BUILD_DEPENDS:= ${RUN_DEPENDS}

CONFLICTS=  pear-Auth_OpenID-2.*

USE_BZIP2=  yes
NO_BUILD=   yes
OPTIONS_DEFINE= BCMATH MYSQL PGSQL SQLITE
BCMATH_DESC=    Use bcmath instead of libgmp

USE_PHP=    curl dom

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MBCMATH}
USE_PHP+=   bcmath
.else
USE_PHP+=   gmp
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+=   mysql
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=   pgsql
.endif

.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+=   sqlite
.endif

do-install:
    ${MKDIR} ${PREFIX}/share/pear/Auth/OpenID
    ${CP} ${WRKSRC}/Auth/OpenID.php ${PREFIX}/share/pear/Auth
    ${CP} ${WRKSRC}/Auth/OpenID/* ${PREFIX}/share/pear/Auth/OpenID
    ${MKDIR} ${PREFIX}/share/pear/Services/Yadis
    ${CP} ${WRKSRC}/Services/Yadis/* ${PREFIX}/share/pear/Services/Yadis
    ${MKDIR} ${EXAMPLESDIR}
    ${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}

.include <bsd.port.post.mk>