2012-11-20 13:27:26 +00:00
|
|
|
# Template file for 'weston'.
|
|
|
|
pkgname=weston
|
2014-05-21 06:16:51 +00:00
|
|
|
version=1.5.0
|
2014-05-21 06:36:34 +00:00
|
|
|
revision=2
|
2012-11-20 13:27:26 +00:00
|
|
|
build_style=gnu-configure
|
2014-05-21 06:16:51 +00:00
|
|
|
configure_args="--enable-screen-sharing --enable-libinput-backend"
|
2012-11-20 13:27:26 +00:00
|
|
|
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"
|
2014-05-21 06:16:51 +00:00
|
|
|
checksum=06388ba04ac79aa72d685cc1a8e646ddb2b8cfe11fcc742294f9addac48b7684
|
2013-04-06 09:40:02 +00:00
|
|
|
|
2014-01-24 13:48:36 +00:00
|
|
|
hostmakedepends="pkg-config wayland-devel>=${version}"
|
2014-05-20 12:06:59 +00:00
|
|
|
makedepends="libpng-devel>=1.6 wayland-devel>=${version} libxkbcommon-devel
|
2014-02-10 21:39:01 +00:00
|
|
|
pixman-devel pango-devel cairo-devel>=1.12.14_5 mtdev-devel libwebp-devel>=0.4.0
|
2014-05-21 06:16:51 +00:00
|
|
|
poppler-glib-devel pam-devel lcms2-devel libudev-devel libdrm-devel libinput-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
# cairo built with gles2 option.
|
|
|
|
depends="cairo>=1.12.14_5"
|
2014-03-29 16:09:55 +00:00
|
|
|
lib32disabled=yes
|
2013-07-14 08:01:51 +00:00
|
|
|
|
2014-02-10 21:39:01 +00:00
|
|
|
# Package build options
|
2014-05-21 06:36:34 +00:00
|
|
|
build_options="backtrace colord dbus rdp systemd vaapi x11"
|
2014-05-21 06:16:51 +00:00
|
|
|
build_options_default="backtrace colord dbus systemd x11"
|
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
build_options_default+=" vaapi"
|
|
|
|
fi
|
2014-05-20 12:08:04 +00:00
|
|
|
|
2014-02-10 21:39:01 +00:00
|
|
|
desc_option_backtrace="Enable support for backtraces via libunwind"
|
|
|
|
desc_option_colord="Enable support for colord"
|
|
|
|
desc_option_dbus="Enable support for D-BUS"
|
2014-05-21 06:16:51 +00:00
|
|
|
desc_option_rdp="Enable support for the RDP compositor"
|
2014-05-20 12:06:59 +00:00
|
|
|
desc_option_systemd="Enable support for systemd"
|
2014-02-10 21:39:01 +00:00
|
|
|
desc_option_vaapi="Enable support for VA-API H.264 recording"
|
|
|
|
desc_option_x11="Enable support for X11 (xwayland)"
|
|
|
|
|
|
|
|
if [ "$build_option_backtrace" ]; then
|
|
|
|
configure_args+=" --enable-libunwind"
|
|
|
|
makedepends+=" libunwind-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-libunwind"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_colord" ]; then
|
|
|
|
configure_args+=" --enable-colord"
|
|
|
|
makedepends+=" colord-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-colord"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_dbus" ]; then
|
|
|
|
configure_args+=" --enable-dbus"
|
|
|
|
makedepends+=" dbus-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-dbus"
|
|
|
|
fi
|
|
|
|
|
2014-05-21 06:16:51 +00:00
|
|
|
if [ "$build_option_rdp" ]; then
|
|
|
|
configure_args+=" --enable-rdp-compositor"
|
|
|
|
makedepends+=" freerdp-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-rdp-compositor"
|
|
|
|
fi
|
|
|
|
|
2014-05-20 12:06:59 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
makedepends+=" systemd-devel"
|
|
|
|
fi
|
|
|
|
|
2014-02-10 21:39:01 +00:00
|
|
|
if [ "$build_option_vaapi" ]; then
|
|
|
|
configure_args+=" --enable-vaapi-recorder"
|
|
|
|
makedepends+=" libva-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-vaapi-recorder"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_x11" ]; then
|
|
|
|
configure_args+=" --enable-x11-compositor --enable-xwayland"
|
|
|
|
makedepends+=" libxcb-devel libXcursor-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-x11-compositor --disable-xwayland --disable-xwayland-test"
|
|
|
|
fi
|
|
|
|
|
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.
|
2014-05-21 06:16:51 +00:00
|
|
|
configure_args+=" --disable-drm-compositor
|
2013-07-14 08:01:51 +00:00
|
|
|
--disable-wayland-compositor --disable-simple-egl-clients
|
2014-05-21 06:16:51 +00:00
|
|
|
--disable-fbdev-compositor --disable-egl
|
|
|
|
--disable-setuid-install --disable-resize-optimization
|
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)
|
2014-02-10 21:39:01 +00:00
|
|
|
makedepends+=" glu-devel"
|
|
|
|
configure_args+=" --with-cairo-glesv2"
|
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
|
|
|
}
|