31 lines
845 B
Makefile
31 lines
845 B
Makefile
# $NetBSD: Makefile,v 1.3 2021/09/02 12:01:30 nia Exp $
|
|
|
|
DISTNAME= fswebcam-20200725
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= https://www.sanslogic.co.uk/fswebcam/files/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.sanslogic.co.uk/fswebcam/
|
|
COMMENT= Simple app to capture images from a webcam
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
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"
|
|
.include "../../mk/bsd.pkg.mk"
|