72 lines
1.9 KiB
Makefile
72 lines
1.9 KiB
Makefile
# $NetBSD: options.mk,v 1.4 2022/08/06 08:02:27 nia Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.freerdp2
|
|
PKG_SUPPORTED_OPTIONS= alsa pcsc pulseaudio cups wayland x11
|
|
PKG_SUGGESTED_OPTIONS= x11 pcsc
|
|
PKG_SUGGESTED_OPTIONS.Linux= alsa
|
|
|
|
.include "../../devel/wayland/platform.mk"
|
|
.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
|
|
PKG_SUGGESTED_OPTIONS+= wayland
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Malsa)
|
|
CMAKE_ARGS+= -DWITH_ALSA=ON
|
|
.include "../../audio/alsa-lib/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_ALSA=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpulseaudio)
|
|
CMAKE_ARGS+= -DWITH_PULSE=ON
|
|
.include "../../audio/pulseaudio/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_PULSE=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mcups)
|
|
CMAKE_ARGS+= -DWITH_CUPS=ON
|
|
.include "../../print/libcups/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_CUPS=OFF
|
|
.endif
|
|
|
|
PLIST_VARS+= x11
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
PLIST.x11= yes
|
|
CMAKE_ARGS+= -DWITH_X11=ON
|
|
.include "../../x11/libxkbfile/buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/libXcursor/buildlink3.mk"
|
|
.include "../../x11/libXdamage/buildlink3.mk"
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../x11/libXfixes/buildlink3.mk"
|
|
.include "../../x11/libXi/buildlink3.mk"
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
|
.include "../../x11/libXrandr/buildlink3.mk"
|
|
.include "../../x11/libXrender/buildlink3.mk"
|
|
.include "../../x11/libXtst/buildlink3.mk"
|
|
.include "../../x11/libXv/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_X11=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpcsc)
|
|
. include "../../security/pcsc-lite/buildlink3.mk"
|
|
CMAKE_ARGS+= -DWITH_PCSC=ON
|
|
PLIST.pcsc= yes
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_PCSC=OFF
|
|
.endif
|
|
|
|
PLIST_VARS+= wayland
|
|
.if !empty(PKG_OPTIONS:Mwayland)
|
|
. include "../../devel/wayland/buildlink3.mk"
|
|
. include "../../x11/libxkbcommon/buildlink3.mk"
|
|
PLIST.wayland= yes
|
|
CMAKE_ARGS+= -DWITH_WAYLAND=ON
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_WAYLAND=OFF
|
|
.endif
|