summaryrefslogtreecommitdiff
path: root/chat/eggdrop/Makefile
blob: 88b5bda0f915489cd5275c39107792e76d7e6a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $NetBSD: Makefile,v 1.3 2002/09/25 18:32:10 wiz Exp $
#

DISTNAME=	eggdrop1.6.10
PKGNAME=	eggdrop-1.6.10
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/

MAINTAINER=     packages@netbsd.org
HOMEPAGE=	http://www.eggheads.org/
COMMENT=	IRC robot with TCL scripting and multi-channel ability

DEPENDS+=	tcl>=8.3.2:../../lang/tcl

GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	TCLLIB="${PREFIX}/lib" TCLINC="${PREFIX}/include"

post-patch:
	cd ${WRKSRC} && ${SED} -e 's,modules/,${PREFIX}/lib/eggdrop/,' \
		< eggdrop.complete.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}/man/man1/
	${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.dist.new ${PREFIX}/etc/eggdrop.conf.dist
	${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop \
		${PREFIX}/share/eggdrop/help ${PREFIX}/share/eggdrop/language \
		${PREFIX}/share/eggdrop/scripts ${PREFIX}/share/eggdrop/html \
		${PREFIX}/share/eggdrop/help/msg ${PREFIX}/share/eggdrop/help/set
	${INSTALL_DATA} ${WRKSRC}/language/core.*.lang \
		${PREFIX}/share/eggdrop/language/
	cd ${WRKSRC}/doc && ${INSTALL_DATA} BOTNET tcl-commands.doc tricks \
		${PREFIX}/share/eggdrop/
	cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html ${PREFIX}/share/eggdrop/html
	cd ${WRKSRC}/help && ${INSTALL_DATA} cmds1.help cmds2.help core.help \
		${PREFIX}/share/eggdrop/help/
	cd ${WRKSRC}/help/set && ${INSTALL_DATA} cmds1.help cmds2.help \
		${PREFIX}/share/eggdrop/help/set/
	cd ${WRKSRC}/scripts && ${INSTALL_DATA} 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 \
		${PREFIX}/share/eggdrop/scripts/

.include "../../mk/bsd.pkg.mk"

.if defined(NOPIC)
ALL_TARGET=	static
.else
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 dns.so filesys.so irc.so notes.so seen.so \
		server.so share.so transfer.so uptime.so wire.so \
		${PREFIX}/lib/eggdrop/
	cd ${WRKSRC}/src/mod && ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \
		${PREFIX}/share/eggdrop/language/ ";"
.endif