--- net-im/uTox/Makefile (revision 492899) +++ net-im/uTox/Makefile (working copy) @@ -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_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 \ --- net-im/uTox/files/patch-src_xlib_main.c (nonexistent) +++ net-im/uTox/files/patch-src_xlib_main.c (working copy) @@ -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 ++#elif defined(__DragonFly__) || defined(__FreeBSD__) ++#include ++#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();