2012-11-20 13:27:26 +00:00
|
|
|
# Template file for 'weston'.
|
|
|
|
pkgname=weston
|
2013-11-03 06:31:02 +00:00
|
|
|
version=1.3.1
|
2013-12-18 16:20:06 +00:00
|
|
|
revision=2
|
2012-11-20 13:27:26 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
short_desc="Reference implementation of a Wayland compositor"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://wayland.freedesktop.org/"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="http://wayland.freedesktop.org/releases/${pkgname}-${version}.tar.xz"
|
2013-11-03 06:31:02 +00:00
|
|
|
checksum=f7141334b141ae1a6435bd03bfdb01b7fb628f39259164f201e7e71c8d815bc7
|
2013-04-06 09:40:02 +00:00
|
|
|
|
2013-11-03 06:31:02 +00:00
|
|
|
hostmakedepends="pkg-config wayland-devel"
|
2013-11-03 06:32:21 +00:00
|
|
|
makedepends="libpng-devel>=1.6 wayland-devel libxkbcommon-devel
|
2013-07-14 08:01:51 +00:00
|
|
|
libxcb-devel>=1.9.1 xcb-util-keysyms-devel pixman-devel pango-devel
|
2013-04-06 09:40:02 +00:00
|
|
|
cairo-devel>=1.12.14_5 mtdev-devel libwebp-devel poppler-glib-devel pam-devel
|
2013-12-18 16:20:06 +00:00
|
|
|
systemd-devel libunwind-devel lcms2-devel libudev-devel libdrm-devel"
|
2013-07-14 08:01:51 +00:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv6l) # Assume RPi for now.
|
2013-10-20 04:35:39 +00:00
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include"
|
2013-07-14 08:01:51 +00:00
|
|
|
makedepends+=" rpi-firmware rpi-firmware-pcfiles"
|
|
|
|
# Just enable the RPi compositor.
|
|
|
|
configure_args+=" --disable-x11-compositor --disable-drm-compositor
|
|
|
|
--disable-wayland-compositor --disable-simple-egl-clients
|
|
|
|
--disable-fbdev-compositor --disable-egl --disable-colord
|
|
|
|
--disable-resize-optimization --disable-xwayland-test
|
|
|
|
--disable-setuid-install --disable-xwayland
|
2013-12-18 16:20:06 +00:00
|
|
|
--enable-weston-launch WESTON_NATIVE_BACKEND=rpi-backend.so"
|
2013-07-14 08:01:51 +00:00
|
|
|
;;
|
|
|
|
x86_64|i686)
|
2013-10-20 04:35:39 +00:00
|
|
|
makedepends+=" libXcursor-devel colord-devel glu-devel libva-devel"
|
|
|
|
configure_args+=" --with-cairo-glesv2 --enable-demo-clients --enable-vaapi-recorder"
|
2013-07-14 08:01:51 +00:00
|
|
|
;;
|
|
|
|
esac
|
2013-02-15 13:28:31 +00:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall COPYING 644 usr/share/license/$pkgname
|
2013-06-07 16:05:57 +00:00
|
|
|
# Remove development files.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/pkgconfig
|
2013-02-15 13:28:31 +00:00
|
|
|
}
|
2013-04-14 15:36:49 +00:00
|
|
|
|
|
|
|
weston_package() {
|
|
|
|
# cairo built with gles2 option.
|
2013-11-03 06:31:02 +00:00
|
|
|
depends="cairo>=1.12.14_5"
|
2013-04-14 15:36:49 +00:00
|
|
|
pkg_install() {
|
2013-04-27 03:27:59 +00:00
|
|
|
vmove all
|
2013-04-14 15:36:49 +00:00
|
|
|
}
|
|
|
|
}
|