summaryrefslogtreecommitdiff
path: root/chat/tirc
diff options
context:
space:
mode:
authoragc <agc>2003-02-01 10:09:36 +0000
committeragc <agc>2003-02-01 10:09:36 +0000
commit6a51d6172e0f379dac7c2779c2a55f9bfaeba177 (patch)
tree53b0e200738bf779a472759929b8394956cdf792 /chat/tirc
parentd098b39effbcadee78401525c447cec64bce09db (diff)
downloadpkgsrc-6a51d6172e0f379dac7c2779c2a55f9bfaeba177.tar.gz
If there's a system header <sys/queue.h>, don't use the one that's bundled
with the tirc package, since it is unlikely to work in most cases - use the system one instead.
Diffstat (limited to 'chat/tirc')
-rw-r--r--chat/tirc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/chat/tirc/Makefile b/chat/tirc/Makefile
index 76c3af3a147..d7ab179c06f 100644
--- a/chat/tirc/Makefile
+++ b/chat/tirc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2002/10/25 17:20:08 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2003/02/01 10:09:36 agc Exp $
#
DISTNAME= tirc-1.2
@@ -21,6 +21,9 @@ post-patch:
${SED} "s,/usr/local/share/tircrc,${PREFIX}/share/tirc/tircrc,g"\
${WRKSRC}/main.c > ${WRKSRC}/main.c.done
${MV} ${WRKSRC}/main.c.done ${WRKSRC}/main.c
+.if exists(/usr/include/sys/queue.h)
+ ${RM} ${WRKSRC}/sys/queue.h
+.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/tirc