mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 07:57:38 -04:00
devel/godot-tools: fix joystick driver code
Approved by: FreeBSD@ShaneWare.Biz PR: 284869 MFH: 2025Q1
This commit is contained in:
parent
2b4b5efe04
commit
3d9903862d
4 changed files with 34 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
PKGNAMESUFFIX= -tools
|
PKGNAMESUFFIX= -tools
|
||||||
|
PORTREVISION= 3
|
||||||
|
|
||||||
COMMENT= Game integrated development environment
|
COMMENT= Game integrated development environment
|
||||||
|
|
||||||
|
|
11
devel/godot-tools/files/patch-platform_linuxbsd_detect.py
Normal file
11
devel/godot-tools/files/patch-platform_linuxbsd_detect.py
Normal 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"]:
|
|
@ -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());
|
|
@ -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
|
Loading…
Add table
Reference in a new issue