summaryrefslogtreecommitdiff
path: root/net/connect
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-01-15 19:58:07 +0000
committertron <tron@pkgsrc.org>2004-01-15 19:58:07 +0000
commit6c5fb715d1b8108cb8bf5b09f3f99a41704b6090 (patch)
tree205bad7a9b07f510c6683c48a446e2cb7ea6a855 /net/connect
parent75b339328aca081a9209937e2a88a17643e80ee5 (diff)
downloadpkgsrc-6c5fb715d1b8108cb8bf5b09f3f99a41704b6090.tar.gz
Fix build problem under Darwin and SunOS.
Diffstat (limited to 'net/connect')
-rw-r--r--net/connect/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/net/connect/Makefile b/net/connect/Makefile
index 7579f0436c7..fcbfe207b24 100644
--- a/net/connect/Makefile
+++ b/net/connect/Makefile
@@ -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 @@ COMMENT= Open a TCP connection using a SOCKS4/5 or HTTP proxy server
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