2013-04-28 23:02:39 +02:00
|
|
|
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
2007-06-14 04:41:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-06-24 15:04:04 +02:00
|
|
|
PORTNAME= Auth_OpenID2
|
2009-06-05 23:31:13 +02:00
|
|
|
PORTVERSION= 2.1.3
|
2007-06-14 04:41:41 +02:00
|
|
|
CATEGORIES= security www pear
|
2008-03-04 12:32:02 +01:00
|
|
|
MASTER_SITES= http://openidenabled.com/files/php-openid/packages/
|
2007-06-14 04:41:41 +02:00
|
|
|
PKGNAMEPREFIX= php-
|
2008-03-04 12:32:02 +01:00
|
|
|
DISTNAME= php-openid-${PORTVERSION}
|
2007-06-14 04:41:41 +02:00
|
|
|
|
|
|
|
MAINTAINER= gslin@gslin.org
|
|
|
|
COMMENT= PHP OpenID library
|
|
|
|
|
|
|
|
RUN_DEPENDS= pear:${PORTSDIR}/devel/pear
|
2012-06-10 20:42:48 +02:00
|
|
|
BUILD_DEPENDS:= ${RUN_DEPENDS}
|
2007-06-14 04:41:41 +02:00
|
|
|
|
2008-03-04 12:32:02 +01:00
|
|
|
CONFLICTS= pear-Auth_OpenID-2.*
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2007-06-14 04:41:41 +02:00
|
|
|
NO_BUILD= yes
|
2013-04-28 23:02:39 +02:00
|
|
|
OPTIONS_DEFINE= BCMATH MYSQL PGSQL SQLITE EXAMPLES
|
|
|
|
BCMATH_DESC= Use bcmath instead of libgmp
|
2007-06-14 04:41:41 +02:00
|
|
|
|
2008-06-24 15:04:04 +02:00
|
|
|
USE_PHP= curl dom
|
2007-06-14 04:41:41 +02:00
|
|
|
|
2013-09-21 00:55:24 +02:00
|
|
|
NO_STAGE= yes
|
2007-06-14 04:41:41 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MBCMATH}
|
2007-06-14 04:41:41 +02:00
|
|
|
USE_PHP+= bcmath
|
|
|
|
.else
|
|
|
|
USE_PHP+= gmp
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2007-06-14 04:41:41 +02:00
|
|
|
USE_PHP+= mysql
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2007-06-14 04:41:41 +02:00
|
|
|
USE_PHP+= pgsql
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
2007-06-14 04:41:41 +02:00
|
|
|
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
|
2008-06-24 15:04:04 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/pear/Auth/Yadis
|
|
|
|
${CP} -R ${WRKSRC}/Auth/Yadis/* ${PREFIX}/share/pear/Auth/Yadis
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2007-06-14 04:41:41 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
|
2009-03-15 21:23:04 +01:00
|
|
|
.endif
|
2007-06-14 04:41:41 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|