summaryrefslogtreecommitdiff
path: root/chat/ircII/Makefile
blob: 8e25b4fee9636d6d6f1825f758c2d4758b08fdd4 (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
# $NetBSD: Makefile,v 1.3 2001/01/11 11:00:24 tron Exp $
# FreeBSD Id: Makefile,v 1.14 1997/05/14 10:35:13 torstenb Exp
#

DISTNAME=		ircii-20001231
PKGNAME=		ircII-20001231
WRKSRC=			${WRKDIR}/ircii-20001231
CATEGORIES=		chat
MASTER_SITES=		ftp://ircftp.au.eterna.com.au/pub/ircII/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		packages@netbsd.org

.include "../../mk/bsd.prefs.mk"

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)
CONFIGURE_ARGS+=	--with-socks${USE_SOCKS}=${PREFIX}
.if ${USE_SOCKS} == 4
DEPENDS+=               socks4-2.2:../../net/socks4
.else
DEPENDS+=               socks5-1.0.2:../../net/socks5
.endif
.endif

.if (${OPSYS} == SunOS)
CONFIGURE_ENV+=		LIBS=-lnsl
.endif

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
	${RM} -f ${PREFIX}/man/man1/irc.1
	${LN} -s ircII.1 ${PREFIX}/man/man1/irc.1

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