mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
af1ffdc6f0
It fixed INDEX build with next exp-build patchset and prepare a smooth migration to bsd.apache.mk It's a no-op for now. Approved by: portmgr (self)
60 lines
1.6 KiB
Makefile
60 lines
1.6 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= 2
|
|
CATEGORIES= www tcl83
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR=nws
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
COMMENT= Embeds a TCL8 interpreter in the Apache server
|
|
|
|
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
|
|
LIB_DEPENDS= neo82:${PORTSDIR}/devel/tcl-neo
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile.bsd
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/modules
|
|
TCL_VERSION?= 8.4
|
|
APACHE_COMPAT= yes
|
|
MAKE_ENV+= FILESDIR="${FILESDIR}" INSTALL_DATA="${INSTALL_DATA}"
|
|
MAKE_ENV+= TCL_VERSION=${TCL_VERSION}
|
|
USE_REINPLACE= yes
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
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
|
|
|
|
CONFSCRIPT= ${LOCALBASE}/etc/apache/neowebscript.conf
|
|
PREFIX_CMD= 's^/usr/local^${PREFIX}^g'
|
|
|
|
post-install:
|
|
test -e ${CONFSCRIPT} || ${SED} ${PREFIX_CMD} < \
|
|
${FILESDIR}/neowebscript.conf > ${CONFSCRIPT}
|
|
.ifndef(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${CP} -Rp ${WRKSRC}/../htdocs/* ${DOCSDIR}
|
|
.endif
|
|
@${SED} ${PREFIX_CMD} < ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|