summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-09-15 12:55:14 +0000
committernia <nia@pkgsrc.org>2019-09-15 12:55:14 +0000
commitef7e8b0912cdccfd99a8baacd82dc8320b3be186 (patch)
treedb8cf3466513016d65fc2b59ba5b196d167509c4 /net
parentf71d8777f61895b6aff18b472fab7c44f2b39f3c (diff)
downloadpkgsrc-ef7e8b0912cdccfd99a8baacd82dc8320b3be186.tar.gz
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.
Diffstat (limited to 'net')
-rw-r--r--net/Makefile3
-rw-r--r--net/freerdp/DESCR2
-rw-r--r--net/freerdp/Makefile4
-rw-r--r--net/freerdp2/DESCR4
-rw-r--r--net/freerdp2/Makefile62
-rw-r--r--net/freerdp2/PLIST255
-rw-r--r--net/freerdp2/buildlink3.mk12
-rw-r--r--net/freerdp2/distinfo7
-rw-r--r--net/freerdp2/options.mk49
-rw-r--r--net/freerdp2/patches/patch-winpr_libwinpr_sysinfo_sysinfo.c15
10 files changed, 410 insertions, 3 deletions
diff --git a/net/Makefile b/net/Makefile
index cc259dde499..e095867a880 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1267 2019/09/14 19:26:47 nia Exp $
+# $NetBSD: Makefile,v 1.1268 2019/09/15 12:55:14 nia Exp $
#
COMMENT= Networking tools
@@ -165,6 +165,7 @@ SUBDIR+= freeradius-unixodbc
SUBDIR+= freeradius-yubikey
SUBDIR+= freeradius2
SUBDIR+= freerdp
+SUBDIR+= freerdp2
SUBDIR+= fstrm
SUBDIR+= ftplibpp
SUBDIR+= ftpproxy
diff --git a/net/freerdp/DESCR b/net/freerdp/DESCR
index d727451fa79..653f180bb16 100644
--- a/net/freerdp/DESCR
+++ b/net/freerdp/DESCR
@@ -1,2 +1,4 @@
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP),
released under the Apache license.
+
+This package contains major version 1 of the library.
diff --git a/net/freerdp/Makefile b/net/freerdp/Makefile
index 02652e7a471..85caabb5f41 100644
--- a/net/freerdp/Makefile
+++ b/net/freerdp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2019/07/21 22:25:30 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2019/09/15 12:55:14 nia Exp $
DISTNAME= freerdp-1.0.2
PKGREVISION= 35
@@ -7,7 +7,7 @@ MASTER_SITES= http://pub.freerdp.com/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.freerdp.com/
-COMMENT= Free implementation of the Remote Desktop Protocol
+COMMENT= Free implementation of the Remote Desktop Protocol (major version 1)
LICENSE= apache-2.0
TOOL_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
diff --git a/net/freerdp2/DESCR b/net/freerdp2/DESCR
new file mode 100644
index 00000000000..82d0574cb47
--- /dev/null
+++ b/net/freerdp2/DESCR
@@ -0,0 +1,4 @@
+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.
diff --git a/net/freerdp2/Makefile b/net/freerdp2/Makefile
new file mode 100644
index 00000000000..e4baadc2afd
--- /dev/null
+++ b/net/freerdp2/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.1 2019/09/15 12:55:14 nia Exp $
+
+DISTNAME= freerdp-2.0.0rc4
+PKGNAME= ${DISTNAME:S/freerdp-/freerdp2-/1}
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=FreeRDP/}
+GITHUB_PROJECT= FreeRDP
+GITHUB_TAG= 2.0.0-rc4
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.freerdp.com/
+COMMENT= Free implementation of the Remote Desktop Protocol (major version 2)
+LICENSE= apache-2.0
+
+USE_CMAKE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+= -DWITH_SERVER=ON
+CMAKE_ARGS+= -DWITH_CHANNELS=ON
+CMAKE_ARGS+= -DWITH_JPEG=ON
+CMAKE_ARGS+= -DWITH_WAYLAND=OFF # XXX needs epoll
+CMAKE_ARGS+= -DWITH_GSTREAMER_1_0=OFF
+
+CMAKE_ARGS+= -DAVCODEC_LIBRARY=${PREFIX}/lib/ffmpeg4/libavcodec.so
+
+CFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t -Du_int64_t=uint64_t
+
+.include "../../mk/oss.buildlink3.mk"
+
+.if ${OSS_TYPE} != "none"
+CMAKE_ARGS+= -DWITH_OSS=ON
+LDFLAGS+= ${LIBOSSAUDIO}
+.else
+CMAKE_ARGS+= -DWITH_OSS=OFF
+.endif
+
+# backtrace
+LDFLAGS.NetBSD+= -lexecinfo
+
+PKGCONFIG_OVERRIDE+= freerdp.pc.in
+
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man7
+
+post-install:
+.for page in freerdp-shadow-cli.1 winpr-hash.1 winpr-makecert.1 xfreerdp.1
+ ${MV} ${DESTDIR}${PREFIX}/share/man/man1/${page} \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${page} || ${TRUE}
+.endfor
+ ${MV} ${DESTDIR}${PREFIX}/share/man/man7/wlog.7 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/wlog.7 || ${TRUE}
+ ${MV} ${DESTDIR}${PREFIX}/share/man/man1/xfreerdp.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xfreerdp2.1 || ${TRUE}
+ ${MV} ${DESTDIR}${PREFIX}/bin/xfreerdp \
+ ${DESTDIR}${PREFIX}/bin/xfreerdp2 || ${TRUE}
+
+.include "options.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/freerdp2/PLIST b/net/freerdp2/PLIST
new file mode 100644
index 00000000000..7b876ed09b2
--- /dev/null
+++ b/net/freerdp2/PLIST
@@ -0,0 +1,255 @@
+@comment $NetBSD: PLIST,v 1.1 2019/09/15 12:55:14 nia Exp $
+bin/freerdp-shadow-cli
+bin/winpr-hash
+bin/winpr-makecert
+${PLIST.x11}bin/xfreerdp2
+include/freerdp2/freerdp/addin.h
+include/freerdp2/freerdp/altsec.h
+include/freerdp2/freerdp/api.h
+include/freerdp2/freerdp/assistance.h
+include/freerdp2/freerdp/autodetect.h
+include/freerdp2/freerdp/build-config.h
+include/freerdp2/freerdp/cache/bitmap.h
+include/freerdp2/freerdp/cache/brush.h
+include/freerdp2/freerdp/cache/cache.h
+include/freerdp2/freerdp/cache/glyph.h
+include/freerdp2/freerdp/cache/nine_grid.h
+include/freerdp2/freerdp/cache/offscreen.h
+include/freerdp2/freerdp/cache/palette.h
+include/freerdp2/freerdp/cache/pointer.h
+include/freerdp2/freerdp/channels/audin.h
+include/freerdp2/freerdp/channels/channels.h
+include/freerdp2/freerdp/channels/cliprdr.h
+include/freerdp2/freerdp/channels/encomsp.h
+include/freerdp2/freerdp/channels/geometry.h
+include/freerdp2/freerdp/channels/log.h
+include/freerdp2/freerdp/channels/rail.h
+include/freerdp2/freerdp/channels/rdpdr.h
+include/freerdp2/freerdp/channels/rdpei.h
+include/freerdp2/freerdp/channels/rdpgfx.h
+include/freerdp2/freerdp/channels/rdpsnd.h
+include/freerdp2/freerdp/channels/remdesk.h
+include/freerdp2/freerdp/channels/tsmf.h
+include/freerdp2/freerdp/channels/video.h
+include/freerdp2/freerdp/channels/wtsvc.h
+include/freerdp2/freerdp/client.h
+include/freerdp2/freerdp/client/audin.h
+include/freerdp2/freerdp/client/channels.h
+include/freerdp2/freerdp/client/cliprdr.h
+include/freerdp2/freerdp/client/cmdline.h
+include/freerdp2/freerdp/client/disp.h
+include/freerdp2/freerdp/client/drdynvc.h
+include/freerdp2/freerdp/client/encomsp.h
+include/freerdp2/freerdp/client/file.h
+include/freerdp2/freerdp/client/geometry.h
+include/freerdp2/freerdp/client/rail.h
+include/freerdp2/freerdp/client/rdpei.h
+include/freerdp2/freerdp/client/rdpgfx.h
+include/freerdp2/freerdp/client/rdpsnd.h
+include/freerdp2/freerdp/client/remdesk.h
+include/freerdp2/freerdp/client/sshagent.h
+include/freerdp2/freerdp/client/tsmf.h
+include/freerdp2/freerdp/client/video.h
+include/freerdp2/freerdp/codec/audio.h
+include/freerdp2/freerdp/codec/bitmap.h
+include/freerdp2/freerdp/codec/bulk.h
+include/freerdp2/freerdp/codec/clear.h
+include/freerdp2/freerdp/codec/color.h
+include/freerdp2/freerdp/codec/dsp.h
+include/freerdp2/freerdp/codec/h264.h
+include/freerdp2/freerdp/codec/interleaved.h
+include/freerdp2/freerdp/codec/jpeg.h
+include/freerdp2/freerdp/codec/mppc.h
+include/freerdp2/freerdp/codec/ncrush.h
+include/freerdp2/freerdp/codec/nsc.h
+include/freerdp2/freerdp/codec/planar.h
+include/freerdp2/freerdp/codec/progressive.h
+include/freerdp2/freerdp/codec/region.h
+include/freerdp2/freerdp/codec/rfx.h
+include/freerdp2/freerdp/codec/xcrush.h
+include/freerdp2/freerdp/codec/yuv.h
+include/freerdp2/freerdp/codec/zgfx.h
+include/freerdp2/freerdp/codecs.h
+include/freerdp2/freerdp/constants.h
+include/freerdp2/freerdp/crypto/ber.h
+include/freerdp2/freerdp/crypto/certificate.h
+include/freerdp2/freerdp/crypto/crypto.h
+include/freerdp2/freerdp/crypto/der.h
+include/freerdp2/freerdp/crypto/er.h
+include/freerdp2/freerdp/crypto/per.h
+include/freerdp2/freerdp/crypto/tls.h
+include/freerdp2/freerdp/dvc.h
+include/freerdp2/freerdp/error.h
+include/freerdp2/freerdp/event.h
+include/freerdp2/freerdp/extension.h
+include/freerdp2/freerdp/freerdp.h
+include/freerdp2/freerdp/gdi/bitmap.h
+include/freerdp2/freerdp/gdi/dc.h
+include/freerdp2/freerdp/gdi/gdi.h
+include/freerdp2/freerdp/gdi/gfx.h
+include/freerdp2/freerdp/gdi/pen.h
+include/freerdp2/freerdp/gdi/region.h
+include/freerdp2/freerdp/gdi/shape.h
+include/freerdp2/freerdp/gdi/video.h
+include/freerdp2/freerdp/graphics.h
+include/freerdp2/freerdp/input.h
+include/freerdp2/freerdp/listener.h
+include/freerdp2/freerdp/locale/keyboard.h
+include/freerdp2/freerdp/locale/locale.h
+include/freerdp2/freerdp/log.h
+include/freerdp2/freerdp/message.h
+include/freerdp2/freerdp/metrics.h
+include/freerdp2/freerdp/peer.h
+include/freerdp2/freerdp/pointer.h
+include/freerdp2/freerdp/primary.h
+include/freerdp2/freerdp/primitives.h
+include/freerdp2/freerdp/rail.h
+include/freerdp2/freerdp/scancode.h
+include/freerdp2/freerdp/secondary.h
+include/freerdp2/freerdp/server/audin.h
+include/freerdp2/freerdp/server/channels.h
+include/freerdp2/freerdp/server/cliprdr.h
+include/freerdp2/freerdp/server/drdynvc.h
+include/freerdp2/freerdp/server/echo.h
+include/freerdp2/freerdp/server/encomsp.h
+include/freerdp2/freerdp/server/rdpdr.h
+include/freerdp2/freerdp/server/rdpei.h
+include/freerdp2/freerdp/server/rdpgfx.h
+include/freerdp2/freerdp/server/rdpsnd.h
+include/freerdp2/freerdp/server/remdesk.h
+include/freerdp2/freerdp/server/server-common.h
+include/freerdp2/freerdp/server/shadow.h
+include/freerdp2/freerdp/session.h
+include/freerdp2/freerdp/settings.h
+include/freerdp2/freerdp/svc.h
+include/freerdp2/freerdp/types.h
+include/freerdp2/freerdp/update.h
+include/freerdp2/freerdp/utils/msusb.h
+include/freerdp2/freerdp/utils/passphrase.h
+include/freerdp2/freerdp/utils/pcap.h
+include/freerdp2/freerdp/utils/profiler.h
+include/freerdp2/freerdp/utils/ringbuffer.h
+include/freerdp2/freerdp/utils/signal.h
+include/freerdp2/freerdp/utils/stopwatch.h
+include/freerdp2/freerdp/version.h
+include/freerdp2/freerdp/window.h
+include/winpr2/winpr/asn1.h
+include/winpr2/winpr/bcrypt.h
+include/winpr2/winpr/bitstream.h
+include/winpr2/winpr/clipboard.h
+include/winpr2/winpr/cmdline.h
+include/winpr2/winpr/collections.h
+include/winpr2/winpr/comm.h
+include/winpr2/winpr/credentials.h
+include/winpr2/winpr/credui.h
+include/winpr2/winpr/crt.h
+include/winpr2/winpr/crypto.h
+include/winpr2/winpr/debug.h
+include/winpr2/winpr/dsparse.h
+include/winpr2/winpr/endian.h
+include/winpr2/winpr/environment.h
+include/winpr2/winpr/error.h
+include/winpr2/winpr/file.h
+include/winpr2/winpr/handle.h
+include/winpr2/winpr/heap.h
+include/winpr2/winpr/image.h
+include/winpr2/winpr/ini.h
+include/winpr2/winpr/input.h
+include/winpr2/winpr/interlocked.h
+include/winpr2/winpr/intrin.h
+include/winpr2/winpr/io.h
+include/winpr2/winpr/library.h
+include/winpr2/winpr/locale.h
+include/winpr2/winpr/memory.h
+include/winpr2/winpr/midl.h
+include/winpr2/winpr/ndr.h
+include/winpr2/winpr/nt.h
+include/winpr2/winpr/ntlm.h
+include/winpr2/winpr/pack.h
+include/winpr2/winpr/path.h
+include/winpr2/winpr/pipe.h
+include/winpr2/winpr/platform.h
+include/winpr2/winpr/pool.h
+include/winpr2/winpr/print.h
+include/winpr2/winpr/registry.h
+include/winpr2/winpr/rpc.h
+include/winpr2/winpr/sam.h
+include/winpr2/winpr/schannel.h
+include/winpr2/winpr/security.h
+include/winpr2/winpr/shell.h
+include/winpr2/winpr/smartcard.h
+include/winpr2/winpr/spec.h
+include/winpr2/winpr/ssl.h
+include/winpr2/winpr/sspi.h
+include/winpr2/winpr/sspicli.h
+include/winpr2/winpr/stream.h
+include/winpr2/winpr/string.h
+include/winpr2/winpr/strlst.h
+include/winpr2/winpr/synch.h
+include/winpr2/winpr/sysinfo.h
+include/winpr2/winpr/tchar.h
+include/winpr2/winpr/thread.h
+include/winpr2/winpr/timezone.h
+include/winpr2/winpr/tools/makecert.h
+include/winpr2/winpr/user.h
+include/winpr2/winpr/version.h
+include/winpr2/winpr/windows.h
+include/winpr2/winpr/winhttp.h
+include/winpr2/winpr/winpr.h
+include/winpr2/winpr/winsock.h
+include/winpr2/winpr/wlog.h
+include/winpr2/winpr/wnd.h
+include/winpr2/winpr/wtsapi.h
+include/winpr2/winpr/wtypes.h
+lib/cmake/FreeRDP-Client2/FreeRDP-ClientConfig.cmake
+lib/cmake/FreeRDP-Client2/FreeRDP-ClientConfigVersion.cmake
+lib/cmake/FreeRDP-Client2/FreeRDP-ClientTargets-release.cmake
+lib/cmake/FreeRDP-Client2/FreeRDP-ClientTargets.cmake
+lib/cmake/FreeRDP-Server2/FreeRDP-ServerConfig.cmake
+lib/cmake/FreeRDP-Server2/FreeRDP-ServerConfigVersion.cmake
+lib/cmake/FreeRDP-Server2/FreeRDP-ServerTargets-release.cmake
+lib/cmake/FreeRDP-Server2/FreeRDP-ServerTargets.cmake
+lib/cmake/FreeRDP-Shadow2/FreeRDP-ShadowConfig.cmake
+lib/cmake/FreeRDP-Shadow2/FreeRDP-ShadowConfigVersion.cmake
+lib/cmake/FreeRDP-Shadow2/FreeRDP-ShadowTargets-release.cmake
+lib/cmake/FreeRDP-Shadow2/FreeRDP-ShadowTargets.cmake
+lib/cmake/FreeRDP2/FreeRDPConfig.cmake
+lib/cmake/FreeRDP2/FreeRDPConfigVersion.cmake
+lib/cmake/FreeRDP2/FreeRDPTargets-release.cmake
+lib/cmake/FreeRDP2/FreeRDPTargets.cmake
+lib/cmake/WinPR2/WinPRConfig.cmake
+lib/cmake/WinPR2/WinPRConfigVersion.cmake
+lib/cmake/WinPR2/WinPRTargets-release.cmake
+lib/cmake/WinPR2/WinPRTargets.cmake
+lib/libfreerdp-client2.so
+lib/libfreerdp-client2.so.2
+lib/libfreerdp-client2.so.2.0.0
+lib/libfreerdp-server2.so
+lib/libfreerdp-server2.so.2
+lib/libfreerdp-server2.so.2.0.0
+lib/libfreerdp-shadow-subsystem2.so
+lib/libfreerdp-shadow-subsystem2.so.2
+lib/libfreerdp-shadow-subsystem2.so.2.0.0
+lib/libfreerdp-shadow2.so
+lib/libfreerdp-shadow2.so.2
+lib/libfreerdp-shadow2.so.2.0.0
+lib/libfreerdp2.so
+lib/libfreerdp2.so.2
+lib/libfreerdp2.so.2.0.0
+lib/libwinpr-tools2.so
+lib/libwinpr-tools2.so.2
+lib/libwinpr-tools2.so.2.0.0
+lib/libwinpr2.so
+lib/libwinpr2.so.2
+lib/libwinpr2.so.2.0.0
+lib/pkgconfig/freerdp-client2.pc
+lib/pkgconfig/freerdp-server2.pc
+lib/pkgconfig/freerdp-shadow2.pc
+lib/pkgconfig/freerdp2.pc
+lib/pkgconfig/winpr-tools2.pc
+lib/pkgconfig/winpr2.pc
+man/man1/freerdp-shadow-cli.1
+man/man1/winpr-hash.1
+man/man1/winpr-makecert.1
+${PLIST.x11}man/man1/xfreerdp.1
+man/man7/wlog.7
diff --git a/net/freerdp2/buildlink3.mk b/net/freerdp2/buildlink3.mk
new file mode 100644
index 00000000000..00f142b3e0c
--- /dev/null
+++ b/net/freerdp2/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/09/15 12:55:14 nia Exp $
+
+BUILDLINK_TREE+= freerdp2
+
+.if !defined(FREERDP2_BUILDLINK3_MK)
+FREERDP2_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.freerdp2+= freerdp2>=2.0.0rc4
+BUILDLINK_PKGSRCDIR.freerdp2?= ../../net/freerdp2
+.endif # FREERDP2_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -freerdp2
diff --git a/net/freerdp2/distinfo b/net/freerdp2/distinfo
new file mode 100644
index 00000000000..8b834186a7a
--- /dev/null
+++ b/net/freerdp2/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/09/15 12:55:14 nia Exp $
+
+SHA1 (freerdp-2.0.0rc4.tar.gz) = bd50ce9d8807499e14884a3019e9f42b40f3480b
+RMD160 (freerdp-2.0.0rc4.tar.gz) = 45a49be0aafda484aa3b44e5c32ceaeed23fb2b1
+SHA512 (freerdp-2.0.0rc4.tar.gz) = b4a4d4a58d09010bc45fb90cca148dc4421a4cf0cd5caf288aa702212ef081f14fc418b91f1b79ec8631f582c9ebcdd3031d3333b6a892adb29c402492abb649
+Size (freerdp-2.0.0rc4.tar.gz) = 6615213 bytes
+SHA1 (patch-winpr_libwinpr_sysinfo_sysinfo.c) = 858cfba03a902e1e6900a2d1ee2bcf7429227d3d
diff --git a/net/freerdp2/options.mk b/net/freerdp2/options.mk
new file mode 100644
index 00000000000..68b467fe628
--- /dev/null
+++ b/net/freerdp2/options.mk
@@ -0,0 +1,49 @@
+# $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
diff --git a/net/freerdp2/patches/patch-winpr_libwinpr_sysinfo_sysinfo.c b/net/freerdp2/patches/patch-winpr_libwinpr_sysinfo_sysinfo.c
new file mode 100644
index 00000000000..dbafcffa1a3
--- /dev/null
+++ b/net/freerdp2/patches/patch-winpr_libwinpr_sysinfo_sysinfo.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-winpr_libwinpr_sysinfo_sysinfo.c,v 1.1 2019/09/15 12:55:14 nia Exp $
+
+Support NetBSD.
+
+--- winpr/libwinpr/sysinfo/sysinfo.c.orig 2018-11-20 10:43:51.000000000 +0000
++++ winpr/libwinpr/sysinfo/sysinfo.c
+@@ -142,7 +142,7 @@ static DWORD GetNumberOfProcessors(void)
+ int mib[4];
+ size_t length = sizeof(numCPUs);
+ mib[0] = CTL_HW;
+-#if defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ mib[1] = HW_NCPU;
+ #else
+ mib[1] = HW_AVAILCPU;