void-packages/srcpkgs/wayland/template
2013-08-23 11:06:33 +02:00

44 lines
1.1 KiB
Text

# Template file for 'wayland'.
pkgname=wayland
version=1.2.1
revision=1
build_style=gnu-configure
configure_args="--disable-documentation --disable-static"
hostmakedepends="pkg-config flex"
makedepends="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=78062e2b081731d96de6a514a91322ad6e7cf6cacfa9c32997bbb3ad6e7f166f
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake libtool wayland-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
wayland-devel_package() {
depends="${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
wayland_package() {
pkg_install() {
vmove usr
}
}