# New ports collection makefile for:	mod_put Apache module
# Date created:		Jun 26 2001
# Whom:			Joao Carlos Mendes Luis <jonny@jonny.eng.br>
#
# $FreeBSD: ports/www/mod_put/Makefile,v 1.5 2003/02/20 19:15:29 knu Exp $
#

PORTNAME=	mod_put
PORTVERSION=	1.3
CATEGORIES=	www
MASTER_SITES=	http://hpwww.ec-lyon.fr/~vincent/apache/
DISTFILES=	mod_put.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An Apache module that provides PUT and DELETE methods

BUILD_DEPENDS=	${APXS}:${APACHE_PORT}
RUN_DEPENDS=	${APXS}:${APACHE_PORT}

APXS?=		${LOCALBASE}/sbin/apxs
APACHE_PORT?=	${PORTSDIR}/www/apache13
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}

do-build:
	cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -c ${PORTNAME}.c

do-install:
	cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -A -i ${PORTNAME}.so

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html \
		${PREFIX}/share/doc/${PORTNAME}
.endif

.include <bsd.port.mk>
