Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 2021 06:40:40 GMT
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 23ec359031d8 - main - graphics/libimagequant: Add new port
Message-ID:  <202109300640.18U6eeOt061541@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wen:

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

commit 23ec359031d8af7a7fc4fec73f4c305f33887fd8
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2021-09-30 06:39:39 +0000
Commit:     Wen Heping <wen@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109300640.18U6eeOt061541>