git: 5bd415e39c2c - main - sysutils/g15daemon: unbreak build after 5d998836b36f

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 10:58:41 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5bd415e39c2c1548c40f0357d4ba5e9446f3276e

commit 5bd415e39c2c1548c40f0357d4ba5e9446f3276e
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-11-10 09:24:08 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-11-10 10:58:09 +0000

    sysutils/g15daemon: unbreak build after 5d998836b36f
    
    checking for linux/input.h... no
    checking for linux/uinput.h... no
    [...]
    g15_plugin_uinput.c:157:20: error: use of undeclared identifier 'G15_KEY_G1'
            if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1))
                              ^
    g15_plugin_uinput.c:157:48: error: use of undeclared identifier 'G15_KEY_G1'
            if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1))
                                                          ^
    g15_plugin_uinput.c:158:11: error: use of undeclared identifier 'GKEY_OFFSET'
                    keydown(GKEY_OFFSET);
                            ^
    g15_plugin_uinput.c:159:26: error: use of undeclared identifier 'G15_KEY_G1'
            else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1))
                                    ^
    g15_plugin_uinput.c:159:53: error: use of undeclared identifier 'G15_KEY_G1'
            else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1))
                                                               ^
    g15_plugin_uinput.c:160:9: error: use of undeclared identifier 'GKEY_OFFSET'
                    keyup(GKEY_OFFSET);
                          ^
    g15_plugin_uinput.c:161:20: error: use of undeclared identifier 'G15_KEY_G2'
            if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2))
                              ^
    g15_plugin_uinput.c:161:48: error: use of undeclared identifier 'G15_KEY_G2'
            if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2))
                                                          ^
    g15_plugin_uinput.c:162:11: error: use of undeclared identifier 'GKEY_OFFSET'
                    keydown(GKEY_OFFSET+1);
                            ^
    g15_plugin_uinput.c:163:26: error: use of undeclared identifier 'G15_KEY_G2'
            else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2))
                                    ^
    g15_plugin_uinput.c:163:53: error: use of undeclared identifier 'G15_KEY_G2'
            else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2))
                                                               ^
    g15_plugin_uinput.c:164:9: error: use of undeclared identifier 'GKEY_OFFSET'
                    keyup(GKEY_OFFSET+1);
                          ^
    g15_plugin_uinput.c:165:20: error: use of undeclared identifier 'G15_KEY_G3'
            if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3))
                              ^
    g15_plugin_uinput.c:165:48: error: use of undeclared identifier 'G15_KEY_G3'
            if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3))
                                                          ^
    g15_plugin_uinput.c:166:11: error: use of undeclared identifier 'GKEY_OFFSET'
                    keydown(GKEY_OFFSET+2);
                            ^
    g15_plugin_uinput.c:167:26: error: use of undeclared identifier 'G15_KEY_G3'
            else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3))
                                    ^
    g15_plugin_uinput.c:167:53: error: use of undeclared identifier 'G15_KEY_G3'
            else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3))
                                                               ^
    g15_plugin_uinput.c:168:9: error: use of undeclared identifier 'GKEY_OFFSET'
                    keyup(GKEY_OFFSET+2);
                          ^
    g15_plugin_uinput.c:169:20: error: use of undeclared identifier 'G15_KEY_G4'
            if((currentkeys & G15_KEY_G4) && !(lastkeys & G15_KEY_G4))
                              ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    
    Pointy hat to:  manu
---
 sysutils/g15daemon/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sysutils/g15daemon/Makefile b/sysutils/g15daemon/Makefile
index 4a98d71b92f8..592578bc8d74 100644
--- a/sysutils/g15daemon/Makefile
+++ b/sysutils/g15daemon/Makefile
@@ -9,6 +9,7 @@ COMMENT=	Daemon for Logitech G15 Keyboards
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto
 LIB_DEPENDS+=	libg15.so:sysutils/libg15 \
 		libg15render.so:sysutils/libg15render \
 		libinput.so:x11/libinput