summaryrefslogtreecommitdiff
path: root/chat/tirc/Makefile
blob: d7ab179c06f07190a9cf482cfb1fc84d72aa5af6 (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
# $NetBSD: Makefile,v 1.4 2003/02/01 10:09:36 agc Exp $
#

DISTNAME=	tirc-1.2
CATEGORIES=	chat
MASTER_SITES=	ftp://ftp.mayn.de/pub/unix/network/irc/tirc/

MAINTAINER=	packages@netbsd.org
COMMENT=	Token's 'Internet Relay Chat' Client

USE_BUILDLINK2=	YES
GNU_CONFIGURE=	YES

CONFIGURE_ARGS+="--with-ansi-colours"

post-patch:
	${SED} "s,/usr/local,${PREFIX},g" ${WRKSRC}/tirc.1		\
		> ${WRKSRC}/tirc.1.done
	${MV} ${WRKSRC}/tirc.1.done ${WRKSRC}/tirc.1

	${SED} "s,/usr/local/share/tircrc,${PREFIX}/share/tirc/tircrc,g"\
		${WRKSRC}/main.c > ${WRKSRC}/main.c.done
	${MV} ${WRKSRC}/main.c.done ${WRKSRC}/main.c
.if exists(/usr/include/sys/queue.h)
	${RM} ${WRKSRC}/sys/queue.h
.endif

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/tirc
	${INSTALL_DATA} ${WRKSRC}/dot.tircrc ${PREFIX}/share/tirc/tircrc

.include "../../devel/ncurses/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"