Date: Fri, 19 Apr 2019 19:08:02 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499385 - in head/net-im/uTox: . files Message-ID: <201904191908.x3JJ82k9084279@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Fri Apr 19 19:08:01 2019 New Revision: 499385 URL: https://svnweb.freebsd.org/changeset/ports/499385 Log: net-im/uTox: Fix push to talk PR: 235799 Submitted by: Darren Mulligan <fixer@bsdmail.com> Approved by: maintainer timeout (portmaster@bsdforge.com, >2 months) Added: head/net-im/uTox/files/patch-src_xlib_main.c (contents, props changed) Modified: head/net-im/uTox/Makefile (contents, props changed) Modified: head/net-im/uTox/Makefile ============================================================================== --- head/net-im/uTox/Makefile Fri Apr 19 18:58:37 2019 (r499384) +++ head/net-im/uTox/Makefile Fri Apr 19 19:08:01 2019 (r499385) @@ -3,7 +3,7 @@ PORTNAME= uTox DISTVERSION= 0.17.0 DISTVERSIONSUFFIX= -full -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= net-im net-p2p MASTER_SITES= https://github.com/uTox/uTox/releases/download/v${PORTVERSION}/ @@ -17,7 +17,8 @@ BROKEN_aarch64= fails to compile: endian.h:68:20: too BROKEN_armv6= fails to compile: endian.h:68:20: too many arguments provided to function-like macro invocation BROKEN_armv7= fails to compile: endian.h:68:20: too many arguments provided to function-like macro invocation -BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat +BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat \ + ${LOCALBASE}/include/linux/input.h:devel/evdev-proto LIB_DEPENDS= libfreetype.so:print/freetype2 \ libfontconfig.so:x11-fonts/fontconfig \ libsodium.so:security/libsodium \ @@ -29,6 +30,7 @@ LIB_DEPENDS= libfreetype.so:print/freetype2 \ USES= cmake compiler:c11 desktop-file-utils dos2unix \ openal pkgconfig USE_XORG= ice sm x11 xext xrender + CMAKE_OFF= ENABLE_LTO DOS2UNIX_GLOB= * LLD_UNSAFE= yes Added: head/net-im/uTox/files/patch-src_xlib_main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/uTox/files/patch-src_xlib_main.c Fri Apr 19 19:08:01 2019 (r499385) @@ -0,0 +1,23 @@ +--- src/xlib/main.c.orig 2019-02-17 05:10:45 UTC ++++ src/xlib/main.c +@@ -94,6 +94,11 @@ void init_ptt(void) { + + #ifdef __linux__ + #include <linux/input.h> ++#elif defined(__DragonFly__) || defined(__FreeBSD__) ++#include <linux/input.h> ++#endif ++ ++#if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) + static bool linux_check_ptt(void) { + /* First, we try for direct access to the keyboard. */ + int ptt_key = KEY_LEFTCTRL; // TODO allow user to change this... +@@ -146,7 +151,7 @@ bool check_ptt_key(void) { + return true; /* If push to talk is disabled, return true. */ + } + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) + return linux_check_ptt(); + #else + return bsd_check_ptt();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904191908.x3JJ82k9084279>