2012-09-21 21:56:26 +02:00
|
|
|
# Created by: Peter Lai <cowbert@gmail.com>
|
2010-09-09 05:21:49 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mod_rivet
|
2015-04-26 23:48:54 +02:00
|
|
|
PORTVERSION= 2.2.2
|
2010-09-09 05:21:49 +02:00
|
|
|
CATEGORIES= www tcl
|
2015-04-08 10:44:03 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
2010-09-09 05:21:49 +02:00
|
|
|
MASTER_SITE_SUBDIR= tcl/rivet
|
2015-04-08 10:44:03 +02:00
|
|
|
DISTNAME= rivet-${PORTVERSION}
|
2010-09-09 05:21:49 +02:00
|
|
|
|
2014-03-16 22:30:48 +01:00
|
|
|
MAINTAINER= jeff.lawson@flightaware.com
|
2010-09-09 05:21:49 +02:00
|
|
|
COMMENT= Embeds a Tcl interpreter in the Apache server
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2012-09-21 21:56:26 +02:00
|
|
|
|
2013-08-19 07:10:46 +02:00
|
|
|
LIB_DEPENDS= libitcl.so:${PORTSDIR}/lang/itcl
|
2010-09-09 05:21:49 +02:00
|
|
|
|
2014-10-03 15:43:33 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-20 19:27:52 +02:00
|
|
|
USE_APACHE= 22+
|
2012-01-18 05:50:40 +01:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/rivet
|
2014-06-18 13:05:20 +02:00
|
|
|
USES+= gmake libtool tcl:85+
|
2010-09-09 05:21:49 +02:00
|
|
|
|
2014-10-03 15:43:33 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2010-09-09 05:21:49 +02:00
|
|
|
|
2013-11-12 23:15:08 +01:00
|
|
|
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
|
2010-09-09 05:21:49 +02:00
|
|
|
|
2012-01-18 05:50:40 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|`$${apxs_found} -q LIBEXECDIR`|${PREFIX}/${APACHEMODDIR}|g' \
|
2014-10-03 15:43:33 +02:00
|
|
|
${WRKSRC}/configure
|
2012-01-18 05:50:40 +01:00
|
|
|
|
2010-09-09 05:21:49 +02:00
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "===================================================="
|
2012-07-01 22:22:46 +02:00
|
|
|
@${ECHO_MSG} "Remember to modify your apache configuration file"
|
2011-03-18 10:38:52 +01:00
|
|
|
@${ECHO_MSG} "to load mod_rivet and set the appropriate handlers:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "LoadModule rivet_module ${APACHEMODDIR}/mod_rivet.so"
|
2010-09-09 05:21:49 +02:00
|
|
|
@${ECHO_MSG} ""
|
2011-03-18 10:38:52 +01:00
|
|
|
@${ECHO_MSG} "AddType application/x-httpd-rivet .rvt"
|
|
|
|
@${ECHO_MSG} "AddType application/x-rivet-tcl .tcl"
|
2010-09-09 05:21:49 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Visit http://tcl.apache.org/rivet/ for documentation"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "===================================================="
|
|
|
|
|
2013-11-12 23:15:08 +01:00
|
|
|
.include <bsd.port.mk>
|