Wed Jun 12 21:09:59 2019 UTC ()
textproc/libxls: work around pre-C++11 GCC errors

C++11 support is needed only for a test but causing the build to fail
on older but still suported OSes like RHEL 6. A patch has been
submitted upstream to simply skip the test if C++11 support is lacking,
but until then, use GCC_REQD.


(sjmulder)
diff -r1.3 -r1.4 pkgsrc/textproc/libxls/Makefile

cvs diff -r1.3 -r1.4 pkgsrc/textproc/libxls/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/libxls/Makefile 2019/05/06 09:17:13 1.3
+++ pkgsrc/textproc/libxls/Makefile 2019/06/12 21:09:59 1.4
@@ -1,23 +1,26 @@ @@ -1,23 +1,26 @@
1# $NetBSD: Makefile,v 1.3 2019/05/06 09:17:13 sjmulder Exp $ 1# $NetBSD: Makefile,v 1.4 2019/06/12 21:09:59 sjmulder Exp $
2 2
3DISTNAME= libxls-1.5.1 3DISTNAME= libxls-1.5.1
4CATEGORIES= textproc 4CATEGORIES= textproc
5MASTER_SITES= ${MASTER_SITE_GITHUB:=libxls/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=libxls/}
6GITHUB_RELEASE= v${PKGVERSION_NOREV} 6GITHUB_RELEASE= v${PKGVERSION_NOREV}
7 7
8MAINTAINER= sjmulder@NetBSD.org 8MAINTAINER= sjmulder@NetBSD.org
9HOMEPAGE= https://github.com/libxls/libxls 9HOMEPAGE= https://github.com/libxls/libxls
10COMMENT= Extract cell data from legacy Microsoft Excel files 10COMMENT= Extract cell data from legacy Microsoft Excel files
11LICENSE= 2-clause-bsd 11LICENSE= 2-clause-bsd
12 12
13GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
14# cplusplus/* is used for tests, but built always 14# C++11 support needed only for a test, see:
 15# https://github.com/libxls/libxls/pull/61
15USE_LANGUAGES= c c++11 16USE_LANGUAGES= c c++11
16USE_LIBTOOL= yes 17USE_LIBTOOL= yes
 18# workaround for failed builds until above PR is merged
 19GCC_REQD+= 4.8
17 20
18TEST_TARGET= check 21TEST_TARGET= check
19 22
20PKGCONFIG_OVERRIDE+= libxls.pc.in 23PKGCONFIG_OVERRIDE+= libxls.pc.in
21 24
22.include "../../converters/libiconv/buildlink3.mk" 25.include "../../converters/libiconv/buildlink3.mk"
23.include "../../mk/bsd.pkg.mk" 26.include "../../mk/bsd.pkg.mk"