summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron>2004-01-15 19:58:07 +0000
committertron <tron>2004-01-15 19:58:07 +0000
commitb0af195168a06840d104258af759cacfddb17212 (patch)
tree205bad7a9b07f510c6683c48a446e2cb7ea6a855 /net
parent45fedbf3743a0e57e1ce30a3340ca8d011d65dcc (diff)
downloadpkgsrc-b0af195168a06840d104258af759cacfddb17212.tar.gz
Fix build problem under Darwin and SunOS.
Diffstat (limited to 'net')
-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