aeac01a4bb
Approved by: portmgr (not really, but touches unstaged ports)
58 lines
1.2 KiB
Makefile
58 lines
1.2 KiB
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Auth_OpenID2
|
|
PORTVERSION= 2.1.3
|
|
CATEGORIES= security www pear
|
|
MASTER_SITES= http://openidenabled.com/files/php-openid/packages/
|
|
PKGNAMEPREFIX= php-
|
|
DISTNAME= php-openid-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= PHP OpenID library
|
|
|
|
RUN_DEPENDS= pear:${PORTSDIR}/devel/pear
|
|
BUILD_DEPENDS:= ${RUN_DEPENDS}
|
|
|
|
CONFLICTS= pear-Auth_OpenID-2.*
|
|
|
|
USES= tar:bzip2
|
|
NO_BUILD= yes
|
|
OPTIONS_DEFINE= BCMATH MYSQL PGSQL SQLITE EXAMPLES
|
|
BCMATH_DESC= Use bcmath instead of libgmp
|
|
|
|
USE_PHP= curl dom
|
|
|
|
NO_STAGE= yes
|
|
.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/Auth/Yadis
|
|
${CP} -R ${WRKSRC}/Auth/Yadis/* ${PREFIX}/share/pear/Auth/Yadis
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|