PORTNAME=	pixman
PORTVERSION=	0.46.4
CATEGORIES=	graphics
MASTER_SITES=	https://xorg.freedesktop.org/releases/individual/lib/
DISTFILES=	pixman-${PORTVERSION}.tar.xz

SOURCE_DIR=	${WRKSRC}/pixman-${PORTVERSION}
BUILD_STYLE=	meson
CONFIGURE_ARGS=	-Dlibpng=disabled -Dtests=disabled -Ddemos=disabled

do-install:
	env DESTDIR="${STAGEDIR}" ${NINJA} -C "${BUILD_DIR}" install
	mkdir -p "${STAGEDIR}${PREFIX}/share/licenses/pixman"
	install -m 0644 "${SOURCE_DIR}/COPYING" \
	    "${STAGEDIR}${PREFIX}/share/licenses/pixman/COPYING"

.include "${.PARSEDIR}/../../Mk/mouse.port.mk"
