From 9decb51a894d990422577eba13f9cffc5ed58810 Mon Sep 17 00:00:00 2001 From: tnn Date: Sun, 30 Aug 2020 05:41:22 +0000 Subject: libv4l1: needs c++ compiler --- graphics/libv4l1/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'graphics') diff --git a/graphics/libv4l1/Makefile b/graphics/libv4l1/Makefile index 698873fc336..c484a1134a7 100644 --- a/graphics/libv4l1/Makefile +++ b/graphics/libv4l1/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2020/08/29 22:18:41 ryoon Exp $ +# $NetBSD: Makefile,v 1.2 2020/08/30 05:41:22 tnn Exp $ LIBV4L_VERS= 1.18.1 DISTNAME= v4l-utils-${LIBV4L_VERS} @@ -18,10 +18,13 @@ FORTIFY_SUPPORTED= no USE_TOOLS+= gmake USE_LIBTOOL= yes +USE_LANGUAGES= c c++ .include "../../mk/bsd.prefs.mk" -NEWHEADER!= ${GREP} V4L2_SEL_TGT_CROP /usr/include/sys/videoio.h || echo "no" +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" +NEWHEADER!= ${GREP} V4L2_SEL_TGT_CROP /usr/include/sys/videoio.h > /dev/null 2>&1 || echo "no" +.endif .if (${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly") && !exists(/usr/include/sys/videoio.h) PLIST.needs_videoio= yes -- cgit v1.2.3