summaryrefslogtreecommitdiffstats
path: root/www/mod_proxy_html/Makefile
blob: 5cfc96d5e8911886e29fce0582182b47fc8726a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# New ports collection makefile for:	mod_proxy_html
# Date created:		2004-07-29
# Whom:			David Lay <dsl@webize.com.au>
#
# $FreeBSD$
#

PORTNAME=	mod_proxy_html
PORTVERSION=	2.1
CATEGORIES=	www
MASTER_SITES=	http://apache.webthing.com/${PORTNAME}/
DISTNAME=	${PORTNAME}
EXTRACT_SUFX=	.c

MAINTAINER=	dsl@webize.com.au
COMMENT=	Apache module for rewriting HTML links in proxied content

USE_GNOME=	libxml2
USE_APACHE=	yes
WITH_APACHE2=	yes
NO_WRKSUBDIR=	yes

XML2_INC=	${LOCALBASE}/include/libxml2
XML2_LIB=	${LOCALBASE}/lib

do-extract:
	@${MKDIR} ${WRKDIR}
	@${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c

do-build:
	@(cd ${WRKSRC} && ${APXS} -c -I ${XML2_INC} -L ${XML2_LIB} -lxml2 ${PORTNAME}.c)

do-install:
	@(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la)
	@${ECHO} "================================================================================"
	@${ECHO} "Enable mod_proxy_html in Apache's config manually."
	@${ECHO} "================================================================================"

.include <bsd.port.mk>
OpenPOWER on IntegriCloud