void-packages/srcpkgs/wayland/template
Alessio Sergi 8f823d2c52 wayland: avoid conflict with libwayland-egl/MesaLib-devel
This just a temporary workaround:
"libwayland-egl is now part of libwayland, and will presumably be removed
from mesa in the not too distant future."

See https://lists.freedesktop.org/archives/wayland-devel/2018-April/037767.html.
2018-05-07 19:57:25 +02:00

46 lines
1.2 KiB
Bash

# Template file for 'wayland'.
pkgname=wayland
version=1.15.0
revision=3
build_style=gnu-configure
configure_args="--disable-documentation --disable-static"
hostmakedepends="automake flex libtool pkg-config"
makedepends="expat-devel libffi-devel libfl-devel libxml2-devel"
short_desc="Wayland protocol compositor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://wayland.freedesktop.org/"
distfiles="http://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=eb3fbebb8559d56a80ad3753ec3db800f587329067962dbf65e14488b4b7aeb0
pre_configure() {
autoreconf -fi
}
post_install() {
# avoid conflict with libGLs libwayland-egl/MesaLib-devel
rm -f ${DESTDIR}/usr/lib/libwayland-egl.so*
rm -f ${DESTDIR}/usr/lib/pkgconfig/wayland-egl.pc
vlicense COPYING
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wayland-devel"
post_configure() {
# Use host wayland-scanner
sed -e '/$(AM_V_GEN)/s,$(wayland_scanner),wayland-scanner,g' -i Makefile.in
}
fi
wayland-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/share/aclocal
vmove usr/share/wayland
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}