pkgsrc/net/freerdp2/options.mk
nia 8a3a0c3620 Add net/freerdp2.
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP),
released under the Apache license.

This package contains major version 2 of the library.
2019-09-15 12:55:14 +00:00

49 lines
1.3 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2019/09/15 12:55:14 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.freerdp2
PKG_SUPPORTED_OPTIONS= alsa pulseaudio cups x11
PKG_SUGGESTED_OPTIONS= x11
PKG_SUGGESTED_OPTIONS.Linux= alsa
.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/cups-base/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