summaryrefslogtreecommitdiff
path: root/www/mod_csacek/Makefile
blob: f98d53f3a88c35c76baf47106472b8472710050b (plain) (blame)
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
40
41
42
43
# New ports collection makefile for:	mod_csacek Apache module
# Date created:				22 Feb 2001
# Whom:					Milan Salajka <ms@vol.cz>
#
# $FreeBSD$
#

PORTNAME=	mod_csacek
PORTVERSION=	2.1.6
CATEGORIES=	www
MASTER_SITES=	http://www.csacek.cz/distrib/
DISTNAME=	${PORTNAME:S/mod_//g}-${PORTVERSION}

MAINTAINER=	ms@vol.cz

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

APXS?=		${LOCALBASE}/sbin/apxs

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--with-target=Apache \
		--disable-report \
		--with-templatedir=${PREFIX}/www/data \
		--disable-compression \
		--with-apxs=${APXS}

do-install:
	${APXS} -i -A -n csacek ${WRKSRC}/mod_csacek.so

post-install:

	${INSTALL_DATA} ${WRKSRC}/templates/whichcode_template.html ${PREFIX}/www/data

	${MKDIR} ${PREFIX}/share/doc/mod_csacek
	${MKDIR} ${PREFIX}/share/doc/mod_csacek/img
	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/doc/img/*.gif ${PREFIX}/share/doc/${PORTNAME}/img

	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>