pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/freerdp2 use libepoll-shim on NetBSD/FreeBSD/OpenB...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8323635440c5
branches:  trunk
changeset: 451900:8323635440c5
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Mon May 03 17:41:50 2021 +0000

description:
use libepoll-shim on NetBSD/FreeBSD/OpenBSD to make this actually work

fixes 'os specific implementation is missing' error on startup

tested on NetBSD

diffstat:

 net/freerdp2/Makefile |  19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 28c8b53b3157 -r 8323635440c5 net/freerdp2/Makefile
--- a/net/freerdp2/Makefile     Mon May 03 17:31:07 2021 +0000
+++ b/net/freerdp2/Makefile     Mon May 03 17:41:50 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2021/05/02 08:26:49 jdolecek Exp $
+# $NetBSD: Makefile,v 1.19 2021/05/03 17:41:50 jdolecek Exp $
 
 DISTNAME=      freerdp-2.1.2
 PKGNAME=       ${DISTNAME:S/freerdp-/freerdp2-/1}
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    net
 MASTER_SITES=  https://pub.freerdp.com/releases/
 
@@ -37,8 +37,16 @@
 CMAKE_ARGS+=   -DWITH_OSS=OFF
 .endif
 
-# backtrace
-LDFLAGS.NetBSD+=       -lexecinfo
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+# backtrace(3)
+LDFLAGS.${OPSYS}+=     -lexecinfo
+.endif
+.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+NEED_EPOLLSHIM=                # defined
+LDFLAGS.${OPSYS}+=     -lepoll-shim
+.endif
 
 PKGCONFIG_OVERRIDE+=   freerdp.pc.in
 
@@ -62,4 +70,7 @@
 .include "../../multimedia/ffmpeg4/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
+.ifdef NEED_EPOLLSHIM
+.include "../../devel/libepoll-shim/buildlink3.mk"
+.endif
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index