graphics/R-cran-webp: new port

Lossless webp images are 26% smaller in size compared to PNG. Lossy webp images
are 25-34% smaller in size compared to JPEG. This package reads and writes webp
images into a 3 (rgb) or 4 (rgba) channel bitmap array using conventions from
the 'jpeg' and 'png' packages.
This commit is contained in:
Zsolt Udvari 2025-03-04 15:53:35 +01:00
parent d66f9ab037
commit deb4c9731f
4 changed files with 27 additions and 0 deletions

View file

@ -38,6 +38,7 @@
SUBDIR += R-cran-viridis
SUBDIR += R-cran-viridisLite
SUBDIR += R-cran-visNetwork
SUBDIR += R-cran-webp
SUBDIR += SciPlot
SUBDIR += a2png
SUBDIR += aalib

View file

@ -0,0 +1,19 @@
PORTNAME= webp
DISTVERSION= 1.3.0
CATEGORIES= graphics
DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= uzsolt@FreeBSD.org
COMMENT= Reads and writes webp images
WWW= https://cran.r-project.org/package=webp
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libwebp.so:graphics/webp
TEST_DEPENDS= R-cran-jpeg>0:graphics/R-cran-jpeg \
R-cran-png>0:graphics/R-cran-png
USES= cran:auto-plist,compiles
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1741071412
SHA256 (webp_1.3.0.tar.gz) = 3addb4ad61f1297372391c2d8fbb81f78d9c080f31bcecc70739145b271aa23e
SIZE (webp_1.3.0.tar.gz) = 17501

View file

@ -0,0 +1,4 @@
Lossless webp images are 26% smaller in size compared to PNG. Lossy webp images
are 25-34% smaller in size compared to JPEG. This package reads and writes webp
images into a 3 (rgb) or 4 (rgba) channel bitmap array using conventions from
the 'jpeg' and 'png' packages.