summaryrefslogtreecommitdiffstats
path: root/irc/netwalker-ircc/Makefile
blob: 99593659f1598ef4c24c7e7eb849f69b0067f72e (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
# New ports collection makefile for:   netwalker-ircc
# Date created:        4 December 2004
# Whom:                Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	netwalker-ircc
PORTVERSION=	0.5.0
CATEGORIES=	irc
MASTER_SITES=	http://www.bind.ch/software/netwalker/src/ \
		http://critical.ch/distfiles/
EXTRACT_SUFX=	.tgz

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	A lightweight curses-based IRC client

MAN1=		netwalker.1

LDFLAGS=	-lncurses ${PTHREAD_LIBS}
CFLAGS?=	-O2 -Wall

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400010
LIB_DEPENDS+=	ncurses.5:${PORTSDIR}/devel/ncurses
.endif

post-patch:
	@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
	${WRKSRC}/config.h > ${WRKSRC}/config.h.freebsd
	${MV} ${WRKSRC}/config.h.freebsd ${WRKSRC}/config.h

do-build:
.for file in main functions screen server user messages signals parameter userdb
	${CXX} ${CFLAGS} -c ${WRKSRC}/${file}.cc -o ${WRKSRC}/${file}.o
.endfor
	${CXX} ${LDFLAGS} -L${WRKSRC}/ ${WRKSRC}/*.o -o ${WRKSRC}/netwalker

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/netwalker ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/netwalker.1 ${MANPREFIX}/man/man1
	@${MKDIR} ${DATADIR}
	${CP} ${WRKSRC}/help/* ${PREFIX}/share/netwalker-ircc

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud