aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/sdl12/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile
index cc25ec891861..40af9c2eb45e 100644
--- a/devel/sdl12/Makefile
+++ b/devel/sdl12/Makefile
@@ -71,8 +71,10 @@ CONFIGURE_ARGS+=--enable-video-opengl
.if exists(/usr/include/libusbhid.h)
CONFIGURE_ENV+= USB_LIBS=-lusbhid
CFLAGS+= -DHAVE_LIBUSBHID_H
-.else
+.elif exists(/usr/include/libusb.h)
CONFIGURE_ENV+= USB_LIBS=-lusb
+.else
+CONFIGURE_ARGS+=--enable-joystick=no
.endif
MAN3!= ${CAT} ${FILESDIR}/man3