2003-06-11 05:32:50 +00:00
|
|
|
# New ports collection makefile for: eggdrop
|
|
|
|
# Date created: 18.01.2003
|
|
|
|
# Whom: Ulrich Spoerlein <q@uni.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= eggdrop
|
2006-08-05 13:42:18 +00:00
|
|
|
PORTVERSION= 1.6.18
|
2004-10-12 07:10:31 +00:00
|
|
|
CATEGORIES= irc tcl84
|
2003-06-11 05:32:50 +00:00
|
|
|
MASTER_SITES= ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/
|
2004-10-12 07:10:31 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
2003-06-11 05:32:50 +00:00
|
|
|
|
2006-08-05 13:42:18 +00:00
|
|
|
PATCHFILES= ${PORTNAME}-${PORTVERSION}-ssl.patch.gz
|
2004-05-26 22:10:40 +00:00
|
|
|
PATCH_SITES= http://www.egghelp.org/files/patches/
|
|
|
|
|
2007-01-09 22:49:59 +00:00
|
|
|
MAINTAINER= beech@alaskaparadise.com
|
2003-06-11 05:32:50 +00:00
|
|
|
COMMENT= The most popular open source Internet Relay Chat bot
|
|
|
|
|
2006-08-05 13:42:18 +00:00
|
|
|
LIB_DEPENDS= tcl84.1:${PORTSDIR}/lang/tcl84
|
|
|
|
|
2004-10-12 07:10:31 +00:00
|
|
|
USE_BZIP2= yes
|
2006-08-05 13:42:18 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-08-05 13:42:18 +00:00
|
|
|
CONFIGURE_ARGS= --with-tcllib=${LOCALBASE}/lib/libtcl84.so \
|
|
|
|
--with-tclinc=${LOCALBASE}/include/tcl8.4/tcl.h
|
2003-10-18 21:59:59 +00:00
|
|
|
|
2007-01-09 22:49:59 +00:00
|
|
|
OPTIONS= SSL "Use SSL" off
|
|
|
|
|
2006-08-05 13:42:18 +00:00
|
|
|
MAN1= eggdrop.1
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2003-10-18 21:59:59 +00:00
|
|
|
|
2007-01-09 22:49:59 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-05-26 22:10:40 +00:00
|
|
|
.if defined(WITH_SSL)
|
2007-01-09 22:49:59 +00:00
|
|
|
CFLAGS+= -DHAVE_OPENSSL
|
2004-05-26 22:10:40 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ssl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_SSL)
|
2007-01-09 22:49:59 +00:00
|
|
|
CONFIGURE_ARGS+= --without-ssl
|
2004-05-26 22:10:40 +00:00
|
|
|
.endif
|
2003-06-11 05:32:50 +00:00
|
|
|
|
2006-08-05 13:42:18 +00:00
|
|
|
post-patch:
|
2004-05-26 22:10:40 +00:00
|
|
|
@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/eggdrop.conf \
|
|
|
|
> ${WRKSRC}/eggdrop.conf.sample
|
2006-08-05 13:42:18 +00:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@(cd ${WRKSRC}; ${MAKE} config)
|
2004-10-12 07:10:31 +00:00
|
|
|
# Workaround broken relative path in SSL-patch
|
|
|
|
@(cd ${WRKSRC}/src && ${LN} -fs ../config.h)
|
2003-06-11 05:32:50 +00:00
|
|
|
|
|
|
|
do-install:
|
2006-08-05 13:42:18 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${MANPREFIX}/man/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.sample ${PREFIX}/etc
|
|
|
|
@${MKDIR} ${PREFIX}/lib/eggdrop
|
|
|
|
.for f in assoc.so blowfish.so channels.so compress.so console.so ctcp.so \
|
|
|
|
dns.so filesys.so irc.so notes.so seen.so server.so share.so \
|
|
|
|
transfer.so uptime.so wire.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/eggdrop
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DATADIR}/help
|
2003-10-18 21:59:59 +00:00
|
|
|
.for f in assoc.mod/help/assoc.help channels.mod/help/chaninfo.help \
|
|
|
|
channels.mod/help/channels.help console.mod/help/console.help \
|
2004-10-12 07:10:31 +00:00
|
|
|
compress.mod/help/compress.help ctcp.mod/help/ctcp.help \
|
2003-10-18 21:59:59 +00:00
|
|
|
filesys.mod/help/filesys.help irc.mod/help/irc.help \
|
|
|
|
notes.mod/help/notes.help seen.mod/help/seen.help \
|
2004-10-12 07:10:31 +00:00
|
|
|
server.mod/help/server.help share.mod/help/share.help \
|
|
|
|
transfer.mod/help/transfer.help uptime.mod/help/uptime.help \
|
|
|
|
wire.mod/help/wire.help
|
2006-08-05 13:42:18 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/mod/${f} ${DATADIR}/help
|
2003-10-18 21:59:59 +00:00
|
|
|
.endfor
|
2006-08-05 13:42:18 +00:00
|
|
|
@${MKDIR} ${DATADIR}/help/set
|
|
|
|
.for f in channels.mod/help/set/channels.help \
|
|
|
|
compress.mod/help/set/compress.help \
|
2003-10-18 21:59:59 +00:00
|
|
|
console.mod/help/set/console.help ctcp.mod/help/set/ctcp.help \
|
|
|
|
filesys.mod/help/set/filesys.help irc.mod/help/set/irc.help \
|
|
|
|
notes.mod/help/set/notes.help server.mod/help/set/server.help \
|
2004-10-12 07:10:31 +00:00
|
|
|
share.mod/help/set/share.help transfer.mod/help/set/transfer.help
|
2006-08-05 13:42:18 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/mod/$f ${DATADIR}/help/set
|
2003-10-18 21:59:59 +00:00
|
|
|
.endfor
|
2006-08-05 13:42:18 +00:00
|
|
|
@${MKDIR} ${DATADIR}/help/msg
|
2003-10-18 21:59:59 +00:00
|
|
|
.for f in irc.mod/help/msg/irc.help notes.mod/help/msg/notes.help \
|
|
|
|
seen.mod/help/msg/seen.help
|
2006-08-05 13:42:18 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/mod/$f ${DATADIR}/help/msg
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DATADIR}/language
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/language/core.*.lang ${DATADIR}/language
|
|
|
|
@cd ${WRKSRC}/src/mod \
|
|
|
|
&& ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \
|
|
|
|
${DATADIR}/language ";"
|
|
|
|
@${MKDIR} ${DATADIR}/scripts
|
|
|
|
.for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \
|
|
|
|
cmd_resolve.tcl compat.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
|
|
|
|
sentinel.tcl userinfo.tcl weed
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/${f} ${DATADIR}/scripts
|
|
|
|
.endfor
|
|
|
|
.for f in cmds1.help cmds2.help core.help
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/help/${f} ${DATADIR}/help
|
|
|
|
.endfor
|
|
|
|
.for f in cmds1.help
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/help/set/${f} ${DATADIR}/help/set
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DATADIR}/text
|
|
|
|
.for f in banner motd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/text/${f} ${DATADIR}/text
|
2003-10-18 21:59:59 +00:00
|
|
|
.endfor
|
2003-06-11 05:32:50 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-08-05 13:42:18 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ABOUT AUTHORS BANS BOTNET BUG-REPORT COMPILE-GUIDE CONTENTS \
|
|
|
|
FIRST-SCRIPT KNOWN-PROBLEMS MODULES PARTYLINE PATCH-HOWTO \
|
|
|
|
TEXT-SUBSTITUTIONS TRICKS UPDATES1.6 USERS WEIRD-MESSAGES \
|
|
|
|
tcl-commands.doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html ${DOCSDIR}/html
|
|
|
|
@${MKDIR} ${DOCSDIR}/settings
|
|
|
|
cd ${WRKSRC}/doc/settings && ${INSTALL_DATA} * ${DOCSDIR}/settings
|
2003-06-11 05:32:50 +00:00
|
|
|
.endif
|
2006-08-05 13:42:18 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-06-11 05:32:50 +00:00
|
|
|
|
2003-10-18 21:59:59 +00:00
|
|
|
.include <bsd.port.post.mk>
|