head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.22
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.20
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.18
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.16
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.14
	pkgsrc-2025Q1-base:1.1
	pkgsrc-2024Q4:1.1.0.12
	pkgsrc-2024Q4-base:1.1
	pkgsrc-2024Q3:1.1.0.10
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.8
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.6
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.4
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.2
	pkgsrc-2023Q3-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2023.07.21.15.54.20;	author hauke;	state Exp;
branches;
next	;
commitid	vk8Yuw1EPntywGxE;


desc
@@


1.1
log
@Add graphics/libimagequant-c v2.18.0

Follow the example of graphics/librsvg{,-c} and re-add the last C
version of imagequant-turned-rust, for the sake of platforms which
cannot reasonably build or run rusted tools for lack of support or
resources.

See also the
<https://mail-index.netbsd.org/pkgsrc-users/2023/06/02/msg037421.html>
thread.
@
text
@# $NetBSD$

DISTNAME=	libimagequant-2.18.0
CATEGORIES=	graphics
MASTER_SITES+=	${MASTER_SITE_GITHUB:=ImageOptim/}
GITHUB_TAG=	${PKGVERSION_NOREV}

MAINTAINER=	pkg-users@@NetBSD.org
HOMEPAGE=	https://pngquant.org/lib/
COMMENT=	Conversion of RGBA images to 8-bit indexed-color (2.x, C-only)
LICENSE=	gnu-gpl-v3

USE_LIBTOOL=		yes
USE_TOOLS+=		bash gmake
HAS_CONFIGURE=		yes
CONFIGURE_ARGS+=	--prefix="${PREFIX}"
BUILD_TARGET=		shared

CONFIG_SHELL=		${BASH}
INSTALLATION_DIRS=	include lib
REPLACE_BASH=		configure

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} == "x86_64"
CONFIGURE_ARGS+=	--enable-sse
.else
CONFIGURE_ARGS+=	--disable-sse
.endif

do-install:
	${INSTALL_DATA} ${WRKSRC}/libimagequant.h \
		${DESTDIR}${PREFIX}/include/libimagequant.h
	${LIBTOOL} --mode=install ${INSTALL_LIB} \
		${WRKSRC}/libimagequant.la ${DESTDIR}${PREFIX}/lib

.include "../../mk/bsd.pkg.mk"
@
