blob: 5dbe18f65bd9c9b93a64559c67dcfc310b6ef424 (
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
|
# $NetBSD: Makefile,v 1.20 2017/08/16 20:45:32 wiz Exp $
DISTNAME= icbirc-1.9
CATEGORIES= chat
MASTER_SITES= http://www.benzedrine.ch/
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://www.benzedrine.cx/icbirc.html
COMMENT= Proxy IRC client and ICB server
LICENSE= 2-clause-bsd
# uses strlcpy
BROKEN_ON_PLATFORM= Linux-*-*
WRKSRC= ${WRKDIR}/${PKGBASE}
MAKE_ENV+= BINDIR="${PREFIX}/bin" MANDIR="${PREFIX}/man"
SRCS= icb.c irc.c icbirc.c
CPPFLAGS.Interix+= -Dsocklen_t=int
LDFLAGS.SunOS+= -lresolv -lsocket -lnsl
CFLAGS.SunOS+= -DNEED_PROGNAME
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8
do-build:
.for f in ${SRCS}
cd ${WRKSRC} && ${COMPILE.c} ${f}
.endfor
cd ${WRKSRC} && ${LINK.c} -o icbirc ${SRCS:.c=.o}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/icbirc ${DESTDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/icbirc.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
.include "../../mk/bsd.pkg.mk"
|