diff options
author | tron <tron> | 2004-01-18 17:05:40 +0000 |
---|---|---|
committer | tron <tron> | 2004-01-18 17:05:40 +0000 |
commit | 51afaee967a0584c3a3e97a704f705d9bc32d66f (patch) | |
tree | 68cc6c9112a308c6b5c3c201f5ccca4592cf65e6 /chat | |
parent | dc1715844e2d06b86de0765ec233f64248b165be (diff) | |
download | pkgsrc-51afaee967a0584c3a3e97a704f705d9bc32d66f.tar.gz |
Fix build problems under SunOS (untested) and Darwin.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/icbirc/Makefile | 21 | ||||
-rw-r--r-- | chat/icbirc/PLIST | 3 |
2 files changed, 21 insertions, 3 deletions
diff --git a/chat/icbirc/Makefile b/chat/icbirc/Makefile index 15530d92429..5db8036548c 100644 --- a/chat/icbirc/Makefile +++ b/chat/icbirc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2004/01/18 16:47:38 tron Exp $ +# $NetBSD: Makefile,v 1.3 2004/01/18 17:05:40 tron Exp $ DISTNAME= icbirc-1.6 CATEGORIES= chat @@ -10,4 +10,23 @@ COMMENT= Proxy IRC client and ICB server MAKE_ENV+= BINDIR="${PREFIX}/bin" MANDIR="${PREFIX}/man" +SRCS= icb.c irc.c icbirc.c + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == SunOS +LIBS+= -lsocket -lnsl +.endif + +do-build: + cd ${WRKSRC}; \ + for SRC in ${SRCS}; do \ + ${CC} $$SRC ${CFLAGS} -c; \ + done; \ + ${CC} ${SRCS:S/.c/.o/} ${CFLAGS} ${LDFLAGS} -o icbirc ${LIBS} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/icbirc ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/icbirc.8 ${PREFIX}/man/man8 + .include "../../mk/bsd.pkg.mk" diff --git a/chat/icbirc/PLIST b/chat/icbirc/PLIST index bbf2d7cacf5..dab67cb50f2 100644 --- a/chat/icbirc/PLIST +++ b/chat/icbirc/PLIST @@ -1,4 +1,3 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/18 14:21:18 tron Exp $ +@comment $NetBSD: PLIST,v 1.2 2004/01/18 17:05:40 tron Exp $ bin/icbirc -man/cat8/icbirc.0 man/man8/icbirc.8 |