summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2019-11-24 01:14:10 +0000
committergdt <gdt@pkgsrc.org>2019-11-24 01:14:10 +0000
commit1c32b1c7ffb14eed0edcb486d379c2bb4f98c9a5 (patch)
treebb88f5cd9da5cd5af813d813047a2bafaff5a1b9 /comms
parented1a616857cf60e2285312471aea6e7e41641900 (diff)
downloadpkgsrc-1c32b1c7ffb14eed0edcb486d379c2bb4f98c9a5.tar.gz
comms/asterisk16: Fix compiler check via pkglint
AUTOFIX: Makefile:290: Replacing "${PKGSRC_COMPILER} == \"clang\"" with "${PKGSRC_COMPILER:Mclang}". The PKGSRC_COMPILER can be a list of chained compilers, e.g. "ccache distcc clang". Therefore, comparing it using == or != leads to wrong results in these cases.
Diffstat (limited to 'comms')
-rw-r--r--comms/asterisk16/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/comms/asterisk16/Makefile b/comms/asterisk16/Makefile
index 5da3f3c9984..0873bed4dfb 100644
--- a/comms/asterisk16/Makefile
+++ b/comms/asterisk16/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2019/11/03 12:04:12 rillig Exp $
+# $NetBSD: Makefile,v 1.50 2019/11/24 01:14:10 gdt Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -287,7 +287,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
-.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER} == "clang"
+.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER:Mclang}
.include "../../lang/libBlocksRuntime/buildlink3.mk"
.endif