diff options
author | nia <nia@pkgsrc.org> | 2021-09-02 12:01:30 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-09-02 12:01:30 +0000 |
commit | 3bf3daba1ad1c1d5b593e7e8653698da14fbbd00 (patch) | |
tree | c0d06bc74892ec843f643bae44d8b8a93ecd3522 | |
parent | 4da9875934922bc633e3f9ca33ef5b4c7e8956b9 (diff) | |
download | pkgsrc-3bf3daba1ad1c1d5b593e7e8653698da14fbbd00.tar.gz |
fswebcam: Attempt to fix build on older NetBSD
-rw-r--r-- | graphics/fswebcam/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/fswebcam/Makefile b/graphics/fswebcam/Makefile index efa4e6f8f0c..154b0d45c2f 100644 --- a/graphics/fswebcam/Makefile +++ b/graphics/fswebcam/Makefile @@ -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" |