From nobody Fri Nov 3 19:17:36 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SMVr03YGWz507r4; Fri, 3 Nov 2023 19:17:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SMVr032q7z4rtt; Fri, 3 Nov 2023 19:17:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699039056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UTh60VqbfBxTfvEbGthl4l2ez4Xfj5Shlu5wrwiIkZs=; b=PtDEWuFmX2xGMCIXy+UIMKFN16VPcK6VlIlLbI56zh1s6GWm5glMfrAviiw7rujQp1YMRo LoAtz6pYgWDvBqaT7W6hytlJnWFigStC7ahYKG+M+QiXcL8m7scagX+NOlTcqxsxaiLOmm YwJ/PcbbKlgJu3koA1+y0I97XAbnyXeTwZF1O12xlyY/0d1Ez/kI4UFpYFlJpypa1QHoKq YJ4M4Ajq8sKePgfnOpkP5w3GQmGgjtu8kIpfmYHfoiRWiYEQOGaPa7MJ1CHqpwnwiQFQyC IvuuxUgE9cllah8Sis6hWGFdmoGGs/OVSC2lx2FCgitwkRbrVAV5yGVcAqIv4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699039056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UTh60VqbfBxTfvEbGthl4l2ez4Xfj5Shlu5wrwiIkZs=; b=O/Eee0EtEYYrnW9q2894B593o9sA2HxjsFIDS0R/htDRUN5ApJI1ANtzt9KSLIuXco8wGc R40hz7yjDRInFCB+1rU2v3+R0D+8cCqLkk9oMcRZPKMZe2eu3yIyiXRQYhk44t2UUzLra+ ran5sysk0PeySqyZ1E4dZi/ut4kBjY8sMdtGELqqarDg7zzP+iNDRN+kj3wO+ZVUr3Jl+n WJrnnLH3ysad2RoBZHoxOxI8buRrQoUlzsNtkmXmtddzvR6f5teXjsMMWeiXEuXaOmwvUv xpWu4JKYr3SxGKfm/UtIAziogyUrp/O6sS5G3oVtrb9UsOroth5V+7P6VrH4OA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699039056; a=rsa-sha256; cv=none; b=Ak7ArGcPTg1vycTP/VCWs1tZzhnAWh71WIPLrWXtsf+B39L5zhSBsHB4hntZbOlsdcxmSs 7RE0ILPAtUJteem0fG3Rj7wp+RVrpq2fr+gixtvl/oKHSfPVGhTDIcrLY8F+0pp0L5c/zN P0lPUNf3ZLNvEMMHHxVIwFjmDi6wpi9xGKviQ81pfB88rfQ08zXVyBuKvf63h5HekOvlK/ Nd9IeWZEzA7rK/wOZHd/26nVIF2gYn8ZpGCZ4R1+IDs0Qk+vIw1sfZ8w+PNF5WE4/t0fI+ vhy9SrN8IySl4pl4KDQVbJJeHfa85HOAtBYguUhyHqeJzHa0UABgbiX3Sy9QTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SMVr01zyYzBbC; Fri, 3 Nov 2023 19:17:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A3JHa3H097577; Fri, 3 Nov 2023 19:17:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A3JHaF0097574; Fri, 3 Nov 2023 19:17:36 GMT (envelope-from git) Date: Fri, 3 Nov 2023 19:17:36 GMT Message-Id: <202311031917.3A3JHaF0097574@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Guido Falsi Subject: git: 7d637bf4782a - main - multimedia/fswebcam: Command line tool for webcams List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: madpilot X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7d637bf4782a4ac613492bd6ed16a8b49d68a721 Auto-Submitted: auto-generated The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=7d637bf4782a4ac613492bd6ed16a8b49d68a721 commit 7d637bf4782a4ac613492bd6ed16a8b49d68a721 Author: Guido Falsi AuthorDate: 2023-11-03 19:14:57 +0000 Commit: Guido Falsi CommitDate: 2023-11-03 19:14:57 +0000 multimedia/fswebcam: Command line tool for webcams fswebcam 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. Works fine with webcams supported by multimedia/webcamd. --- multimedia/Makefile | 1 + multimedia/fswebcam/Makefile | 24 ++++++++++++++++++++++++ multimedia/fswebcam/distinfo | 3 +++ multimedia/fswebcam/files/patch-Makefile.in | 13 +++++++++++++ multimedia/fswebcam/files/patch-videodev.h | 13 +++++++++++++ multimedia/fswebcam/files/patch-videodev2.h | 12 ++++++++++++ multimedia/fswebcam/pkg-descr | 6 ++++++ 7 files changed, 72 insertions(+) diff --git a/multimedia/Makefile b/multimedia/Makefile index 5bb15b628f23..ed68e81a9acf 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -70,6 +70,7 @@ SUBDIR += flvtool++ SUBDIR += fpc-dts SUBDIR += fpc-libvlc + SUBDIR += fswebcam SUBDIR += fxtv SUBDIR += gaupol SUBDIR += gavl diff --git a/multimedia/fswebcam/Makefile b/multimedia/fswebcam/Makefile new file mode 100644 index 000000000000..ca640e247620 --- /dev/null +++ b/multimedia/fswebcam/Makefile @@ -0,0 +1,24 @@ +PORTNAME= fswebcam +PORTVERSION= 20200725 +CATEGORIES= multimedia + +MAINTAINER= madpilot@FreeBSD.org +COMMENT= Small and simple webcam software for *nix +WWW= https://www.sanslogic.co.uk/fswebcam/ + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= v4l_compat>0:multimedia/v4l_compat +LIB_DEPENDS= libgd.so:graphics/gd \ + libv4l2.so:multimedia/libv4l + +USES= localbase:ldflags +USE_GITHUB= yes +GH_ACCOUNT= fsphil +GNU_CONFIGURE= yes + +PLIST_FILES= bin/fswebcam \ + man/man1/fswebcam.1.gz + +.include diff --git a/multimedia/fswebcam/distinfo b/multimedia/fswebcam/distinfo new file mode 100644 index 000000000000..5a26bdceae0e --- /dev/null +++ b/multimedia/fswebcam/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1698870800 +SHA256 (fsphil-fswebcam-20200725_GH0.tar.gz) = d5439b2bf49bb634100d7e42ed9854f84bfd355c1d40bc3d4d81593eeadd8aee +SIZE (fsphil-fswebcam-20200725_GH0.tar.gz) = 119399 diff --git a/multimedia/fswebcam/files/patch-Makefile.in b/multimedia/fswebcam/files/patch-Makefile.in new file mode 100644 index 000000000000..3d02b9496e1a --- /dev/null +++ b/multimedia/fswebcam/files/patch-Makefile.in @@ -0,0 +1,13 @@ +--- Makefile.in.orig 2020-07-25 18:25:51 UTC ++++ Makefile.in +@@ -22,8 +22,8 @@ install: all + 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 ++ ${BSD_INSTALL_PROGRAM} fswebcam ${DESTDIR}${bindir} ++ ${BSD_INSTALL_MAN} fswebcam.1.gz ${DESTDIR}${mandir}/man1 + + fswebcam: $(OBJS) + $(CC) -o fswebcam $(OBJS) $(LDFLAGS) diff --git a/multimedia/fswebcam/files/patch-videodev.h b/multimedia/fswebcam/files/patch-videodev.h new file mode 100644 index 000000000000..129210db5651 --- /dev/null +++ b/multimedia/fswebcam/files/patch-videodev.h @@ -0,0 +1,13 @@ +--- videodev.h.orig 2020-07-25 18:25:51 UTC ++++ videodev.h +@@ -12,8 +12,9 @@ + #ifndef __LINUX_VIDEODEV_H + #define __LINUX_VIDEODEV_H + ++#include + #include +-#include ++/* #include */ + #include + + diff --git a/multimedia/fswebcam/files/patch-videodev2.h b/multimedia/fswebcam/files/patch-videodev2.h new file mode 100644 index 000000000000..e0b7aeb5eb84 --- /dev/null +++ b/multimedia/fswebcam/files/patch-videodev2.h @@ -0,0 +1,12 @@ +--- videodev2.h.orig 2020-07-25 18:25:51 UTC ++++ videodev2.h +@@ -59,7 +59,8 @@ + + #include + +-#include ++/* #include */ ++#include + #include + #include + #include diff --git a/multimedia/fswebcam/pkg-descr b/multimedia/fswebcam/pkg-descr new file mode 100644 index 000000000000..f89dd7c57286 --- /dev/null +++ b/multimedia/fswebcam/pkg-descr @@ -0,0 +1,6 @@ +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.