blob: 14fdbf7a98e503efa751dd99174d25b71b22bbab (
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
|
PORTNAME= sirc
PORTVERSION= 2.211
PORTREVISION= 2
CATEGORIES= irc
MASTER_SITES= LOCAL/bdrewery/${PORTNAME} \
http://www.iagora.com/~espel/sirc/ \
LOCAL/bdrewery/${PORTNAME}/scripts:s \
http://www.iagora.com/~espel/sirc/scripts/:s
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR= sirc
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Small (150k), fast, perl-based IRC client
RUN_DEPENDS= p5-Perl4-CoreLibs>=0:devel/p5-Perl4-CoreLibs
USES= ncurses perl5
IPV6_RUN_DEPENDS= p5-IO-Socket-INET6>0:net/p5-IO-Socket-INET6
IPV6_EXTRA_PATCHES= ${PATCHDIR}/dsirc-ipv6
SIRC_SCRIPTS_DESC= Additional scripts for the client
SIRC_SCRIPTS_DISTFILES= ${SIRC_SCRIPTS:S|$|:s|}
SUB_FILES= sirc
PORTDOCS= ChangeLog PROGRAMMING README
SIRC_SCRIPTS= adcc.pl akickban.pl avoice.pl country.pl finger.pl ftp.pl \
howl.pl lastlog.pl nocolor.pl patattack.pl prefix.pl quiet.pl \
quit.pl thx.pl www.pl yiff.pl
SIRCLIBDIR= ${STAGEDIR}${PREFIX}/libexec/sirc
OPTIONS_DEFINE= DOCS IPV6 SIRC_SCRIPTS SOCKS
OPTIONS_DEFAULT=SIRC_SCRIPTS
OPTIONS_SUB= yes
IPV6_EXTRA_PATCHES_OFF= ${PATCHDIR}/dsirc-minimal
SOCKS_VARS= PKGMESSAGE=${FILESDIR}/pkg-message-socks
pre-patch:
@${CP} ${WRKSRC}/dsirc ${WRKSRC}/dsirc.prepatch
@${SED} -e "1s|^#!/usr/local/bin/perl|#!${PREFIX}/bin/perl|" \
-e "s#irc.primenet.com#irc.efnet.org#" \
${WRKSRC}/dsirc.prepatch > ${WRKSRC}/dsirc
do-build:
${CC} ${CFLAGS} ${WRKSRC}/ssfe.c -o ${WRKSRC}/ssfe \
${LDFLAGS} -lncurses
do-install:
@${MKDIR} ${SIRCLIBDIR}
${INSTALL_DATA} ${WRKSRC}/n0thing.pl ${SIRCLIBDIR}
${INSTALL_DATA} ${WRKSRC}/sirc.help.gz ${SIRCLIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/dsirc ${SIRCLIBDIR}
${INSTALL_PROGRAM} ${WRKSRC}/ssfe ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/sirc ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ssfe.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/sirc.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/socks.pl ${SIRCLIBDIR}
do-install-SIRC_SCRIPTS-on:
(cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${SIRC_SCRIPTS} \
${SIRCLIBDIR})
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.socks ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|