2001-10-28 08:37:27 +00:00
|
|
|
# New ports collection makefile for: neowebscript
|
|
|
|
# Date created: October 28, 2001
|
|
|
|
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= neowebscript
|
|
|
|
PORTVERSION= 3.3
|
2010-01-19 05:43:57 +00:00
|
|
|
PORTREVISION= 4
|
2008-04-09 13:42:26 +00:00
|
|
|
CATEGORIES= www tcl
|
2009-08-22 00:38:34 +00:00
|
|
|
MASTER_SITES= SF/nws/nws/${PORTVERSION}
|
2001-10-28 08:37:27 +00:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Embeds a TCL8 interpreter in the Apache server
|
2001-10-28 08:37:27 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= neo82:${PORTSDIR}/devel/tcl-neo
|
|
|
|
|
2009-05-31 18:24:17 +00:00
|
|
|
USE_APACHE= 1.3
|
2010-01-19 05:43:57 +00:00
|
|
|
USE_TCL= 84+
|
2001-10-28 08:37:27 +00:00
|
|
|
MAKEFILE= ${FILESDIR}/Makefile.bsd
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/modules
|
2009-05-31 18:24:17 +00:00
|
|
|
MAKE_ENV+= FILESDIR="${FILESDIR}" \
|
2010-01-19 05:43:57 +00:00
|
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
|
|
|
TCL_VERSION=${TCL_VER}
|
2004-04-16 20:08:19 +00:00
|
|
|
REINPLACE_ARGS= -i ""
|
2009-05-31 18:24:17 +00:00
|
|
|
SUB_FILES+= pkg-message neowebscript.conf
|
2010-01-19 05:43:57 +00:00
|
|
|
SUB_LIST+= APACHEMODDIR=${APACHEMODDIR} APACHEETCDIR=${PREFIX}/${APACHEETCDIR}
|
2001-10-28 08:37:27 +00:00
|
|
|
|
|
|
|
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:
|
2002-01-03 16:40:01 +00:00
|
|
|
# Replacing writeGIF with writePNG
|
2004-04-16 20:08:19 +00:00
|
|
|
${REINPLACE_CMD} 's/writeGIF/writePNG/g' \
|
|
|
|
`${FIND} ${WRKSRC}/.. -type f | \
|
|
|
|
${XARGS} ${GREP} -F -l --mmap writeGIF`
|
2001-10-28 08:37:27 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
# Removing *.orig files and empty directories:
|
2003-11-13 12:54:57 +00:00
|
|
|
${FIND} ${WRKSRC}/../neowebscript ${WRKSRC}/../htdocs \
|
2001-10-28 08:37:27 +00:00
|
|
|
\( -type f -name \*.orig -o -type d -empty \) -delete
|
|
|
|
|
|
|
|
post-install:
|
2010-01-19 05:43:57 +00:00
|
|
|
@${CP} ${WRKDIR}/neowebscript.conf ${LOCALBASE}/${APACHEETCDIR}/neowebscript.conf.dist
|
2009-05-31 18:24:17 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}/
|
|
|
|
@${CP} -Rp ${WRKSRC}/../htdocs/* ${DOCSDIR}/
|
2001-10-28 08:37:27 +00:00
|
|
|
.endif
|
2009-05-31 18:24:17 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-10-28 08:37:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|