diff options
author | tron <tron@pkgsrc.org> | 2004-01-15 19:58:07 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-01-15 19:58:07 +0000 |
commit | b534114a4d245074d93d438944e2c560dd84e982 (patch) | |
tree | 205bad7a9b07f510c6683c48a446e2cb7ea6a855 /net/connect/Makefile | |
parent | cd4a6c44fd678e148227701045383cd87e7d1412 (diff) | |
download | pkgsrc-b534114a4d245074d93d438944e2c560dd84e982.tar.gz |
Fix build problem under Darwin and SunOS.
Diffstat (limited to 'net/connect/Makefile')
-rw-r--r-- | net/connect/Makefile | 14 |
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 |