summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2020-08-30 05:41:22 +0000
committertnn <tnn@pkgsrc.org>2020-08-30 05:41:22 +0000
commit9decb51a894d990422577eba13f9cffc5ed58810 (patch)
tree60f0aa935a5baf1680c1262afebe1eaf65ad1a21 /graphics
parentb6322353adbeecacdabd7e866a304bb500762dcd (diff)
downloadpkgsrc-9decb51a894d990422577eba13f9cffc5ed58810.tar.gz
libv4l1: needs c++ compiler
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libv4l1/Makefile7
1 files changed, 5 insertions, 2 deletions
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