Date: Sun, 13 Sep 2020 05:56:27 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r548452 - in head/graphics: . dssim Message-ID: <202009130556.08D5uRBE072567@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Sun Sep 13 05:56:27 2020 New Revision: 548452 URL: https://svnweb.freebsd.org/changeset/ports/548452 Log: graphics/dssim: add new port This tool computes (dis)similarity between two or more PNG images using an algorithm approximating human vision. Comparison is done in L*a*b* color space (D65 white point, sRGB gamma) using a multi-scale variant of the SSIM algorithm. Features: - Supports alpha channel - Supports gamma correction - No OpenCV or MATLAB needed: - DSSIM version 1.x uses C (C99) and libpng or Cocoa on macOS. - DSSIM version 2.x is easy to build with Rust https://kornel.ski/dssim Added: head/graphics/dssim/ head/graphics/dssim/Makefile (contents, props changed) head/graphics/dssim/distinfo (contents, props changed) head/graphics/dssim/pkg-descr (contents, props changed) head/graphics/dssim/pkg-plist (contents, props changed) Modified: head/graphics/Makefile (contents, props changed) Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Sun Sep 13 05:17:05 2020 (r548451) +++ head/graphics/Makefile Sun Sep 13 05:56:27 2020 (r548452) @@ -141,6 +141,7 @@ SUBDIR += drm-legacy-kmod SUBDIR += drm_info SUBDIR += dspdfviewer + SUBDIR += dssim SUBDIR += duhdraw SUBDIR += dynamechs SUBDIR += ebsynth Added: head/graphics/dssim/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/dssim/Makefile Sun Sep 13 05:56:27 2020 (r548452) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= dssim +DISTVERSION= 1.3.3-15 +DISTVERSIONSUFFIX= -gcb6b383 +CATEGORIES= graphics + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Image similarity comparison simulating human perception + +LICENSE= AGPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libpng.so:graphics/png + +USES= meson pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= kornelski + +OPTIONS_DEFINE= JPEG +OPTIONS_DEFAULT=JPEG + +JPEG_USES= jpeg +JPEG_MESON_ENABLED= jpeg + +post-patch: +# Extract (snapshot) version from the port instead of meson.build + @${REINPLACE_CMD} "/^[[:space:]]*version : /s/'.*'/'${PORTVERSION}'/" \ + ${WRKSRC}/meson.build + +.include <bsd.port.mk> Added: head/graphics/dssim/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/dssim/distinfo Sun Sep 13 05:56:27 2020 (r548452) @@ -0,0 +1,3 @@ +TIMESTAMP = 1599972446 +SHA256 (kornelski-dssim-1.3.3-15-gcb6b383_GH0.tar.gz) = e4e7a89bd0b154e3ca8c54659047b73a696b521a5b127a36f662847d3da4a2be +SIZE (kornelski-dssim-1.3.3-15-gcb6b383_GH0.tar.gz) = 36273 Added: head/graphics/dssim/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/dssim/pkg-descr Sun Sep 13 05:56:27 2020 (r548452) @@ -0,0 +1,12 @@ +This tool computes (dis)similarity between two or more PNG images +using an algorithm approximating human vision. + +Comparison is done in L*a*b* color space (D65 white point, sRGB gamma) +using a multi-scale variant of the SSIM algorithm. + +Features: +- Supports alpha channel +- Supports gamma correction +- No OpenCV or MATLAB needed: uses C (C99) and libpng + +WWW: https://kornel.ski/dssim Added: head/graphics/dssim/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/dssim/pkg-plist Sun Sep 13 05:56:27 2020 (r548452) @@ -0,0 +1,6 @@ +bin/dssim +include/dssim.h +lib/libdssim-lib.so +lib/libdssim-lib.so.1 +lib/libdssim-lib.so.1.1 +libdata/pkgconfig/dssim.pc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009130556.08D5uRBE072567>