From 91de3077024ca0266403ae5593937e0a4b9a2949 Mon Sep 17 00:00:00 2001 From: tnn Date: Wed, 18 Mar 2020 17:52:02 +0000 Subject: SDL2: add missing pkg-build-options snippet for alsa and de-lint --- devel/SDL2/buildlink3.mk | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'devel/SDL2') diff --git a/devel/SDL2/buildlink3.mk b/devel/SDL2/buildlink3.mk index 23a4c0b7932..766c611e42b 100644 --- a/devel/SDL2/buildlink3.mk +++ b/devel/SDL2/buildlink3.mk @@ -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" -- cgit v1.2.3