diff options
Diffstat (limited to 'devel/sdl12/Makefile')
-rw-r--r-- | devel/sdl12/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile index 642916d4572d..975a93c85c00 100644 --- a/devel/sdl12/Makefile +++ b/devel/sdl12/Makefile @@ -49,6 +49,12 @@ CONFIGURE_ARGS+=--enable-video-opengl LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib CONFIGURE_ARGS+=--enable-video-svga .endif +.if exists(/usr/include/libusbhid.h) +CONFIGURE_ENV+= USB_LIBS=-lusbhid +CFLAGS+= -DHAVE_LIBUSBHID_H +.else +CONFIGURE_ENV+= USB_LIBS=-lusb +.endif .include <bsd.port.pre.mk> |