package cairo {
	description = "a 2D graphics library with support for multiple output devices";
	website = "https://www.cairographics.org";
	anitya = 247;

	version# = "1.18.4";
	source = remoteGitLab {
		domain = "gitlab.freedesktop.org";
		suffix = "cairo/cairo";
		ref = version;
		checksum = "_Ztw0ttmYLIiElqS27x2Iu4EneXOMNHp2or6bJA6suLeF3NRvORzUMPPQy9Wr5gT";
	};

	exec = meson {
		setup = {
			"dwrite": "enabled";
			"fontconfig": "enabled";
			"freetype": "enabled";

			"png": "enabled";
			"tee": "enabled";
			"xcb": "enabled";
			"xlib": "disabled";
			"xlib-xcb": "disabled";
			"zlib": "enabled";
		};
		// runs the entire test suite in a single meson test
		interactiveTest = true;
		// only works with specific dependency versions
		test = false;
	};

	inputs = [
		awk,

		zlib,
		libpng,
		fontconfig,
		freetype,
		pixman,
		xcb,
	];

	runtime = [
		zlib,
		libpng,
		fontconfig,
		freetype,
		pixman,
		xcb,
	];
}
