2012-11-20 14:27:26 +01:00
|
|
|
# Template file for 'weston'.
|
|
|
|
pkgname=weston
|
2014-09-19 16:01:21 +02:00
|
|
|
version=1.6.0
|
|
|
|
revision=1
|
2012-11-20 14:27:26 +01:00
|
|
|
build_style=gnu-configure
|
2014-05-22 09:44:34 +02:00
|
|
|
# XXX enable rdp compositor if freerdp is updated to >=1.1.
|
|
|
|
configure_args="--enable-libinput-backend
|
|
|
|
--enable-colord --enable-x11-compositor --enable-xwayland"
|
2012-11-20 14:27:26 +01: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-09-19 16:01:21 +02:00
|
|
|
checksum=dc3ea5d13bbf025fabc006216c5ddc0d80d5f4ebe778912b8c4d1d4acaaa614d
|
2013-04-06 11:40:02 +02:00
|
|
|
|
2014-09-05 01:43:57 +02:00
|
|
|
lib32disabled=yes
|
2014-08-09 13:00:35 +02:00
|
|
|
hostmakedepends="pkg-config wayland-devel>=${version} autoconf automake libtool"
|
2014-05-20 14:06:59 +02:00
|
|
|
makedepends="libpng-devel>=1.6 wayland-devel>=${version} libxkbcommon-devel
|
2014-09-05 01:43:57 +02:00
|
|
|
pixman-devel pango-devel cairo-devel mtdev-devel libwebp-devel>=0.4.0
|
2014-05-22 09:44:34 +02:00
|
|
|
poppler-glib-devel pam-devel lcms2-devel libudev-devel libdrm-devel
|
2014-09-19 16:01:21 +02:00
|
|
|
libinput-devel>=0.6.0 libxcb-devel libXcursor-devel colord-devel"
|
2014-05-22 09:44:34 +02:00
|
|
|
|
2014-02-10 22:39:01 +01:00
|
|
|
# Package build options
|
2014-05-22 09:44:34 +02:00
|
|
|
build_options="backtrace dbus systemd vaapi"
|
2014-07-28 17:26:47 +02:00
|
|
|
build_options_default="backtrace dbus"
|
2014-05-21 08:16:51 +02:00
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
build_options_default+=" vaapi"
|
|
|
|
fi
|
2014-05-20 14:08:04 +02:00
|
|
|
|
2014-02-10 22:39:01 +01:00
|
|
|
if [ "$build_option_backtrace" ]; then
|
|
|
|
configure_args+=" --enable-libunwind"
|
|
|
|
makedepends+=" libunwind-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-libunwind"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_dbus" ]; then
|
|
|
|
configure_args+=" --enable-dbus"
|
|
|
|
makedepends+=" dbus-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-dbus"
|
|
|
|
fi
|
|
|
|
|
2014-05-20 14:06:59 +02:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
makedepends+=" systemd-devel"
|
|
|
|
fi
|
|
|
|
|
2014-02-10 22:39:01 +01:00
|
|
|
if [ "$build_option_vaapi" ]; then
|
|
|
|
configure_args+=" --enable-vaapi-recorder"
|
|
|
|
makedepends+=" libva-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-vaapi-recorder"
|
|
|
|
fi
|
|
|
|
|
2013-07-14 10:01:51 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv6l) # Assume RPi for now.
|
2013-10-20 06:35:39 +02:00
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include"
|
2014-05-22 09:44:34 +02:00
|
|
|
LDFLAGS="-Wl,-R/opt/vc/lib"
|
2013-07-14 10:01:51 +02:00
|
|
|
makedepends+=" rpi-firmware rpi-firmware-pcfiles"
|
|
|
|
# Just enable the RPi compositor.
|
2014-05-21 08:16:51 +02:00
|
|
|
configure_args+=" --disable-drm-compositor
|
2013-07-14 10:01:51 +02:00
|
|
|
--disable-wayland-compositor --disable-simple-egl-clients
|
2014-05-21 08:16:51 +02:00
|
|
|
--disable-fbdev-compositor --disable-egl
|
|
|
|
--disable-setuid-install --disable-resize-optimization
|
2013-12-18 17:20:06 +01:00
|
|
|
--enable-weston-launch WESTON_NATIVE_BACKEND=rpi-backend.so"
|
2013-07-14 10:01:51 +02:00
|
|
|
;;
|
|
|
|
x86_64|i686)
|
2014-05-22 09:44:34 +02:00
|
|
|
makedepends+=" glu-devel libva-devel"
|
2014-09-05 01:43:57 +02:00
|
|
|
configure_args+=" --enable-vaapi-recorder"
|
2013-07-14 10:01:51 +02:00
|
|
|
;;
|
|
|
|
esac
|
2013-02-15 14:28:31 +01:00
|
|
|
|
2014-08-09 13:00:35 +02:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2013-02-15 14:28:31 +01:00
|
|
|
post_install() {
|
|
|
|
vinstall COPYING 644 usr/share/license/$pkgname
|
2013-06-07 18:05:57 +02:00
|
|
|
# Remove development files.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/pkgconfig
|
2013-02-15 14:28:31 +01:00
|
|
|
}
|
2014-05-22 09:44:34 +02:00
|
|
|
|
|
|
|
weston-colord_package() {
|
|
|
|
short_desc+=" - colord plugin"
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/lib/weston/cms-colord.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
weston-x11_package() {
|
|
|
|
short_desc+=" - x11 backend"
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/lib/weston/x11-backend.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
weston-xwayland_package() {
|
|
|
|
short_desc+=" - xwayland backend"
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/lib/weston/xwayland.so
|
|
|
|
}
|
|
|
|
}
|