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 May  5 08:29:37 UTC 2022

Modified Files:
        pkgsrc/graphics/fswebcam: Makefile

Log Message:
fswebcam: Use OPSYS_VERSION to numerically compare NetBSD versions


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 pkgsrc/graphics/fswebcam/Makefile:1.4
--- pkgsrc/graphics/fswebcam/Makefile:1.3       Thu Sep  2 12:01:30 2021
+++ pkgsrc/graphics/fswebcam/Makefile   Thu May  5 08:29:37 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2021/09/02 12:01:30 nia Exp $
+# $NetBSD: Makefile,v 1.4 2022/05/05 08:29:37 nia Exp $
 
 DISTNAME=      fswebcam-20200725
 CATEGORIES=    graphics
@@ -18,8 +18,7 @@ CONFIGURE_ARGS+=      --disable-v4l1
 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.*))
+.  if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099970
        ${CP} ${.CURDIR}/../../graphics/libv4l/files/videoio.h \
                ${WRKSRC}/videodev2.h
 .  else



Home | Main Index | Thread Index | Old Index