pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Don't use -Werror with clang.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d35aa1c12e1
branches:  trunk
changeset: 602745:5d35aa1c12e1
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Apr 19 21:04:30 2012 +0000

description:
Don't use -Werror with clang.

diffstat:

 pkgtools/packagekit/Makefile |  7 ++++++-
 print/LPRng-core/Makefile    |  8 +++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 521628479fa7 -r 5d35aa1c12e1 pkgtools/packagekit/Makefile
--- a/pkgtools/packagekit/Makefile      Thu Apr 19 21:04:02 2012 +0000
+++ b/pkgtools/packagekit/Makefile      Thu Apr 19 21:04:30 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2012/03/10 10:56:17 obache Exp $
+# $NetBSD: Makefile,v 1.19 2012/04/19 21:04:30 joerg Exp $
 #
 
 DISTNAME=      PackageKit-0.4.0
@@ -58,6 +58,11 @@
 pre-configure:
        cd ${WRKSRC} && autoconf -f
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+BUILDLINK_TRANSFORM+=  rm:-Werror
+.endif
+
 .include "../../databases/shared-mime-info/mimedb.mk"
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
diff -r 521628479fa7 -r 5d35aa1c12e1 print/LPRng-core/Makefile
--- a/print/LPRng-core/Makefile Thu Apr 19 21:04:02 2012 +0000
+++ b/print/LPRng-core/Makefile Thu Apr 19 21:04:30 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2010/02/12 00:21:17 joerg Exp $
+# $NetBSD: Makefile,v 1.36 2012/04/19 21:04:53 joerg Exp $
 
 DISTNAME=      LPRng-3.8.28
 PKGNAME=       LPRng-core-3.8.28
@@ -57,6 +57,12 @@
                        bin/lpstat ${SETUID_ROOT_PERMS} \
                        sbin/lpc ${SETUID_ROOT_PERMS} \
 
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+BUILDLINK_TRANSFORM+=  rm:-Werror
+.endif
+
 pre-patch:
        ${MV} ${WRKSRC:Q}/man/lpd.conf.n ${WRKSRC:Q}/man/lpd.conf.n.in
 



Home | Main Index | Thread Index | Old Index