git: eda6359b31ad - main - devel/sdl20: correct BROKEN with disabled SDL_JOYSTICK

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 25 Apr 2022 14:28:51 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eda6359b31ad21ac3dacc3ec46894dcae5a2de74

commit eda6359b31ad21ac3dacc3ec46894dcae5a2de74
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-25 14:22:03 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-25 14:26:42 +0000

    devel/sdl20: correct BROKEN with disabled SDL_JOYSTICK
    
    The port builds fine when both SDL_JOYSTICK and SDL_HAPTIC are
    disabled, so instead of BROKEN for SDL_JOYSTICK, just make
    SDL_HAPTIC require SDL_JOYSTICK
    
    Reported by:    vishwin
---
 devel/sdl20/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/sdl20/Makefile b/devel/sdl20/Makefile
index 751b5df1d444..d41caf9d04d7 100644
--- a/devel/sdl20/Makefile
+++ b/devel/sdl20/Makefile
@@ -129,10 +129,10 @@ SDL_EVENTS_CONFIGURE_ENABLE=	events
 SDL_EVENTS_BROKEN_OFF=		does not build: error: use of undeclared identifier 'event_type'
 SDL_FILE_CONFIGURE_ENABLE=	filesystem
 SDL_HAPTIC_CONFIGURE_ENABLE=	haptic
+SDL_HAPTIC_IMPLIES=		SDL_JOYSTICK  # otherwise: ld: error: undefined symbol: test_bit
 SDL_JOYSTICK_CONFIGURE_ENABLE=	joystick
 SDL_JOYSTICK_BUILD_DEPENDS=	${LOCALBASE}/include/linux/input.h:devel/evdev-proto
 SDL_JOYSTICK_LIB_DEPENDS=	libinotify.so:devel/libinotify
-SDL_JOYSTICK_BROKEN_OFF=	does not build: ld: error: undefined symbol: test_bit
 SDL_LOADSO_CONFIGURE_ENABLE=	loadso
 SDL_POWER_CONFIGURE_ENABLE=	power
 SDL_RENDER_CONFIGURE_ENABLE=	render