head	1.24;
access;
symbols
	pkgsrc-2026Q3:1.21.0.2
	pkgsrc-2026Q3-base:1.21
	pkgsrc-2026Q2:1.19.0.2
	pkgsrc-2026Q2-base:1.19
	pkgsrc-2026Q1:1.17.0.2
	pkgsrc-2026Q1-base:1.17
	pkgsrc-2025Q4:1.14.0.2
	pkgsrc-2025Q4-base:1.14
	pkgsrc-2025Q3:1.12.0.2
	pkgsrc-2025Q3-base:1.12
	pkgsrc-2025Q2:1.9.0.2
	pkgsrc-2025Q2-base:1.9
	pkgsrc-2025Q1:1.6.0.2
	pkgsrc-2025Q1-base:1.6
	pkgsrc-2024Q4:1.5.0.2
	pkgsrc-2024Q4-base:1.5;
locks; strict;
comment	@# @;


1.24
date	2026.09.29.06.05.33;	author wiz;	state Exp;
branches;
next	1.23;
commitid	qal4xgy1mkCzPtXG;

1.23
date	2026.09.27.11.36.38;	author tnn;	state Exp;
branches;
next	1.22;
commitid	QJQtnAYom0oZIfXG;

1.22
date	2026.09.24.19.29.29;	author ktnb;	state Exp;
branches;
next	1.21;
commitid	lsBFGS8kcUHjsUWG;

1.21
date	2026.09.02.19.02.32;	author wiz;	state Exp;
branches;
next	1.20;
commitid	vXszxoxOqka005UG;

1.20
date	2026.07.21.16.08.38;	author wiz;	state Exp;
branches;
next	1.19;
commitid	GC4dhj0yFncSqxOG;

1.19
date	2026.05.01.14.24.13;	author ktnb;	state Exp;
branches;
next	1.18;
commitid	kwAbuU58AZTys7EG;

1.18
date	2026.04.20.18.14.06;	author adam;	state Exp;
branches;
next	1.17;
commitid	1UcBUbNUfJIk5JCG;

1.17
date	2026.02.09.14.12.39;	author ktnb;	state Exp;
branches;
next	1.16;
commitid	47I4eOG94FR00ItG;

1.16
date	2026.01.27.08.39.37;	author wiz;	state Exp;
branches;
next	1.15;
commitid	f4MYtJVcsY7dz0sG;

1.15
date	2026.01.07.08.47.15;	author wiz;	state Exp;
branches;
next	1.14;
commitid	1wQ3ICD8eebefrpG;

1.14
date	2025.11.10.02.43.14;	author ktnb;	state Exp;
branches;
next	1.13;
commitid	H4p5rGwxPPgR6XhG;

1.13
date	2025.10.23.20.37.24;	author wiz;	state Exp;
branches;
next	1.12;
commitid	1V2hBZn9ypXaCJfG;

1.12
date	2025.08.30.22.45.15;	author wiz;	state Exp;
branches;
next	1.11;
commitid	2izPxU30rhec4O8G;

1.11
date	2025.07.07.12.40.14;	author ktnb;	state Exp;
branches;
next	1.10;
commitid	hN4QD1fji6YLsO1G;

1.10
date	2025.06.30.11.11.43;	author ktnb;	state Exp;
branches;
next	1.9;
commitid	b6ydhGcDtQemcU0G;

1.9
date	2025.05.19.14.14.03;	author ktnb;	state Exp;
branches;
next	1.8;
commitid	qa0gNygekJoBywVF;

1.8
date	2025.04.24.14.14.13;	author wiz;	state Exp;
branches;
next	1.7;
commitid	A3VBjL8Zdd4LljSF;

1.7
date	2025.04.17.21.50.59;	author wiz;	state Exp;
branches;
next	1.6;
commitid	xcIXAVA292fk6sRF;

1.6
date	2024.12.27.08.19.52;	author wiz;	state Exp;
branches;
next	1.5;
commitid	tLKuqVS8lkJCb7DF;

1.5
date	2024.11.14.22.20.04;	author wiz;	state Exp;
branches;
next	1.4;
commitid	JmuDYqwL4erbdFxF;

1.4
date	2024.11.07.14.39.28;	author ktnb;	state Exp;
branches;
next	1.3;
commitid	ipjLtuBZWByXTIwF;

1.3
date	2024.11.01.12.52.49;	author wiz;	state Exp;
branches;
next	1.2;
commitid	QB4Wk02mZPuBuWvF;

1.2
date	2024.11.01.00.52.03;	author wiz;	state Exp;
branches;
next	1.1;
commitid	QT27BdVP362gvSvF;

1.1
date	2024.10.09.14.05.55;	author ktnb;	state Exp;
branches;
next	;
commitid	IJJaaXtr6KPeEZsF;


desc
@@


1.24
log
@*: recursive bump for pcre2 10.49
@
text
@# $NetBSD: Makefile,v 1.23 2026/09/27 11:36:38 tnn Exp $

DISTNAME=	chafa-1.18.3
PKGREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_GITHUB:=hpjansson/}
GITHUB_TAG=	${PKGVERSION_NOREV}

MAINTAINER=	ktnb@@NetBSD.org
HOMEPAGE=	https://github.com/hpjansson/chafa/
COMMENT=	Command-line utility for displaying images in a terminal
LICENSE=	gnu-gpl-v3

USE_TOOLS+=	pkg-config autoconf automake gmake
GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes

PKGCONFIG_OVERRIDE+=	chafa.pc.in

pre-configure:
	cd ${WRKSRC} && sh autogen.sh ${CONFIGURE_ARGS}

.include "../../devel/glib2/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/libheif/buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.23
log
@*: revbump for pcre2 symbol versioning change
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2026/09/24 19:29:29 ktnb Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.22
log
@chafa: update to 1.18.3

- Sixels are no longer used inside tmux when the outer terminal can't
  display them.
- Padding and fully transparent areas revealed by alpha thresholding
  are now correctly painted in the flat background color instead of
  the closest match
- CLI: Hang when `--files` was used and standard input was a pipe.
- CLI: Potential busy-wait for a complete token from a file list.
- CLI: TIFF images decoded with wrong channel order on big-endian.
- CLI: Integer overflow in image loader size arithmetic
- CLI: Unbounded allocation decoding GIF frames larger than the
  file's logical extent.
- OOB read one entry past the end of the palette color table.
- Double free of the pixel canvas after `chafa_canvas_new_similar()`.
- Spurious pen added to palettes with fewer than 255 colors.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2026/09/02 19:02:32 wiz Exp $
d4 1
@


1.21
log
@*: recursive bump for pcre2 10.48
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2026/07/21 16:08:38 wiz Exp $
d3 1
a3 2
DISTNAME=	chafa-1.18.2
PKGREVISION=	1
@


1.20
log
@chafa: needs GNU make

Otherwise:

gcc -std=gnu23 -E -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/libxml2 -CC  -o chafa-term-seq-doc.h
gcc: fatal error: no input files
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2026/05/01 14:24:13 ktnb Exp $
d4 1
@


1.19
log
@chafa: update to 1.18.2

- Support BigTIFF images
- Integer overflow and OOB write with big output size (@@Captainjack-kor).
- OOB write in symbol-mode Floyd-Steinberg dithering.
- CLI: Incomplete sanitization of filenames printed to terminal.
- CLI: Integer overflow in XWD header validation.
- CLI: Pointer arithmetic past end of GIF file allocation.
- OOB reading canvas cell colors in FGBG mode.
-  Compiler warnings from headers with C99 and -Wpedantic.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2026/04/20 18:14:06 adam Exp $
d13 1
a13 1
USE_TOOLS+=	pkg-config autoconf automake
@


1.18
log
@revbump for x265
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2026/02/09 14:12:39 ktnb Exp $
d3 1
a3 2
DISTNAME=	chafa-1.18.1
PKGREVISION=	1
@


1.17
log
@chafa: update to 1.18.1

- New option: `--probe-mode=[any|ctty|stdio]`. This specifies whether
  to probe the terminal through stdio or ctty (usually `/dev/tty`).
  Defaults to `any`, which will probe stdio if it looks like a tty,
  otherwise the ctty. This allows the terminal to be probed when I/O
  is redirected
- We now try harder to restore the terminal to a usable state after
  `SIGINT` is received, even if we couldn't do a clean exit in a
  reasonable time frame
- Bash completions were added and zsh completions updated
- Improved compatibility for the Kitty protocol
- Bug fixes:
  - Test failure on sparc64
  - Test failure on i386
  - Bad console modes on win32 after exit
  - Stalling on closed output pipe on OpenBSD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2026/01/27 08:39:37 wiz Exp $
d4 1
@


1.16
log
@*: recursive bump for removal of cairo's xcb option
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2026/01/07 08:47:15 wiz Exp $
d3 1
a3 2
DISTNAME=	chafa-1.18.0
PKGREVISION=	2
@


1.15
log
@*: recursive bump for icu 78.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2025/11/10 02:43:14 ktnb Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.14
log
@chafa: update to 1.18.0

Added:
- New options: `--files=FNAME` and `--files0=FNAME`. These allow
  reading lists of input files from a file or standard input. Paths
  can be separated by newlines or a zero byte (`--files0`). These
  options can be specified multiple times.
- New option: `--link=[auto|on|off]`. When used with `--label`,
  this controls whether each label should be an `OSC 8`-style
  hyperlink to its input file.
- Multiple files can now be decoded in parallel.
- ConHost support was removed due to incompleteness and lack of
  interest.
- Added support for CoreGraphics loaders on MacOS.
- Added support for HEIF files on all platforms.
- Improved detection of ghostty inside tmux.
- Added support for GNU/Hurd console.

Bugs Fixed:
- Don't leave stdin in non-blocking mode.
- Use glibtoolize when libtoolize is unavailable (@@saitoha).
- GNU/Hurd: Don't stall if pipe is closed on remote end.
- _mm_empty() not always called immediately after MMX use.
- FP division by zero possible in sixel palette generation.
- Don't wait for response if probing is unsupported.
- Wrong exit code returned on some failures.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2025/10/23 20:37:24 wiz Exp $
d4 1
@


1.13
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2025/08/30 22:45:15 wiz Exp $
d3 1
a3 2
DISTNAME=	chafa-1.16.2
PKGREVISION=	2
d24 1
d26 1
a27 1
.include "../../graphics/libwebp/buildlink3.mk"
@


1.12
log
@*: recursive bump for tiff growing lerc dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2025/07/07 12:40:14 ktnb Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.11
log
@chafa: update to 1.16.2

Bugs fixed:
- SVG scaling seems to be done after bitmap conversion
- Assert when using `chafa_canvas_draw_all_pixels()` with Kitty
  passthrough
- Hangs when running with closed stdin
- Potential overrun when output dimension is exactly 1 pixel.
- Small memory leak on failed load in the grid layout.
- Occasional warnings from JPEG loader that should not be printed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2025/06/30 11:11:43 ktnb Exp $
d4 1
@


1.10
log
@chafa: update to 1.16.1

- Release tarball missing Fish completion
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2025/05/19 14:14:03 ktnb Exp $
d3 1
a3 1
DISTNAME=	chafa-1.16.1
@


1.9
log
@chafa: update to 1.16.0

- Added terminal probing.
- I/O is now threaded.
- New option: --grid=WxH, --grid=[auto|on|off] or -g
  This lays out multiple images in a grid for easy browsing.
- New option: --label=[on|off] or -l.
  Labels each image with its filename.
- New option: --probe=[auto|on|off].
  Controls whether to actively probe the terminal.
- Sixel quality improved significantly.
- The new blue noise dithering is also available in symbols mode,
  and can be turned on with --dither noise. It can be turned off
  with --dither none.
- Numerous small improvements were made to sixel handling.
- Added completions for the fish shell and updated those for zsh.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2025/04/24 14:14:13 wiz Exp $
d3 1
a3 1
DISTNAME=	chafa-1.16.0
@


1.8
log
@*: recursive bump for jpeg -> libjpeg-turbo switch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2025/04/17 21:50:59 wiz Exp $
d3 1
a3 2
DISTNAME=	chafa-1.14.5
PKGREVISION=	4
@


1.7
log
@*: recursive bump for icu 77 and libxml2 2.14
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2024/12/27 08:19:52 wiz Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.6
log
@*: recursive bump for pango requiring fontconfig 2.15
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2024/11/14 22:20:04 wiz Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.5
log
@*: recursive bump for icu 76 shlib major version bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2024/11/07 14:39:28 ktnb Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.4
log
@chafa: update to 1.14.5

- Improve sixel and general terminal support inside tmux
- Support JPEGs with CMYK color space
- Fix --font-ratio doing nothing
- Ensure CLI tool gets linked with libm
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2024/11/01 12:52:49 wiz Exp $
d4 1
@


1.3
log
@*: revbump for icu downgrade
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2024/11/01 00:52:03 wiz Exp $
d3 1
a3 2
DISTNAME=	chafa-1.14.4
PKGREVISION=	2
@


1.2
log
@*: recursive bump for icu 76.1 shlib bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2024/10/09 14:05:55 ktnb Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.1
log
@Chafa is a command-line utility that converts image data, including
animated GIFs, into graphics formats or ANSI/Unicode character art
suitable for display in a terminal. It has broad feature support,
allowing it to be used on devices ranging from historical
teleprinters to modern terminal emulators and everything in between.
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
@

