Mon Oct 29 14:42:08 2018 UTC ()
Adjust CC_VERSION check from gcc-8* to gcc-[89]*


(abs)
diff -r1.11 -r1.12 pkgsrc/sysutils/acpica-utils/Makefile

cvs diff -r1.11 -r1.12 pkgsrc/sysutils/acpica-utils/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/acpica-utils/Makefile 2018/10/27 21:44:53 1.11
+++ pkgsrc/sysutils/acpica-utils/Makefile 2018/10/29 14:42:08 1.12
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.11 2018/10/27 21:44:53 abs Exp $ 1# $NetBSD: Makefile,v 1.12 2018/10/29 14:42:08 abs Exp $
2# 2#
3 3
4DISTNAME= acpica-unix2-20160930 4DISTNAME= acpica-unix2-20160930
5PKGNAME= ${DISTNAME:S/-unix2-/-utils-/} 5PKGNAME= ${DISTNAME:S/-unix2-/-utils-/}
6PKGREVISION= 1 6PKGREVISION= 1
7CATEGORIES= sysutils devel 7CATEGORIES= sysutils devel
8MASTER_SITES= https://acpica.org/sites/acpica/files/ 8MASTER_SITES= https://acpica.org/sites/acpica/files/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.acpica.org/ 11HOMEPAGE= http://www.acpica.org/
12COMMENT= Intel ACPI CA Unix utilities 12COMMENT= Intel ACPI CA Unix utilities
13LICENSE= modified-bsd OR gnu-gpl-v2 13LICENSE= modified-bsd OR gnu-gpl-v2
14 14
@@ -44,18 +44,18 @@ do-test: @@ -44,18 +44,18 @@ do-test:
44 cd ${WRKSRC}/tests && ./aslts.sh -u 44 cd ${WRKSRC}/tests && ./aslts.sh -u
45## API tests 45## API tests
46 cd ${WRKSRC}/tests/aapits && gmake 46 cd ${WRKSRC}/tests/aapits && gmake
47 cd ${WRKSRC}/tests/aapits/asl && \ 47 cd ${WRKSRC}/tests/aapits/asl && \
48 ASL=${WRKSRC}/generate/unix/bin/iasl gmake 48 ASL=${WRKSRC}/generate/unix/bin/iasl gmake
49# This one needs to be fixed 49# This one needs to be fixed
50# cd ${WRKSRC}/tests/aapits/bin && ./aapitsrun 50# cd ${WRKSRC}/tests/aapits/bin && ./aapitsrun
51## Template tests 51## Template tests
52# This test is broken too 52# This test is broken too
53# cd ${WRKSRC}/tests/templates && gmake 53# cd ${WRKSRC}/tests/templates && gmake
54 54
55.include "../../mk/compiler.mk" 55.include "../../mk/compiler.mk"
56 56
57.if !empty(CC_VERSION:Mgcc-8*) 57.if !empty(CC_VERSION:Mgcc-[89]*)
58CFLAGS+= -Wno-error=format-truncation 58CFLAGS+= -Wno-error=format-truncation
59.endif 59.endif
60 60
61.include "../../mk/bsd.pkg.mk" 61.include "../../mk/bsd.pkg.mk"