# New ports collection makefile for:	mod_gzip Apache module
# Date created:		Dec 18 2000
# Whom:			Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD: ports/www/mod_layout/Makefile,v 1.10 2003/02/21 14:01:20 knu Exp $
#

PORTNAME=	mod_layout
PORTVERSION=	3.2
CATEGORIES=	www
MASTER_SITES=	http://software.tangent.org/download/

MAINTAINER=	sheepkiller@cultdeadsheep.org
COMMENT=	Apache module to wrap served pages with a header and/or footer

BUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13

USE_REINPLACE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's!apxs!${LOCALBASE}/sbin/apxs!g' \
		${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/directives
	${INSTALL_DATA} ${WRKSRC}/faq.html ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/directives/* ${DOCSDIR}/directives
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
