wayland: cross build support.

This commit is contained in:
Juan RP 2013-05-15 11:16:34 +02:00
parent 65809ce0ff
commit a5a0bfbc48

View file

@ -1,7 +1,7 @@
# Template file for 'wayland'. # Template file for 'wayland'.
pkgname=wayland pkgname=wayland
version=1.1.0 version=1.1.0
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-documentation --disable-static" configure_args="--disable-documentation --disable-static"
hostmakedepends="pkg-config flex" hostmakedepends="pkg-config flex"
@ -14,12 +14,20 @@ distfiles="http://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=2ef587cf1a0e52b6dee44eeb9c288110e8180819abf4e419d247dfe234867a5c checksum=2ef587cf1a0e52b6dee44eeb9c288110e8180819abf4e419d247dfe234867a5c
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake libtool wayland-devel"
makedepends+=" libfl-devel" makedepends+=" libfl-devel"
pre_configure() {
autoreconf -fi
}
post_configure() {
# Use host wayland-scanner
sed -e 's,$(AM_V_GEN)$(wayland_scanner),wayland-scanner,g' -i src/Makefile.in
}
fi fi
wayland-devel_package() { wayland-devel_package() {
depends="${sourcepkg}>=${version}" depends="${sourcepkg}>=${version}"
short_desc+=" -- development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
vmove usr/bin vmove usr/bin
vmove usr/include vmove usr/include