pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/connect Fix build problem under Darwin and SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/984e7ca40ec1
branches:  trunk
changeset: 466333:984e7ca40ec1
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Jan 15 19:58:07 2004 +0000

description:
Fix build problem under Darwin and SunOS.

diffstat:

 net/connect/Makefile |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 2ee8bc3f7896 -r 984e7ca40ec1 net/connect/Makefile
--- a/net/connect/Makefile      Thu Jan 15 19:13:27 2004 +0000
+++ b/net/connect/Makefile      Thu Jan 15 19:58:07 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/01/15 19:11:17 tron Exp $
+# $NetBSD: Makefile,v 1.2 2004/01/15 19:58:07 tron Exp $
 
 DISTNAME=      connect
 PKGNAME=       ${DISTNAME}-1.69
@@ -12,9 +12,19 @@
 
 EXTRACT_ONLY=  # empty
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == Darwin
+LIBS=  -lresolv
+.elif ${OPSYS} == SunOS
+LIBS=  -lsocket -lnsl
+.else
+LIBS=
+.endif
+
 do-build:
        ${MKDIR} ${WRKSRC}
-       ${CC} ${DISTDIR}/${DISTFILES} ${CFLAGS} -o ${WRKSRC}/connect
+       ${CC} ${DISTDIR}/${DISTFILES} ${CFLAGS} -o ${WRKSRC}/connect ${LIBS}
        ${EGREP} '^ \*(| .*)$$' ${DISTDIR}/${DISTFILES} | \
        ${CUT} -c 4- >${WRKSRC}/README
 



Home | Main Index | Thread Index | Old Index