devel/godot-tools: fix joystick driver code

Approved by:	FreeBSD@ShaneWare.Biz
PR:		284869
MFH:		2025Q1
This commit is contained in:
Chédotal Julien 2025-02-19 16:17:08 +01:00 committed by Robert Clausecker
parent 2b4b5efe04
commit 3d9903862d
4 changed files with 34 additions and 0 deletions

View file

@ -1,4 +1,5 @@
PKGNAMESUFFIX= -tools
PORTREVISION= 3
COMMENT= Game integrated development environment

View file

@ -0,0 +1,11 @@
--- platform/linuxbsd/detect.py.orig 2025-02-19 15:17:58.330499000 +0100
+++ platform/linuxbsd/detect.py 2025-02-19 15:20:19.837955000 +0100
@@ -370,7 +370,7 @@
else:
env.Append(CPPDEFINES=["XKB_ENABLED"])
- if platform.system() == "Linux":
+ if platform.system() in ["Linux","FreeBSD"]:
env.Append(CPPDEFINES=["JOYDEV_ENABLED"])
if env["udev"]:
if not env["use_sowrap"]:

View file

@ -0,0 +1,11 @@
--- platform/linuxbsd/libudev-so_wrap.c.orig 2025-02-19 15:17:47.002070000 +0100
+++ platform/linuxbsd/libudev-so_wrap.c 2025-02-19 15:19:37.278257000 +0100
@@ -281,7 +281,7 @@
int initialize_libudev(int verbose) {
void *handle;
char *error;
- handle = dlopen("libudev.so.1", RTLD_LAZY);
+ handle = dlopen("libudev.so.0", RTLD_LAZY);
if (!handle) {
if (verbose) {
fprintf(stderr, "%s\n", dlerror());

View file

@ -0,0 +1,11 @@
--- thirdparty/linuxbsd_headers/udev/libudev.h.orig 2025-02-19 15:18:28.842768000 +0100
+++ thirdparty/linuxbsd_headers/udev/libudev.h 2025-02-19 15:18:40.913920000 +0100
@@ -22,7 +22,7 @@
#define _LIBUDEV_H_
#include <stdarg.h>
-#include <sys/sysmacros.h>
+// #include <sys/sysmacros.h>
#include <sys/types.h>
#ifdef __cplusplus