pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics add graphics/fswebcam



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4120bc7d9f9d
branches:  trunk
changeset: 457047:4120bc7d9f9d
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Aug 15 06:57:48 2021 +0000

description:
add graphics/fswebcam

fswebcam is a neat and simple webcam app.

It captures images from a V4L1/V4L2 compatible device or file,
averages them to reduce noise and draws a caption using the GD
Graphics Library which also handles compressing the image to PNG
or JPEG. The resulting image is saved to a file or sent to stdio
where it can be piped to something like ncftpput or scp.

diffstat:

 graphics/Makefile                           |   3 +-
 graphics/fswebcam/DESCR                     |   7 +++++
 graphics/fswebcam/Makefile                  |  24 +++++++++++++++++++
 graphics/fswebcam/PLIST                     |   3 ++
 graphics/fswebcam/distinfo                  |   8 ++++++
 graphics/fswebcam/patches/patch-Makefile.in |  35 +++++++++++++++++++++++++++++
 graphics/fswebcam/patches/patch-configure   |  15 ++++++++++++
 7 files changed, 94 insertions(+), 1 deletions(-)

diffs (133 lines):

diff -r d26f11d9b4a4 -r 4120bc7d9f9d graphics/Makefile
--- a/graphics/Makefile Sun Aug 15 06:38:37 2021 +0000
+++ b/graphics/Makefile Sun Aug 15 06:57:48 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.949 2021/08/14 14:58:27 bsiegert Exp $
+# $NetBSD: Makefile,v 1.950 2021/08/15 06:57:48 nia Exp $
 #
 
 COMMENT=       Graphics tools and libraries
@@ -150,6 +150,7 @@
 SUBDIR+=       freetype-lib
 SUBDIR+=       freetype-utils
 SUBDIR+=       freetype2
+SUBDIR+=       fswebcam
 SUBDIR+=       ftgl
 SUBDIR+=       fujiplay
 SUBDIR+=       g2
diff -r d26f11d9b4a4 -r 4120bc7d9f9d graphics/fswebcam/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/fswebcam/DESCR   Sun Aug 15 06:57:48 2021 +0000
@@ -0,0 +1,7 @@
+fswebcam is a neat and simple webcam app.
+
+It captures images from a V4L1/V4L2 compatible device or file,
+averages them to reduce noise and draws a caption using the GD
+Graphics Library which also handles compressing the image to PNG
+or JPEG. The resulting image is saved to a file or sent to stdio
+where it can be piped to something like ncftpput or scp.
diff -r d26f11d9b4a4 -r 4120bc7d9f9d graphics/fswebcam/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/fswebcam/Makefile        Sun Aug 15 06:57:48 2021 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2021/08/15 06:57:48 nia Exp $
+
+DISTNAME=      fswebcam-20200725
+CATEGORIES=    graphics
+MASTER_SITES=  https://www.sanslogic.co.uk/fswebcam/files/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.sanslogic.co.uk/fswebcam/
+COMMENT=       Simple app to capture images from a webcam
+LICENSE=       gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+
+MANCOMPRESSED= yes
+
+CONFIGURE_ARGS+=       --disable-v4l1
+
+pre-configure:
+.if exists(/usr/include/sys/videoio.h)
+       ${CP} /usr/include/sys/videoio.h ${WRKSRC}/videodev2.h
+.endif
+
+.include "../../graphics/gd/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d26f11d9b4a4 -r 4120bc7d9f9d graphics/fswebcam/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/fswebcam/PLIST   Sun Aug 15 06:57:48 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/08/15 06:57:48 nia Exp $
+bin/fswebcam
+man/man1/fswebcam.1
diff -r d26f11d9b4a4 -r 4120bc7d9f9d graphics/fswebcam/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/fswebcam/distinfo        Sun Aug 15 06:57:48 2021 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2021/08/15 06:57:48 nia Exp $
+
+SHA1 (fswebcam-20200725.tar.gz) = f0f15bc3fe266f02e9a9f984779ac322a9d20697
+RMD160 (fswebcam-20200725.tar.gz) = ef7cf6b3c103614a8d94dbb42e21f7a29d9104f1
+SHA512 (fswebcam-20200725.tar.gz) = 8fd7e575de50564bf6b124d2456be9ace3d2662425d8099a3b0e596955b192fd4ff13d40dd3963fb1907a66cf91b209094472466afe3766677ce6ef7af1ccc93
+Size (fswebcam-20200725.tar.gz) = 122110 bytes
+SHA1 (patch-Makefile.in) = 9c7f353d96666dc7c2746c63e0db7e34056d8b4d
+SHA1 (patch-configure) = 0e8435c0340c466c4388c8ef4ca9d05bf19c11b6
diff -r d26f11d9b4a4 -r 4120bc7d9f9d graphics/fswebcam/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/fswebcam/patches/patch-Makefile.in       Sun Aug 15 06:57:48 2021 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-Makefile.in,v 1.1 2021/08/15 06:57:49 nia Exp $
+
+Do not compress man pages.
+
+--- Makefile.in.orig   2018-06-03 12:33:23.000000000 +0000
++++ Makefile.in
+@@ -17,13 +17,13 @@ OBJS  = fswebcam.o log.o effects.o parse
+ OBJS += dec_rgb.o dec_yuv.o dec_grey.o dec_bayer.o dec_jpeg.o dec_png.o
+ OBJS += dec_s561.o
+ 
+-all: fswebcam fswebcam.1.gz
++all: fswebcam fswebcam.1
+ 
+ install: all
+       mkdir -p ${DESTDIR}${bindir}
+       mkdir -p ${DESTDIR}${mandir}/man1
+       install -m 755 fswebcam ${DESTDIR}${bindir}
+-      install -m 644 fswebcam.1.gz ${DESTDIR}${mandir}/man1
++      install -m 644 fswebcam.1 ${DESTDIR}${mandir}/man1
+ 
+ fswebcam: $(OBJS)
+       $(CC) -o fswebcam $(OBJS) $(LDFLAGS)
+@@ -31,11 +31,8 @@ fswebcam: $(OBJS)
+ .c.o:
+       ${CC} ${CFLAGS} -c $< -o $@
+ 
+-fswebcam.1.gz: fswebcam.1
+-      gzip -c --best fswebcam.1 > fswebcam.1.gz
+-
+ clean:
+-      rm -f core* *.o fswebcam fswebcam.1.gz
++      rm -f core* *.o fswebcam fswebcam.1
+ 
+ distclean: clean
+       rm -rf config.h *.cache config.log config.status Makefile *.jp*g *.png *~
diff -r d26f11d9b4a4 -r 4120bc7d9f9d graphics/fswebcam/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/fswebcam/patches/patch-configure Sun Aug 15 06:57:48 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2021/08/15 06:57:49 nia Exp $
+
+Shell portability.
+
+--- configure.orig     2020-07-25 18:24:07.000000000 +0000
++++ configure
+@@ -3659,7 +3659,7 @@ else
+   HAVE_WEBP="no"
+ fi
+ 
+-if test "$HAVE_WEBP" == "yes"; then
++if test "$HAVE_WEBP" = "yes"; then
+ 
+ $as_echo "#define HAVE_WEBP 1" >>confdefs.h
+ 



Home | Main Index | Thread Index | Old Index