summaryrefslogtreecommitdiff
path: root/chat/sirc/Makefile
blob: 9bde69c780b4298d86777dd26b66ac0c0b5b672d (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# $NetBSD: Makefile,v 1.25 2012/12/14 23:46:28 marino Exp $

DISTNAME=	sirc-2.211
PKGREVISION=	5
CATEGORIES=	chat
MASTER_SITES=	http://www.iagora.com/~espel/sirc/
DISTFILES=	${DEFAULT_DISTFILES} \
		${SIRC_SCRIPTS}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.iagora.com/~espel/sirc/sirc.html
COMMENT=	IRC client written and programmable in perl

DEPENDS+=	p5-Socket6>=0.07:../../net/p5-Socket6

PKG_INSTALLATION_TYPES=	overwrite pkgviews

# supports IPv6 (actually, AF-independent)
BUILD_DEFS+=	IPV6_READY

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
USE_TOOLS+=	perl:run
SIRC_SCRIPTS= \
		adcc.pl				\
		akickban.pl			\
		avoice.pl			\
		country.pl			\
		finger.pl			\
		ftp.pl				\
		howl.pl				\
		hotmail.pl			\
		lastlog.pl			\
		nocolor.pl			\
		patattack.pl			\
		prefix.pl			\
		quiet.pl			\
		quit.pl				\
		ssfe.diff			\
		thx.pl				\
		winnuke.pl			\
		www.pl				\
		yiff.pl

.for script in ${SIRC_SCRIPTS}
SITES.${script:T:S/=/--/}?= ${MASTER_SITES:=scripts/}
.endfor

NO_BUILD=	yes
DIST_SUBDIR=	sirc

REPLACE_PERL+=	dsirc

.include "../../mk/bsd.prefs.mk"
.if defined(DEFAULT_IRC_SERVER)
IRC_SERVER=	${DEFAULT_IRC_SERVER}
.else
IRC_SERVER=	us.undernet.org
.endif

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 lib/sirc/scripts

do-install:
	cd ${WRKSRC} ; ( \
		${ECHO} "y" ; \
		${ECHO} "" ; \
		${ECHO} "" ; \
		${ECHO} "" ; \
		${ECHO} "-O3" ; \
		${ECHO} "" ; \
		${ECHO} "${PERL5}" ; \
		${ECHO} "${DESTDIR}${PREFIX}/bin" ; \
		${ECHO} "y" ; \
		${ECHO} "${DESTDIR}${PREFIX}/lib/sirc" ; \
		${ECHO} "y" ; \
		${ECHO} "n" ; \
		${ECHO} "${DESTDIR}${PREFIX}/${PKGMANDIR}/man1" ; \
		${ECHO} "${IRC_SERVER}" ; \
		${ECHO} "" ; \
	) | ./install
	for i in ${SIRC_SCRIPTS} ; do \
		${ECHO} installing $$i ; \
		${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$$i ${DESTDIR}${PREFIX}/lib/sirc/scripts/$$i ; done

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