freebsd-ports/www/neowebscript/Makefile
Philip M. Gollucci 9283277aea - Use SF Macro
- Convert to USE_APACHE, remove apache from _DEPENDS
- Convert to USE_TCL
- APACHE_COMPAT is deprecated
- Use SUB_FILES for pkg-message, neowebscript.conf
- Use %%var%% in pkg-plist
- Honor NOPORTDOCS
- Bump PORTREVISION

PR:             ports/134600
Approved by:    maintainer timeout (2 weeks)
Submitted by:   me
2009-05-31 18:24:17 +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= 3
CATEGORIES= www tcl
MASTER_SITES= SF
MASTER_SITE_SUBDIR=nws
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= yes
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
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} ${WRKSRC}/../../neowebscript.conf ${LOCALBASE}/${APACHEETCDIR}/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/
@${CP} -Rp ${WRKSRC}/../htdocs/* ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>