pkgsrc/chat/cgiirc/Makefile
jlam 07dd3147c6 Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.

Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files.  Replace:

	BUILD_DEFS+=	USE_INET6
with
	BUILD_DEFS+=	IPV6_READY

and teach the README-generation tools to look for that instead.

This nukes USE_INET6 from pkgsrc proper.  We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
2007-09-07 22:12:10 +00:00

83 lines
2.9 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2007/09/07 22:12:10 jlam Exp $
DISTNAME= cgiirc-0.5.9
PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cgiirc/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://cgiirc.sourceforge.net/
COMMENT= Access IRC from a web browser
USE_TOOLS+= perl:run
NO_BUILD= YES
CONF_FILES= ${PREFIX}/share/examples/cgiirc/cgiirc.conf \
${PKG_SYSCONFDIR}/cgiirc.conf
CONF_FILES+= ${PREFIX}/share/examples/cgiirc/cgiirc.config \
${CGIIRC}/cgiirc.config
PKG_OPTIONS_VAR= PKG_OPTIONS.cgiirc
PKG_SUPPORTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
DEPENDS+= p5-INET6-[0-9]*:../../net/p5-INET6
.endif
REPLACE_PERL+= client-perl.cgi irc.cgi nph-irc.cgi docs/decode.pl \
docs/identd.pl docs/viewconnects.pl modules/parse.pl \
interfaces/interface-make/make-js-interfaces.pl
DOCFILES= identd.xinetd decode.pl identd.pl viewconnects.pl
EGFILES= cgiirc.config.full client.c ipaccess.example
CGIIRC= ${PREFIX}/share/cgiirc
do-configure:
${SED} -e "s|@CGIIRC@|${CGIIRC}|g" ${FILESDIR}/cgiirc.conf \
> ${WRKDIR}/cgiirc.conf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cgiirc
${INSTALL_DATA_DIR} ${CGIIRC}
${INSTALL_DATA_DIR} ${CGIIRC}/formats
${INSTALL_DATA_DIR} ${CGIIRC}/images
${INSTALL_DATA_DIR} ${CGIIRC}/images/taras
${INSTALL_DATA_DIR} ${CGIIRC}/interfaces
${INSTALL_DATA_DIR} ${CGIIRC}/interfaces/interface-make
${INSTALL_DATA_DIR} ${CGIIRC}/modules
${INSTALL_DATA_DIR} ${CGIIRC}/modules/IRC
${INSTALL_DATA_DIR} ${CGIIRC}/modules/IRC/Channel
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cgiirc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cgiirc
. for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/docs/${f} \
${PREFIX}/share/examples/cgiirc/${f}
. endfor
${INSTALL_DATA} ${WRKSRC}/cgiirc.config ${PREFIX}/share/examples/cgiirc
${INSTALL_DATA} ${WRKDIR}/cgiirc.conf ${PREFIX}/share/examples/cgiirc
. for f in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/${f} \
${PREFIX}/share/examples/cgiirc/${f}
. endfor
${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${CGIIRC}
${INSTALL_DATA} ${WRKSRC}/formats/* ${CGIIRC}/formats/
${INSTALL_DATA} ${WRKSRC}/images/*.gif ${CGIIRC}/images/
${INSTALL_DATA} ${WRKSRC}/images/*.wav ${CGIIRC}/images/
${INSTALL_DATA} ${WRKSRC}/images/*.ico ${CGIIRC}/images/
${INSTALL_DATA} ${WRKSRC}/images/taras/*.gif ${CGIIRC}/images/taras
${INSTALL_DATA} ${WRKSRC}/interfaces/*.pm ${CGIIRC}/interfaces/
${INSTALL_DATA} ${WRKSRC}/interfaces/*.css ${CGIIRC}/interfaces/
${INSTALL_DATA} ${WRKSRC}/interfaces/interface-make/*.pm \
${CGIIRC}/interfaces/interface-make/
${INSTALL_SCRIPT} ${WRKSRC}/interfaces/interface-make/*.pl \
${CGIIRC}/interfaces/interface-make/
${INSTALL_DATA} ${WRKSRC}/modules/*.pm ${CGIIRC}/modules/
${INSTALL_SCRIPT} ${WRKSRC}/modules/*.pl ${CGIIRC}/modules/
${INSTALL_DATA} ${WRKSRC}/modules/IRC/*.pm ${CGIIRC}/modules/IRC/
${INSTALL_DATA} ${WRKSRC}/modules/IRC/Channel/*.pm \
${CGIIRC}/modules/IRC/Channel/
.include "../../mk/bsd.pkg.mk"