summaryrefslogtreecommitdiff
path: root/graphics/chafa/Makefile
blob: 50912251819eb50fcb908f7807bf192ff48b2859 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
PORTNAME=	chafa
DISTVERSION=	1.14.1
CATEGORIES=	graphics
MASTER_SITES=	https://hpjansson.org/chafa/releases/ \
		https://github.com/hpjansson/chafa/releases/download/${PORTVERSION}/

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Character art facsimile generator
WWW=		https://hpjansson.org/chafa/

LICENSE=	GPLv3 LGPL3+
LICENSE_COMB=	multi
LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING
LICENSE_FILE_LGPL3+ =	${WRKSRC}/COPYING.LESSER

LIB_DEPENDS=	libavif.so:graphics/libavif \
		libfreetype.so:print/freetype2 \
		libjxl_threads.so:graphics/libjxl \
		libtiff.so:graphics/tiff \
		libwebpdemux.so:graphics/webp

USES=		cpe gettext-runtime gnome jpeg libtool magick:7 tar:xz
CPE_VENDOR=	chafa_project
USE_GNOME=	cairo gdkpixbuf2 glib20 librsvg2
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-html-dir=${DOCSDIR}/html

# https://github.com/hpjansson/chafa/issues/152
CONFIGURE_ENV+=	WEBP_CFLAGS='-lwebp'

INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

# Remove when releng/13.2 is EoL
.if ${OSVERSION} < 1303001 && ${ARCH} == "i386"
BROKEN=		error: libchafa.so: undefined reference to _mm_extract_epi64
.endif

post-install:
	${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 \
		${STAGEDIR}${PREFIX}/share/man/man1

.include <bsd.port.mk>