# New ports collection makefile for:	mod_auth_form
# Date created:			Feb 10 2008
# Whom:				Tommy Scheunemann <net@arrishq.net>
#
# $FreeBSD: ports/www/mod_auth_form/Makefile,v 1.3 2009/05/21 20:45:25 pgollucci Exp $
#

PORTNAME=	mod_auth_form
PORTVERSION=	2.05
CATEGORIES=	www
MASTER_SITES=	http://comp.uark.edu/~ajarthu/mod_auth_form/download.php?download=v2_05/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	net@arrishq.net
COMMENT=	MySQL based form authentication module for Apache 2.x

MAKE_JOBS_SAFE=  yes

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_MYSQL=	YES
USE_APACHE=	2.0+

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	MYSQL_PREFIX="${LOCALBASE}" APACHE2_PREFIX="${LOCALBASE}" \
		APACHE2_INCLUDE="${LOCALBASE}/include/apache${APACHE_VERSION}" \
		APR1_INCLUDE="${LOCALBASE}/include/apache2"

PORTDOCS=	AUTHORS NEWS README

post-install:
	${ECHO} ${APACHE_VERSION}
.if !defined(NOPORTDOCS)
	@${INSTALL} -d ${DOCSDIR}
	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>
