mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
d711d8fdee
tcllib dependency, accidentally introduced reference to unfinished work on the generation of locale-independent dates for HTTP-headers. Finish (and unbreak) this work and allow the server to run in non-English/ASCII locales. Changes submitted to the (dormant) vendor.
66 lines
2.0 KiB
Makefile
66 lines
2.0 KiB
Makefile
# New ports collection makefile for: tclhttpd
|
|
# Date created: 27 Apr 2000
|
|
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tclhttpd
|
|
PORTVERSION= 3.5.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= www tcl83 tcl84
|
|
MASTER_SITES= ${MASTER_SITE_TCLTK}
|
|
MASTER_SITE_SUBDIR= httpd
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
COMMENT= An http-server implemented in TCL
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/tcllib1.9/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
|
|
LIB_DEPENDS= tcl${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER}
|
|
|
|
USE_RC_SUBR= tclhttpd.sh
|
|
TCL_DVER?= 8.4
|
|
TCL_VER= ${TCL_DVER:S/.//}
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-tcl="${LOCALBASE}/lib/tcl${TCL_DVER}" \
|
|
--with-tclinclude="${LOCALBASE}/include/tcl${TCL_DVER}"
|
|
|
|
MAN1= tclhttpd.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
SHLIB_NAME!= ${MAKE} -f "${FILESDIR}/Makefile.lib" -V SHLIB_NAME
|
|
PLIST_SUB+= TCL_VER=${TCL_VER} PORTVERSION=${PORTVERSION} \
|
|
SHLIB_NAME=${SHLIB_NAME}
|
|
MAKE_ENV+= TCLSH_PROG=tclsh${TCL_DVER}
|
|
SCRIPTS_ENV+= TCL_DVER=${TCL_DVER}
|
|
SUB_LIST+= TCL_DVER=${TCL_DVER}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} -j 2 TCL_DVER="${TCL_DVER}" \
|
|
FILESDIR="${FILESDIR}" -f "${FILESDIR}/Makefile.lib"
|
|
#
|
|
# Note, the ``utime'' command supplied by the tclhttpd's library
|
|
# (interface to utimes(2)) has been long obsoleted by TCL's own
|
|
# file(n) and is finally removed from this port
|
|
#
|
|
|
|
pre-su-install:
|
|
${MKDIR} ${PREFIX}/tclhttpd/custom
|
|
|
|
post-install:
|
|
${CHOWN} -R nobody ${DATADIR}${PORTVERSION}
|
|
${INSTALL_DATA} ${WRKSRC}/${SHLIB_NAME} \
|
|
${PREFIX}/lib/${PORTNAME}${PORTVERSION}/${SHLIB_NAME}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/httpd.tcl \
|
|
${WRKSRC}/bin/httpdthread.tcl ${PREFIX}/bin/
|
|
${SED} 's%@VER@%${PORTVERSION}%g' < ${WRKSRC}/bin/tclhttpd.rc \
|
|
> ${PREFIX}/etc/tclhttpd.rc.default
|
|
cd ${PREFIX}/etc; test -e tclhttpd.rc || \
|
|
${CP} -p tclhttpd.rc.default tclhttpd.rc
|
|
${SED} 's%@LIB@%${SHLIB_NAME}%g' < \
|
|
${FILESDIR}/pkgIndex.tcl >> \
|
|
${PREFIX}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl
|
|
|
|
.include <bsd.port.post.mk>
|