# Created by: Kelly Yancey <kbyanc@posi.net>
# $FreeBSD: tags/RELEASE_10_1_0/www/p5-FCGI/Makefile 341607 2014-01-28 15:58:32Z miwi $

PORTNAME=	FCGI
PORTVERSION=	0.74
CATEGORIES=	www perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:FLORA
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Modules for perl5, for enabling FastCGI support in CGI scripts

OPTIONS_DEFINE=	PURE_PERL
PURE_PERL_DESC=	Build pure Perl version (experimental)

# XXX: fcgi.0 is missing FCGX_Detach, see ports/149755
#LIB_DEPENDS=	fcgi.0:${PORTSDIR}/www/fcgi
#CONFIGURE_ARGS+=	--use-installed=${LOCALBASE}

USES=		perl5
USE_PERL5=	configure

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPURE_PERL}
CONFIGURE_ARGS+=--pure-perl
PLIST_SUB=	PURE_PERL="@comment "
.else
PLIST_SUB=	PURE_PERL=""
.endif

.include <bsd.port.mk>
