SDL2: add missing pkg-build-options snippet for alsa and de-lint

This commit is contained in:
tnn 2020-03-18 17:52:02 +00:00
parent 0837007143
commit fd358855e3

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.9 2020/03/17 12:56:36 nia Exp $
# $NetBSD: buildlink3.mk,v 1.10 2020/03/18 17:52:02 tnn Exp $
BUILDLINK_TREE+= SDL2
@ -13,25 +13,29 @@ BUILDLINK_INCDIRS.SDL2+= include/SDL2
pkgbase := SDL2
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.SDL2:Mnas)
.if ${PKG_BUILD_OPTIONS.SDL2:Malsa}
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
.if ${PKG_BUILD_OPTIONS.SDL2:Mnas}
.include "../../audio/nas/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.SDL2:Mopengl) && ${OPSYS} != "Darwin"
.if ${PKG_BUILD_OPTIONS.SDL2:Mopengl} && ${OPSYS} != "Darwin"
.include "../../graphics/MesaLib/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.SDL2:Mrpi)
.if ${PKG_BUILD_OPTIONS.SDL2:Mrpi}
.include "../../misc/raspberrypi-userland/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.SDL2:Mwayland)
.if ${PKG_BUILD_OPTIONS.SDL2:Mwayland}
.include "../../devel/wayland/buildlink3.mk"
.include "../../devel/wayland-protocols/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.SDL2:Mx11)
.if ${PKG_BUILD_OPTIONS.SDL2:Mx11}
.include "../../x11/libXcursor/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"