git: 23ec359031d8 - main - graphics/libimagequant: Add new port

Wen Heping wen at FreeBSD.org
Thu Sep 30 06:40:41 UTC 2021


The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=23ec359031d8af7a7fc4fec73f4c305f33887fd8

commit 23ec359031d8af7a7fc4fec73f4c305f33887fd8
Author:     Wen Heping <wen at FreeBSD.org>
AuthorDate: 2021-09-30 06:39:39 +0000
Commit:     Wen Heping <wen at FreeBSD.org>
CommitDate: 2021-09-30 06:39:39 +0000

    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
---
 graphics/Makefile                |  1 +
 graphics/libimagequant/Makefile  | 27 +++++++++++++++++++++++++++
 graphics/libimagequant/distinfo  |  3 +++
 graphics/libimagequant/pkg-descr |  4 ++++
 4 files changed, 35 insertions(+)

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 at 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


More information about the dev-commits-ports-all mailing list