wayland: use --with-host-scanner instead of modifying Makefile.in

more robust to use upstream supported options than modifying the build
system.
This commit is contained in:
maxice8 2018-07-18 10:27:36 -03:00
parent fddeec8117
commit 07a6e57247

View File

@ -4,7 +4,7 @@ version=1.15.0
revision=4
build_style=gnu-configure
configure_args="--disable-documentation --disable-static"
hostmakedepends="automake flex libtool pkg-config"
hostmakedepends="flex pkg-config"
makedepends="expat-devel libffi-devel libfl-devel libxml2-devel"
short_desc="Wayland protocol compositor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -13,20 +13,13 @@ homepage="https://wayland.freedesktop.org/"
distfiles="https://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=eb3fbebb8559d56a80ad3753ec3db800f587329067962dbf65e14488b4b7aeb0
pre_configure() {
autoreconf -fi
}
post_install() {
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
}
configure_args+=" --with-host-scanner"
fi
wayland-devel_package() {