blob: 23ac408b525df7a7967cab9fcc08e7a5ca804263 (
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
|
# $NetBSD: Makefile,v 1.31 2004/01/05 11:16:31 grant Exp $
DISTNAME= ircii-${VERS}
PKGNAME= ircII-${VERS}
WRKSRC= ${WRKDIR}/ircii-${VERS}
CATEGORIES= chat
MASTER_SITES= ftp://ircii.warped.com/pub/ircII/ \
ftp://ircftp.au.eterna.com.au/pub/ircII/ \
ftp://ftp.sergei.cc/pub/ircII/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= The 'Internet Relay Chat' and 'Internet Citizens Band' Client
CONFLICTS= blackened-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
VERS= 20030709
PLIST_SUBST+= VERS=${VERS}
.include "../../mk/bsd.prefs.mk"
USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
.if defined(DEFAULT_IRC_SERVER)
CONFIGURE_ARGS+= --with-default-server=${DEFAULT_IRC_SERVER}
.endif
BUILD_DEFS+= USE_INET6
# Note: this pkg auto-detects IPv6 without regarding USE_INET6.
# (Leave the above line in to still get it into the README-IPv6.html!)
PLIST_SRC= ${WRKDIR}/PLIST.tmp
BUILD_DEFS+= USE_SOCKS
# Include SOCKS firewall support
.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
. if ${USE_SOCKS} == 4
. include "../../net/socks4/buildlink3.mk"
CONFIGURE_ARGS+= --with-socks4=${BUILDLINK_PREFIX.socks4}
. elif ${USE_SOCKS} == 5
. include "../../net/socks5/buildlink3.mk"
CONFIGURE_ARGS+= --with-socks5=${BUILDLINK_PREFIX.socks5}
. endif
.endif
# Allow customizations from /etc/mk.conf.
CONFIGURE_ARGS+= ${IRCII_CONFIGURE_ARGS}
CONFIGURE_ENV+= ${IRCII_CONFIGURE_ENV}
LDFLAGS.SunOS+= -lsocket -lnsl
pre-install:
@(if [ "X${MANZ}" != X"" ]; then \
GZSUFFIX=.gz; \
fi; \
${SED} -e 's|@.GZ@|'$$GZSUFFIX'|g' ${PKGDIR}/PLIST > ${PLIST_SRC})
post-install:
@if [ "X${MANZ}" != X"" ]; then \
${ECHO} Compressing help files; \
${FIND} ${PREFIX}/share/irc/help -type f -print | ${XARGS} ${GZIP_CMD}; \
fi
.include "../../mk/bsd.pkg.mk"
|