# New ports collection makefile for:    apache mod_auth_mysql
# Date created:		2000/05/19
# Whom:			jim@thehouselys.net
#
# $FreeBSD: ports/www/mod_auth_mysql/Makefile,v 1.33 2010/05/25 20:17:27 pgollucci Exp $

PORTNAME=	mod_auth_mysql
PORTVERSION=	3.2
CATEGORIES=	www
MASTER_SITES=	SF/mod-auth-mysql/mod-auth-mysql/mod-auth-mysql-1.0
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}

MAINTAINER=	apache@FreeBSD.org
COMMENT=	Allows users to use MySQL databases for user authentication

MAKE_JOBS_SAFE=  yes

USE_MYSQL=	yes

USE_APACHE=	13
AP_GENPLIST=	yes
PORTDOCS=	README USAGE
PLIST_FILES+=	%%APACHEMODDIR%%/mod_auth_mysql.so 

post-patch:
	${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},g' -e 's,apxs,${APXS},' ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}/
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>
