pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libdbusmenu-tools Ignore deprecation with clang.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47254206f5e6
branches:  trunk
changeset: 406471:47254206f5e6
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Dec 22 22:22:27 2019 +0000

description:
Ignore deprecation with clang.

diffstat:

 devel/libdbusmenu-tools/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 758c53c7269b -r 47254206f5e6 devel/libdbusmenu-tools/Makefile
--- a/devel/libdbusmenu-tools/Makefile  Sun Dec 22 22:21:58 2019 +0000
+++ b/devel/libdbusmenu-tools/Makefile  Sun Dec 22 22:22:27 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2019/11/06 14:34:30 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2019/12/22 22:22:27 joerg Exp $
 
 PKGREVISION= 15
 .include "../../meta-pkgs/libdbusmenu/Makefile.common"
@@ -14,6 +14,12 @@
 CONFIGURE_ARGS+=       --disable-vala
 CONFIGURE_ARGS+=       --enable-tests
 
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+=       -Wno-deprecated-declarations
+.endif
+
 post-configure:
        ${LN} -sf ${BUILDLINK_DIR}/lib/libdbusmenu-glib.la \
                ${WRKSRC}/libdbusmenu-glib/



Home | Main Index | Thread Index | Old Index