git: deb4c9731f71 - main - graphics/R-cran-webp: new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Mar 2025 14:54:27 UTC
The branch main has been updated by uzsolt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=deb4c9731f7119695b82fa2b1dc8736f9cad263c
commit deb4c9731f7119695b82fa2b1dc8736f9cad263c
Author: Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2025-03-04 14:53:35 +0000
Commit: Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-03-04 14:53:35 +0000
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.
---
graphics/Makefile | 1 +
graphics/R-cran-webp/Makefile | 19 +++++++++++++++++++
graphics/R-cran-webp/distinfo | 3 +++
graphics/R-cran-webp/pkg-descr | 4 ++++
4 files changed, 27 insertions(+)
diff --git a/graphics/Makefile b/graphics/Makefile
index f08b675dc60d..4c680e5ead76 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -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
diff --git a/graphics/R-cran-webp/Makefile b/graphics/R-cran-webp/Makefile
new file mode 100644
index 000000000000..a5e580042c83
--- /dev/null
+++ b/graphics/R-cran-webp/Makefile
@@ -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>
diff --git a/graphics/R-cran-webp/distinfo b/graphics/R-cran-webp/distinfo
new file mode 100644
index 000000000000..f4d4afa47029
--- /dev/null
+++ b/graphics/R-cran-webp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1741071412
+SHA256 (webp_1.3.0.tar.gz) = 3addb4ad61f1297372391c2d8fbb81f78d9c080f31bcecc70739145b271aa23e
+SIZE (webp_1.3.0.tar.gz) = 17501
diff --git a/graphics/R-cran-webp/pkg-descr b/graphics/R-cran-webp/pkg-descr
new file mode 100644
index 000000000000..65192dcf0db0
--- /dev/null
+++ b/graphics/R-cran-webp/pkg-descr
@@ -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.