summaryrefslogtreecommitdiff
path: root/net/freerdp/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/freerdp/options.mk')
-rw-r--r--net/freerdp/options.mk65
1 files changed, 65 insertions, 0 deletions
diff --git a/net/freerdp/options.mk b/net/freerdp/options.mk
new file mode 100644
index 00000000000..956201784ad
--- /dev/null
+++ b/net/freerdp/options.mk
@@ -0,0 +1,65 @@
+# $NetBSD: options.mk,v 1.1 2013/10/07 12:53:20 obache Exp $
+#
+PKG_OPTIONS_VAR= PKG_OPTIONS.freerdp
+PKG_SUPPORTED_OPTIONS= alsa cups ffmpeg pcsc pulseaudio
+PKG_SUGGESTED_OPTIONS= alsa cups ffmpeg
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= alsa ffmpeg pcsc pulseaudio
+
+# Package-specific option-handling
+
+###
+### ALSA support
+###
+.if !empty(PKG_OPTIONS:Malsa)
+. include "../../audio/alsa-lib/buildlink3.mk"
+CMAKE_ARGS+= -DWITH_ALSA=ON
+PLIST.alsa= yes
+.else
+CMAKE_ARGS+= -DWITH_ALSA=OFF
+.endif
+
+###
+### CUPS support
+###
+.if !empty(PKG_OPTIONS:Mcups)
+. include "../../print/cups/buildlink3.mk"
+CMAKE_ARGS+= -DWITH_CUPS=ON
+PLIST.cups= yes
+.else
+CMAKE_ARGS+= -DWITH_CUPS=OFF
+.endif
+
+###
+### FFmpeg support
+###
+.if !empty(PKG_OPTIONS:Mffmpeg)
+. include "../../multimedia/ffmpeg/buildlink3.mk"
+CMAKE_ARGS+= -DWITH_FFMPEG=ON
+PLIST.ffmpeg= yes
+.else
+CMAKE_ARGS+= -DWITH_FFMPEG=OFF
+.endif
+
+###
+### PC/SC support
+###
+.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
+###
+### PulseAudio support
+###
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+. include "../../audio/pulseaudio/buildlink3.mk"
+CMAKE_ARGS+= -DWITH_PULSEAUDIO=ON
+PLIST.pulseaudio= yes
+.else
+CMAKE_ARGS+= -DWITH_PULSEAUDIO=OFF
+.endif