aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2021-09-30 06:39:39 +0000
committerWen Heping <wen@FreeBSD.org>2021-09-30 06:39:39 +0000
commit23ec359031d8af7a7fc4fec73f4c305f33887fd8 (patch)
treeb428efaf0876dbd7b2c19386b86c8648cd3d23bb
parent943732cebf3a2f6969204bd0cc2d1f3e343a8795 (diff)
downloadports-23ec359031d8af7a7fc4fec73f4c305f33887fd8.tar.gz
ports-23ec359031d8af7a7fc4fec73f4c305f33887fd8.zip
graphics/libimagequant: Add new port
Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images. It's powering pngquant2. WWW: https://github.com/ImageOptim/libimagequant
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/libimagequant/Makefile27
-rw-r--r--graphics/libimagequant/distinfo3
-rw-r--r--graphics/libimagequant/pkg-descr4
4 files changed, 35 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 0c5d8b4021c5..4b2b744dbc03 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -458,6 +458,7 @@
SUBDIR += libgxps
SUBDIR += libheif
SUBDIR += libimg
+ SUBDIR += libimagequant
SUBDIR += libiptcdata
SUBDIR += libjpeg-turbo
SUBDIR += libjxl
diff --git a/graphics/libimagequant/Makefile b/graphics/libimagequant/Makefile
new file mode 100644
index 000000000000..4c2f1a88204d
--- /dev/null
+++ b/graphics/libimagequant/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= libimagequant
+PORTVERSION= 2.16.0
+CATEGORIES= graphics
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Image Quantization Library
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYRIGHT
+
+BUILD_DEPENDS= bash:shells/bash
+
+USES= gmake localbase
+
+USE_GITHUB= yes
+GH_ACCOUNT= ImageOptim
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+
+PLIST_FILES= include/libimagequant.h \
+ lib/libimagequant.a \
+ lib/libimagequant.so \
+ lib/libimagequant.so.0 \
+ libdata/pkgconfig/imagequant.pc
+
+.include <bsd.port.mk>
diff --git a/graphics/libimagequant/distinfo b/graphics/libimagequant/distinfo
new file mode 100644
index 000000000000..29d77813429f
--- /dev/null
+++ b/graphics/libimagequant/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1632966787
+SHA256 (ImageOptim-libimagequant-2.16.0_GH0.tar.gz) = 360f88a4a85546405e6bec36d403cedfda43e7b8b5ec140216b727a05cd3a8ac
+SIZE (ImageOptim-libimagequant-2.16.0_GH0.tar.gz) = 99275
diff --git a/graphics/libimagequant/pkg-descr b/graphics/libimagequant/pkg-descr
new file mode 100644
index 000000000000..7fcb59d3dedf
--- /dev/null
+++ b/graphics/libimagequant/pkg-descr
@@ -0,0 +1,4 @@
+Small, portable C library for high-quality conversion of RGBA images
+to 8-bit indexed-color (palette) images. It's powering pngquant2.
+
+WWW: https://github.com/ImageOptim/libimagequant