pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/fswebcam fswebcam: Use OPSYS_VERSION to numer...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f55d7c124057
branches:  trunk
changeset: 378711:f55d7c124057
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu May 05 08:29:37 2022 +0000

description:
fswebcam: Use OPSYS_VERSION to numerically compare NetBSD versions

diffstat:

 graphics/fswebcam/Makefile |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r b79d8dfb0256 -r f55d7c124057 graphics/fswebcam/Makefile
--- a/graphics/fswebcam/Makefile        Thu May 05 08:29:00 2022 +0000
+++ b/graphics/fswebcam/Makefile        Thu May 05 08:29:37 2022 +0000
@@ -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 @@
 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