pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/fswebcam fswebcam: Attempt to fix build on ol...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9e86c1611338
branches:  trunk
changeset: 457838:9e86c1611338
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Sep 02 12:01:30 2021 +0000

description:
fswebcam: Attempt to fix build on older NetBSD

diffstat:

 graphics/fswebcam/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 0782029eeca2 -r 9e86c1611338 graphics/fswebcam/Makefile
--- a/graphics/fswebcam/Makefile        Thu Sep 02 11:54:00 2021 +0000
+++ b/graphics/fswebcam/Makefile        Thu Sep 02 12:01:30 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2021/08/15 07:09:40 nia Exp $
+# $NetBSD: Makefile,v 1.3 2021/09/02 12:01:30 nia Exp $
 
 DISTNAME=      fswebcam-20200725
 CATEGORIES=    graphics
@@ -13,9 +13,18 @@
 
 CONFIGURE_ARGS+=       --disable-v4l1
 
+.include "../../mk/bsd.prefs.mk"
+
 pre-configure:
 .if exists(/usr/include/sys/videoio.h)
+# Older NetBSD versions need a newer videoio.h.
+.  if ${OPSYS} == "NetBSD" && \
+    (!empty(OS_VERSION:M[56789].*) && empty(OS_VERSION:M9.99.*))
+       ${CP} ${.CURDIR}/../../graphics/libv4l/files/videoio.h \
+               ${WRKSRC}/videodev2.h
+.  else
        ${CP} /usr/include/sys/videoio.h ${WRKSRC}/videodev2.h
+.  endif
 .endif
 
 .include "../../graphics/gd/buildlink3.mk"



Home | Main Index | Thread Index | Old Index