pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/chat/icbirc Fix build problems under SunOS (untested) ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a70ce390d8f8
branches: trunk
changeset: 466448:a70ce390d8f8
user: tron <tron%pkgsrc.org@localhost>
date: Sun Jan 18 17:05:40 2004 +0000
description:
Fix build problems under SunOS (untested) and Darwin.
diffstat:
chat/icbirc/Makefile | 21 ++++++++++++++++++++-
chat/icbirc/PLIST | 3 +--
2 files changed, 21 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r f701a98d8b4f -r a70ce390d8f8 chat/icbirc/Makefile
--- a/chat/icbirc/Makefile Sun Jan 18 16:47:38 2004 +0000
+++ b/chat/icbirc/Makefile Sun Jan 18 17:05:40 2004 +0000
@@ -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 @@
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 -r f701a98d8b4f -r a70ce390d8f8 chat/icbirc/PLIST
--- a/chat/icbirc/PLIST Sun Jan 18 16:47:38 2004 +0000
+++ b/chat/icbirc/PLIST Sun Jan 18 17:05:40 2004 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index