pkgsrc/chat/icbirc/Makefile
adrianp d551200722 Add a small function from OpenSSH for systems that don't support __progname
Initially this is for SunOS only so this package can build on OpenSolaris.
PKGREVISION++
2008-11-16 19:16:49 +00:00

38 lines
931 B
Makefile

# $NetBSD: Makefile,v 1.16 2008/11/16 19:16:49 adrianp Exp $
DISTNAME= icbirc-1.8
PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= http://www.benzedrine.cx/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.benzedrine.cx/icbirc.html
COMMENT= Proxy IRC client and ICB server
# uses strlcpy
NOT_FOR_PLATFORM= Linux-*-*
PKG_DESTDIR_SUPPORT= user-destdir
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"