HOMEPAGE = "http://weston.freedesktop.org/"
SECTION = "Graphics & UI Framework/Wayland Window System"
LICENSE = "MIT"
-PV = "1.5.0"
+PV = "1.6.0"
SRC_URI = ""
DEPENDS += "udev"
DEPENDS += "libvpx"
DEPENDS += "xz"
+DEPENDS += "libinput"
DEPENDS_append_class-native = " automake-native"
DEPENDS_append_class-target = " automake-native"
DEPENDS += "mesa"
install -m 755 weston-simple-touch ${D}${prefix}/bin
install -m 755 weston-simple-shm ${D}${prefix}/bin
install -m 755 weston-simple-egl ${D}${prefix}/bin
+ install -m 755 weston-simple-damage ${D}${prefix}/bin
install -m 755 weston-nested-client ${D}${prefix}/bin
install -m 755 weston-nested ${D}${prefix}/bin
install -m 755 weston-flower ${D}${prefix}/bin
install -m 755 weston-cliptest ${D}${prefix}/bin
install -m 755 weston-dnd ${D}${prefix}/bin
install -m 755 weston-editor ${D}${prefix}/bin
+ install -m 755 weston-stacking ${D}${prefix}/bin
install -m 755 weston-smoke ${D}${prefix}/bin
+ install -m 755 weston-scaler ${D}${prefix}/bin
install -m 755 weston-resizor ${D}${prefix}/bin
install -m 755 weston-eventdemo ${D}${prefix}/bin
install -m 755 weston-clickdot ${D}${prefix}/bin
weston-clients_files += "${prefix}/bin/weston-simple-touch"
weston-clients_files += "${prefix}/bin/weston-simple-shm"
weston-clients_files += "${prefix}/bin/weston-simple-egl"
+weston-clients_files += "${prefix}/bin/weston-simple-damage"
weston-clients_files += "${prefix}/bin/weston-nested-client"
weston-clients_files += "${prefix}/bin/weston-nested"
weston-clients_files += "${prefix}/bin/weston-flower"
weston-clients_files += "${prefix}/bin/weston-cliptest"
weston-clients_files += "${prefix}/bin/weston-dnd"
weston-clients_files += "${prefix}/bin/weston-editor"
+weston-clients_files += "${prefix}/bin/weston-stacking"
weston-clients_files += "${prefix}/bin/weston-smoke"
+weston-clients_files += "${prefix}/bin/weston-scaler"
weston-clients_files += "${prefix}/bin/weston-resizor"
weston-clients_files += "${prefix}/bin/weston-eventdemo"
weston-clients_files += "${prefix}/bin/weston-clickdot"
do_install_append() {
install -m 755 uid.sh ${D}/etc/profile.d
- mkdir -p ${D}/lib/systemd/user/default.target.wants
- ln -sf ../weston-user.service ${D}/lib/systemd/user/default.target.wants/weston-user.service
+ mkdir -p ${D}${prefix}/lib/systemd/user/default.target.requires
+ ln -sf ../weston-user.service ${D}${prefix}/lib/systemd/user/default.target.requires/weston-user.service
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
- ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5001.service
- ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5002.service
- ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5003.service
- ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-9999.service
- ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@5001.service
- ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@5002.service
- ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@5003.service
- ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@9999.service
+ mkdir -p ${D}/lib/systemd/system/graphical.target.wants
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5001.service
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5002.service
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5003.service
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-9999.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/graphical.target.wants/user-session@5001.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/graphical.target.wants/user-session@5002.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/graphical.target.wants/user-session@5003.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/graphical.target.wants/user-session@9999.service
}
pkg_preinst_${PN}() {
#!/bin/sh -e
# setup display manager service
- mkdir -p /lib/systemd/system/graphical.target.wants/
- ln -sf ../display-manager.path /lib/systemd/system/graphical.target.wants/
+ mkdir -p $D${systemd_unitdir}/system/graphical.target.wants/
+ ln -sf ../display-manager.path $D${systemd_unitdir}/system/graphical.target.wants/
# setup display manager access (inside user session)
- mkdir -p /lib/systemd/user/default.target.requires/
- ln -sf ../weston-user.service /lib/systemd/user/default.target.requires/
+ mkdir -p $D${prefix}/lib/systemd/user/default.target.requires/
+ ln -sf ../weston-user.service $D${prefix}/lib/systemd/user/default.target.requires/
+
}
pkg_postinst_${PN} () {
find $D/home/$user/ -type d -exec chsmack -a User {} \;
chown -R $user:users $D/home/$user/
done
+
+ SERVICE_PATH=$D/lib/systemd/system/user-session-launch@.service
+ grep -q display-manager.path $SERVICE_PATH || sed -i 's@systemd-logind.service@systemd-logind.service display-manager.path@g' $SERVICE_PATH
}
-weston-common_files += "/lib/systemd/user/default.target.wants/weston-user.service"
+weston-common_files += "${prefix}/lib/systemd/user/default.target.requires/weston-user.service"
weston-common_files += "/home/*"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5001.service"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5002.service"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5003.service"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-9999.service"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@5001.service"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@5002.service"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@5003.service"
-FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@9999.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5001.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5002.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5003.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-9999.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session@5001.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session@5002.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session@5003.service"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session@9999.service"
groupmod -A display input
groupmod -A display video
# setup display manager service
- mkdir -p ${systemd_unitdir}/system/graphical.target.wants/
- ln -sf ../display-manager.path ${systemd_unitdir}/system/graphical.target.wants/
+ mkdir -p $D${systemd_unitdir}/system/graphical.target.wants/
+ ln -sf ../display-manager.path $D${systemd_unitdir}/system/graphical.target.wants/
# setup display manager access (inside user session)
mkdir -p $D${prefix}/lib/systemd/user/default.target.requires/
ln -sf ../weston-user.service $D${prefix}/lib/systemd/user/default.target.requires/
pkg_postrm_${PN}() {
#!/bin/sh -e
- rm -f ${systemd_unitdir}/system/graphical.target.wants/display-manager.path
+ rm -f $D${systemd_unitdir}/system/graphical.target.wants/display-manager.path
rm -f $D${prefix}/lib/systemd/user/default.target.requires/weston-user.service
}