summaryrefslogtreecommitdiff
path: root/x11/xscript
diff options
context:
space:
mode:
authorjoerg <joerg>2012-12-24 21:17:12 +0000
committerjoerg <joerg>2012-12-24 21:17:12 +0000
commit47d652e3941675290517aa935adc0fbb432d6aa2 (patch)
tree32fb3933b2ca28a0be8b04daada93432614f7df9 /x11/xscript
parent1464ba75b4de95193ec58e9d4439100fbd22c2b3 (diff)
downloadpkgsrc-47d652e3941675290517aa935adc0fbb432d6aa2.tar.gz
Disable return warning for Clang.
Diffstat (limited to 'x11/xscript')
-rw-r--r--x11/xscript/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/xscript/Makefile b/x11/xscript/Makefile
index f4233cc064b..f29511d6f38 100644
--- a/x11/xscript/Makefile
+++ b/x11/xscript/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2012/10/29 05:07:20 asau Exp $
+# $NetBSD: Makefile,v 1.17 2012/12/24 21:17:12 joerg Exp $
#
DISTNAME= xscript.tar
@@ -16,6 +16,12 @@ COMMENT= X Window system script recording and playback
WRKSRC= ${WRKDIR}/test-distrib/src
USE_IMAKE= YES
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+MAKE_FLAGS+= CCOPTIONS=-Wno-error=return-type
+.endif
+
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"