summaryrefslogtreecommitdiff
path: root/chat/icb/Makefile
blob: 42c09aa46bb911f05ee2d768bbeb770da70571ec (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
# $NetBSD: Makefile,v 1.25 2017/12/12 07:13:01 spz Exp $
#

# Note: The file ftp://ftp.icb.net/pub/icb/icb-0.9grok2.tar.gz is way
#	older than this here. It's got no readline support, tcl, ... - HF
DISTNAME=		icb-5.0.9
PKGNAME=		icb-5.0.9pl1
PKGREVISION=		7
CATEGORIES=		chat
MASTER_SITES=		${MASTER_SITE_LOCAL}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.icb.net/
COMMENT=		Internet CB - a mostly-defunct chat client

NO_SRC_ON_FTP=		already in MASTER_SITE_LOCAL

INSTALLATION_DIRS=	bin ${ICBLIBDIR} ${EGDIR}
EGDIR=			${PREFIX}/share/examples/icb
ICBLIBDIR=		${PREFIX}/libdata/icb
CONF_FILES+=		${EGDIR}/icbserverdb ${PREFIX}/libdata/icbserverdb

CPPFLAGS.SunOS+=	-DBSD_COMP
LIBS.SunOS+=		-lsocket -lnsl
MAKE_ENV+=		OTHERLIBS=${LIBS:Q}

post-extract:
	${RM} -f ${WRKSRC}/tcl/string.h

do-configure:
	${SED} -e "s|@PREFIX@|${PREFIX}|g" ${FILESDIR}/config >${WRKSRC}/config

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/icb/icb ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libdata/icb
	${INSTALL_DATA} ${WRKSRC}/contrib/bartender ${DESTDIR}${ICBLIBDIR}
	${INSTALL_DATA} ${WRKSRC}/contrib/confuse ${DESTDIR}${ICBLIBDIR}
	${INSTALL_DATA} ${WRKSRC}/contrib/echofile ${DESTDIR}${ICBLIBDIR}
	${INSTALL_DATA} ${WRKSRC}/icbserverdb ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/sample.icbrc ${DESTDIR}${EGDIR}

.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"