pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/fswebcam



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Sep  2 12:01:31 UTC 2021

Modified Files:
        pkgsrc/graphics/fswebcam: Makefile

Log Message:
fswebcam: Attempt to fix build on older NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/graphics/fswebcam/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/fswebcam/Makefile
diff -u pkgsrc/graphics/fswebcam/Makefile:1.2 pkgsrc/graphics/fswebcam/Makefile:1.3
--- pkgsrc/graphics/fswebcam/Makefile:1.2       Sun Aug 15 07:09:40 2021
+++ pkgsrc/graphics/fswebcam/Makefile   Thu Sep  2 12:01:30 2021
@@ -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 @@ GNU_CONFIGURE=       yes
 
 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