1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/www/neowebscript/Makefile
Mikhail Teterin 8e6385511c Allow use of Tcl-8.5 in both tcl-neo and neowebscript (its the former's primary
consumer). Clean up another ton of warnings (to the level of WARNS=3 in tcl-neo
and WARNS=2 in neowebscript).

Update the installation of neowebscript.conf so as to not overwrite the existing
version, if any.
2010-01-19 05:43:57 +00:00

56 lines
1.5 KiB
Makefile

# New ports collection makefile for: neowebscript
# Date created: October 28, 2001
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#
PORTNAME= neowebscript
PORTVERSION= 3.3
PORTREVISION= 4
CATEGORIES= www tcl
MASTER_SITES= SF/nws/nws/${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
COMMENT= Embeds a TCL8 interpreter in the Apache server
LIB_DEPENDS= neo82:${PORTSDIR}/devel/tcl-neo
USE_APACHE= 1.3
USE_TCL= 84+
MAKEFILE= ${FILESDIR}/Makefile.bsd
WRKSRC= ${WRKDIR}/${DISTNAME}/modules
MAKE_ENV+= FILESDIR="${FILESDIR}" \
INSTALL_DATA="${INSTALL_DATA}" \
TCL_VERSION=${TCL_VER}
REINPLACE_ARGS= -i ""
SUB_FILES+= pkg-message neowebscript.conf
SUB_LIST+= APACHEMODDIR=${APACHEMODDIR} APACHEETCDIR=${PREFIX}/${APACHEETCDIR}
SUBDIRS= modules neowebscript htdocs # tools
# Only extract what we care for -- the tarball also includes antiquated
# versions of Apache, TCL, TclX, ITCL, gd...
EXTRACT_AFTER_ARGS:=| ${TAR} -xf - ${SUBDIRS:%=${PORTNAME}-${PORTVERSION}/%}
post-patch:
# Replacing writeGIF with writePNG
${REINPLACE_CMD} 's/writeGIF/writePNG/g' \
`${FIND} ${WRKSRC}/.. -type f | \
${XARGS} ${GREP} -F -l --mmap writeGIF`
pre-install:
# Removing *.orig files and empty directories:
${FIND} ${WRKSRC}/../neowebscript ${WRKSRC}/../htdocs \
\( -type f -name \*.orig -o -type d -empty \) -delete
post-install:
@${CP} ${WRKDIR}/neowebscript.conf ${LOCALBASE}/${APACHEETCDIR}/neowebscript.conf.dist
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/
@${CP} -Rp ${WRKSRC}/../htdocs/* ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>