pkgsrc/chat/eggdrop/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

92 lines
3.1 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2007/09/07 22:12:10 jlam Exp $
DISTNAME= eggdrop1.6.17
PKGNAME= eggdrop-1.6.17
PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.eggheads.org/
COMMENT= IRC robot with TCL scripting and multi-channel ability
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ENV+= TCLLIB="${PREFIX}/lib" TCLINC="${PREFIX}/include"
PKG_OPTIONS_VAR= PKG_OPTIONS.eggdrop
PKG_SUPPORTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
PLIST_SUBST+= NOIPV6="@comment "
.else
PLIST_SUBST+= NOIPV6=
.endif
EGDIR= ${PREFIX}/share/examples/eggdrop
CONF_FILES= ${EGDIR}/eggdrop.conf ${PKG_SYSCONFDIR}/eggdrop.conf
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
post-patch:
cd ${WRKSRC} && ${SED} -e 's,modules/,${PREFIX}/lib/eggdrop/,' \
< eggdrop.conf > eggdrop.conf.dist.new
post-configure:
cd ${WRKSRC} && ${MAKE} config
do-install: do-install-program
do-install-program:
${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.dist.new ${EGDIR}/eggdrop.conf
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/eggdrop
cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html \
${PREFIX}/share/doc/html/eggdrop
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/eggdrop
cd ${WRKSRC}/doc && ${INSTALL_DATA} BANS BOTNET FIRST-SCRIPT MODULES \
PARTYLINE USERS TRICKS TEXT-SUBSTITUTIONS tcl-commands.doc \
${PREFIX}/share/doc/eggdrop
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/language
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/scripts
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help/msg
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help/set
${INSTALL_DATA} ${WRKSRC}/language/core.*.lang \
${PREFIX}/share/eggdrop/language/
cd ${WRKSRC}/help && ${INSTALL_DATA} cmds1.help cmds2.help core.help \
${PREFIX}/share/eggdrop/help/
cd ${WRKSRC}/help/set && ${INSTALL_DATA} cmds1.help \
${PREFIX}/share/eggdrop/help/set/
cd ${WRKSRC}/scripts && ${INSTALL_DATA} CONTENTS *.tcl autobotchk \
botchk weed ${PREFIX}/share/eggdrop/scripts/
.include "../../lang/tcl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
.if defined(NOPIC)
BUILD_TARGET= static
PLIST_SUBST+= NOPIC="@comment "
.else
BUILD_TARGET= eggdrop
PLIST_SUBST+= NOPIC=
do-install: do-install-modules
do-install-modules:
${INSTALL_DATA_DIR} ${PREFIX}/lib/eggdrop
cd ${WRKSRC} && ${INSTALL_DATA} assoc.so blowfish.so channels.so \
compress.so console.so ctcp.so filesys.so irc.so notes.so \
seen.so server.so share.so transfer.so uptime.so wire.so \
${PREFIX}/lib/eggdrop
.if empty(PKG_OPTIONS:Minet6)
cd ${WRKSRC} && ${INSTALL_DATA} dns.so ${PREFIX}/lib/eggdrop
.endif
cd ${WRKSRC}/src/mod && ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \
${PREFIX}/share/eggdrop/language ";"
.endif