FreeBSD Bugzilla – Attachment 251619 Details for
Bug 279907
devel/sdl20: Joystick not working with latest SDL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Joystick handling fix for SDL 2.0
patch-sdl20-joystick.txt (text/plain), 1.24 KB, created by
Ganael LAPLANCHE
on 2024-06-22 13:04:16 UTC
(
hide
)
Description:
Joystick handling fix for SDL 2.0
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2024-06-22 13:04:16 UTC
Size:
1.24 KB
patch
obsolete
>diff --git a/devel/sdl20/Makefile b/devel/sdl20/Makefile >index 8c3c594503..c7984973e7 100644 >--- a/devel/sdl20/Makefile >+++ b/devel/sdl20/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= sdl2 > DISTVERSION= 2.30.3 >+PORTREVISION= 1 > CATEGORIES= devel > MASTER_SITES= https://github.com/libsdl-org/SDL/releases/download/release-${DISTVERSION}/ \ > https://www.libsdl.org/release/ >diff --git a/devel/sdl20/files/patch-CMakeLists.txt b/devel/sdl20/files/patch-CMakeLists.txt >index 10acb6ef7a..f657d0e390 100644 >--- a/devel/sdl20/files/patch-CMakeLists.txt >+++ b/devel/sdl20/files/patch-CMakeLists.txt >@@ -47,3 +47,13 @@ > target_include_directories(sdl-build-options INTERFACE "${INOTIFY_INCLUDE_DIRS}") > list(APPEND EXTRA_LIBS ${INOTIFY_LIBRARIES}) > endif() >+@@ -1674,7 +1676,7 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU >+ if(FREEBSD OR NETBSD OR OPENBSD OR BSDI) >+ CheckUSBHID() >+ endif() >+- if(LINUX AND HAVE_LINUX_INPUT_H AND NOT ANDROID) >++ if((LINUX OR FREEBSD) AND HAVE_LINUX_INPUT_H AND NOT ANDROID) >+ set(SDL_JOYSTICK_LINUX 1) >+ file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c) >+ list(APPEND SOURCE_FILES ${JOYSTICK_SOURCES}) >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 279907
: 251619