aboutsummaryrefslogtreecommitdiff
path: root/www/tclhttpd/Makefile
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2001-03-29 21:32:14 +0000
committerMikhail Teterin <mi@FreeBSD.org>2001-03-29 21:32:14 +0000
commitff82afe0bdb637a7c0e7bfb3073e3746f1f2404a (patch)
tree518db986fccdbe572151230104988fba88dea6f3 /www/tclhttpd/Makefile
parentf8d3aa7183ff2cd6ad42a6fe1042f3e3a768808f (diff)
downloadports-ff82afe0bdb637a7c0e7bfb3073e3746f1f2404a.tar.gz
ports-ff82afe0bdb637a7c0e7bfb3073e3746f1f2404a.zip
Notes
Diffstat (limited to 'www/tclhttpd/Makefile')
-rw-r--r--www/tclhttpd/Makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/www/tclhttpd/Makefile b/www/tclhttpd/Makefile
index da549e1e8180..2db6e7d3937b 100644
--- a/www/tclhttpd/Makefile
+++ b/www/tclhttpd/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: thttpd
+# New ports collection makefile for: tclhttpd
# Date created: 27 Apr 2000
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
#
@@ -19,21 +19,20 @@ LIB_DEPENDS= tcl${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER}
TCL_DVER?= 8.3
TCL_VER= ${TCL_DVER:S/.//}
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl="${LOCALBASE}/lib/tcl${TCL_DVER}" \
--with-tclinclude="${LOCALBASE}/include/tcl${TCL_DVER}"
-MAKEFILE= ${FILESDIR}/Makefile.lib
-MAKE_ENV= TCL_DVER="${TCL_DVER}" FILESDIR="${FILESDIR}"
-MAKE_ARGS= -j2
+RCD= ${LOCALBASE}/etc/rc.d/tclhttpd.sh
+
+.include <bsd.port.pre.mk>
+SHLIB_NAME!= ${MAKE} -f "${FILESDIR}/Makefile.lib" ech
PLIST_SUB+= TCL_VER=${TCL_VER} PORTVERSION=${PORTVERSION} \
SHLIB_NAME=${SHLIB_NAME}
-RCD= ${LOCALBASE}/etc/rc.d/tclhttpd.sh
-
-.include <bsd.port.pre.mk>
-SHLIB_NAME!= ${MAKE} -f ${MAKEFILE} ech
+do-build:
+ cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} -j 2 TCL_DVER="${TCL_DVER}" \
+ FILESDIR="${FILESDIR}" -f "${FILESDIR}/Makefile.lib"
pre-install:
${MKDIR} ${LOCALBASE}/tclhttpd/custom
@@ -43,14 +42,15 @@ post-install:
"s%COMMAND_LINE%${LOCALBASE}/bin/tclsh${TCL_DVER} ${PREFIX}/bin/httpd.tcl%" \
< ${FILESDIR}/tclhttpd.sh > ${RCD}
${CHOWN} -R nobody ${LOCALBASE}/share/${PORTNAME}${PORTVERSION}
- #${LN} -sf ${LOCALBASE}/share/${PORTNAME} \
- # ${LOCALBASE}/${PORTNAME}${PORTVERSION}/htdocs
${CHMOD} +x ${RCD}
${INSTALL_DATA} ${WRKSRC}/${SHLIB_NAME} \
${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/${SHLIB_NAME}
${INSTALL_SCRIPT} ${WRKSRC}/bin/httpd.tcl \
${WRKSRC}/bin/httpdthread.tcl ${LOCALBASE}/bin/
- ${INSTALL_DATA} ${WRKSRC}/bin/tclhttpd.rc ${LOCALBASE}/etc/
+ ${SED} 's%@VER@%${PORTVERSION}%g' < ${WRKSRC}/bin/tclhttpd.rc \
+ > ${LOCALBASE}/etc/tclhttpd.rc.default
+ cd ${LOCALBASE}/etc; test -e tclhttpd.rc || \
+ ${CP} -p tclhttpd.rc.default tclhttpd.rc
${SED} 's%@LIB@%${SHLIB_NAME}%g' < \
${FILESDIR}/pkgIndex.tcl >> \
${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl