mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 13:10:31 -04:00
- Lift the previous restriction of only being able to build for a single platform. - The 'kodi' script will run the appropriate platform binary based on environment variables (DISPLAY, WAYLAND_DISPLAY), so this unlocks the ability to run Kodi in more environments, i.e., under Xorg, the console, or in Wayland compositors. - Export XKB_DEFAULT_RULES=evdev in the 'kodi' script to avoid surprises where keyboard input does not work correctly. - Add explicit xkeyboard-config run dependency. It is already implicit for X11 via xorg-server and required for correctly working input with WAYLAND and GBM. - GBM: Workaround a compatibility problem between Kodi and our libepoll-shim and unbreak input - Remove slave port scaffolding - Remove a no longer needed patch
18 lines
582 B
Bash
18 lines
582 B
Bash
Export XKB_DEFAULT_RULES=evdev when using Wayland or GBM to avoid
|
|
surprises and make sure all keys work. Default rules are set to
|
|
'xorg' in x11/libxkbcommon which is problematic.
|
|
|
|
--- tools/Linux/kodi.sh.in.orig 2019-01-17 22:53:57 UTC
|
|
+++ tools/Linux/kodi.sh.in
|
|
@@ -83,6 +83,11 @@ if [ ! -x ${KODI_BINARY} ]; then
|
|
exit 2
|
|
fi
|
|
|
|
+if [ "${KODI_BINARY##*-}" == "gbm" ] || [ "${KODI_BINARY##*-}" == "wayland" ]; then
|
|
+ : ${XKB_DEFAULT_RULES:=evdev}
|
|
+ export XKB_DEFAULT_RULES
|
|
+fi
|
|
+
|
|
APPORT_CORE="/var/crash/$(echo -n ${KODI_BINARY}|tr / _).$(id -u).crash"
|
|
|
|
migrate_home()
|