void-packages/srcpkgs/wayland/template

38 lines
1013 B
Plaintext

# Template file for 'wayland'.
pkgname=wayland
version=1.4.0
revision=1
build_style=gnu-configure
configure_args="--disable-documentation --disable-static"
hostmakedepends="pkg-config flex"
makedepends="libfl-devel libffi-devel expat-devel"
short_desc="Wayland protocol compositor"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://wayland.freedesktop.org/"
license="MIT"
distfiles="http://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=18f33b9f15b4c8b662fb1968e7636e7926b419dfc48de8a164b3a3d7095c5a58
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libtool wayland-devel"
pre_configure() {
libtoolize -f
}
post_configure() {
# Use host wayland-scanner
sed -e 's,$(AM_V_GEN)$(wayland_scanner),wayland-scanner,g' -i src/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
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}