aboutsummaryrefslogtreecommitdiff
path: root/www/mod_rivet/Makefile
blob: fde506a523c09e25a2a16212c482da07e06a1ab8 (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
44
45
46
47
48
49
# Created by: Peter Lai <cowbert@gmail.com>
# $FreeBSD$

PORTNAME=	mod_rivet
PORTVERSION=	2.2.0
CATEGORIES=	www tcl
MASTER_SITES=		${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR=	tcl/rivet
DISTNAME=		rivet-${PORTVERSION}

MAINTAINER=	jeff.lawson@flightaware.com
COMMENT=	Embeds a Tcl interpreter in the Apache server

LICENSE=	APACHE20

LIB_DEPENDS=	libitcl.so:${PORTSDIR}/lang/itcl

USE_APACHE=	22+
USE_AUTOTOOLS=	aclocal libtoolize autoheader automake autoconf
USE_LDCONFIG=	${PREFIX}/lib/rivet
USES+=		gmake libtool tcl:85+

INSTALL_TARGET=	install

CONFIGURE_ARGS+=--with-apache-version=2 \
		--prefix=${PREFIX} --with-apxs=${APXS} \
		--with-tcl=${TCL_LIBDIR} --with-tclsh=${TCLSH} \
		--with-rivet-target-dir=${PREFIX}/lib/rivet

post-patch:
	${REINPLACE_CMD}  -e 's|`$${apxs_found} -q LIBEXECDIR`|${PREFIX}/${APACHEMODDIR}|g' \
	   ${WRKSRC}/configure.ac ${WRKSRC}/configure

post-install:
	@${ECHO_MSG} ""
	@${ECHO_MSG} "===================================================="
	@${ECHO_MSG} "Remember to modify your apache configuration file"
	@${ECHO_MSG} "to load mod_rivet and set the appropriate handlers:"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "LoadModule rivet_module ${APACHEMODDIR}/mod_rivet.so"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "AddType application/x-httpd-rivet .rvt"
	@${ECHO_MSG} "AddType application/x-rivet-tcl .tcl"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Visit http://tcl.apache.org/rivet/ for documentation"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "===================================================="

.include <bsd.port.mk>