summaryrefslogtreecommitdiff
path: root/net/ircII
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-08-18 09:11:30 +0000
committeragc <agc@pkgsrc.org>1999-08-18 09:11:30 +0000
commitd792103c87eb8ba141c6725abab884be490bb185 (patch)
tree0476656a7a28be0d33f66f418a5b33f0ff9ce67d /net/ircII
parent9ddc439a72c3ecc0fa6547546723eb79c9529a5c (diff)
downloadpkgsrc-d792103c87eb8ba141c6725abab884be490bb185.tar.gz
Record build options in the BuildInfo file via BUILD_DEFS. These can be
displayed using the -B option to pkg_info(1). Add USE_SOCKS to BUILD_DEFS
Diffstat (limited to 'net/ircII')
-rw-r--r--net/ircII/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/net/ircII/Makefile b/net/ircII/Makefile
index 08446129334..185667d386f 100644
--- a/net/ircII/Makefile
+++ b/net/ircII/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 1999/07/15 06:26:27 mrg Exp $
+# $NetBSD: Makefile,v 1.20 1999/08/18 09:11:30 agc Exp $
# FreeBSD Id: Makefile,v 1.14 1997/05/14 10:35:13 torstenb Exp
#
@@ -16,6 +16,21 @@ CONFIGURE_ENV+= ${IRCII_CONFIGURE_ENV}
PLIST_SRC= ${WRKDIR}/PLIST.tmp
+BUILD_DEFS+= USE_SOCKS
+
+.include "../../mk/bsd.prefs.mk"
+
+# Include SOCKS firewall support
+.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
+CONFIGURE_ARGS+= --with-socks${USE_SOCKS}=${PREFIX}
+.if ${USE_SOCKS} == 4
+DEPENDS+= socks4-2.2:../../net/socks4
+.else
+DEPENDS+= socks5-1.0.2:../../net/socks5
+.endif
+.endif
+
+
pre-install:
@(if [ "X${MANZ}" != X"" ]; then \
GZSUFFIX=.gz; \
@@ -27,6 +42,7 @@ post-install:
${ECHO} Compressing help files; \
find ${PREFIX}/share/irc/help -type f -print | xargs ${GZIP_CMD}; \
fi
- ${LN} -fs ircII.1 ${PREFIX}/man/man1/irc.1
+ ${RM} -f ${PREFIX}/man/man1/irc.1
+ ${LN} -s ircII.1 ${PREFIX}/man/man1/irc.1
.include "../../mk/bsd.pkg.mk"