pixman: clean up template

This commit is contained in:
q66 2021-11-07 20:11:33 +01:00
parent 495fcab1bb
commit 5057d87292

View file

@ -4,9 +4,11 @@ version=0.40.0
revision=1
build_style=meson
# gtk is only necessary for demos, disabled to avoid dependency loop
configure_args="-Dgtk=disabled -Dgnu-inline-asm=enabled -Diwmmxt=disabled"
# openmp is only used in demos and tests, and things still test without it
configure_args="-Dtests=enabled -Dgnu-inline-asm=enabled -Dlibpng=enabled
-Diwmmxt=disabled -Dopenmp=disabled -Dgtk=disabled"
hostmakedepends="pkg-config perl"
checkdepends="libpng-devel libgomp-devel"
makedepends="libpng-devel"
short_desc="Library of low-level pixel manipulation routines"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
@ -17,16 +19,6 @@ checksum=6d200dec3740d9ec4ec8d1180e25779c00bc749f94278c8b9021f5534db223fc
# set stacksize for musl: https://gitlab.gnome.org/GNOME/librsvg/-/issues/595
LDFLAGS="-Wl,-z,stack-size=2097152"
if [ "$XBPS_CHECK_PKGS" ]; then
# libpng and openmp are used only for testing; the make-blue-noise.c file isn't built
# https://gitlab.freedesktop.org/pixman/pixman/-/blob/9b49f4e08751885289333fed652bf5e0f45976b4/pixman/dither/make-blue-noise.c
configure_args+=" -Dtests=enabled -Dlibpng=enabled -Dopenmp=enabled"
else
# dynamic libgomp is available only when running tests, better to disable explicitly.
# -Dtests will only take effect on the next release.
configure_args+=" -Dtests=disabled -Dopenmp=disabled"
fi
post_install() {
vlicense COPYING LICENSE
}