git: bec734ebf9c8 - main - x11/antimicrox: New port to map gamepad keys to keyboard, mouse, scripts and macros

From: Rodrigo Osorio <rodrigo_at_FreeBSD.org>
Date: Thu, 10 Aug 2023 09:31:56 UTC
The branch main has been updated by rodrigo:

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

commit bec734ebf9c87c964411edaa2687ae65b7092f64
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2023-08-10 08:35:51 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2023-08-10 08:57:45 +0000

    x11/antimicrox: New port to map gamepad keys to keyboard, mouse, scripts and macros
    
    AntiMicroX is a graphical program used to map gamepad keys to keyboard, mouse, scripts
    and macros. You can use this program to control any desktop application with a gamepad
    on Linux, Windows and FreeBSD.
    It can be also used for generating SDL2 configuration (useful for mapping atypical
    gamepads to generic ones like xbox360).
    
    This port is a suggested replacement for x11/antimicro which is unmaintained since 2017.
---
 x11/Makefile             |  1 +
 x11/antimicrox/Makefile  | 28 ++++++++++++++++++++++++++++
 x11/antimicrox/distinfo  |  3 +++
 x11/antimicrox/pkg-descr |  5 +++++
 x11/antimicrox/pkg-plist | 37 +++++++++++++++++++++++++++++++++++++
 5 files changed, 74 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index a0c9f2610c40..da07c7a3bbc4 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -10,6 +10,7 @@
     SUBDIR += alttab
     SUBDIR += aminal
     SUBDIR += antimicro
+    SUBDIR += antimicrox
     SUBDIR += appmenu-registrar
     SUBDIR += appres
     SUBDIR += apwal
diff --git a/x11/antimicrox/Makefile b/x11/antimicrox/Makefile
new file mode 100644
index 000000000000..555bfe37f5b3
--- /dev/null
+++ b/x11/antimicrox/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	antimicrox
+PORTVERSION=	3.3.4
+CATEGORIES=	x11
+
+MAINTAINER=	rodrigo@FreeBSD.org
+COMMENT=	Program to map gamepad keys to keyboard, mouse, scripts and macros
+WWW=		https://github.com/AntiMicroX/antimicrox
+
+LICENSE=	GPLv3
+
+BUILD_DEPENDS=	${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
+		itstool:textproc/itstool \
+		msgfmt:devel/gettext-tools
+
+USES=		cmake desktop-file-utils kde:5 pkgconfig qt:5 sdl \
+		shared-mime-info xorg
+USE_GITHUB=	yes
+GH_ACCOUNT=	AntimicroX
+USE_KDE=	ecm
+USE_QT=		concurrent core gui widgets buildtools:build qmake:build
+USE_SDL=	sdl2
+USE_XORG=	x11 xi xtst
+
+CMAKE_ARGS=	-DINSTALL_UINPUT_UDEV_RULES:BOOL=FALSE
+
+LDFLAGS+=	-lexecinfo
+
+.include <bsd.port.mk>
diff --git a/x11/antimicrox/distinfo b/x11/antimicrox/distinfo
new file mode 100644
index 000000000000..ee647eb28e10
--- /dev/null
+++ b/x11/antimicrox/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691584387
+SHA256 (AntimicroX-antimicrox-3.3.4_GH0.tar.gz) = c5e8d7c827f64b0a162133f9cac2ddc8dc0c9243541fae1a8ced5424b4fb7b3c
+SIZE (AntimicroX-antimicrox-3.3.4_GH0.tar.gz) = 2002552
diff --git a/x11/antimicrox/pkg-descr b/x11/antimicrox/pkg-descr
new file mode 100644
index 000000000000..6c4da08111b1
--- /dev/null
+++ b/x11/antimicrox/pkg-descr
@@ -0,0 +1,5 @@
+AntiMicroX is a graphical program used to map gamepad keys to keyboard, mouse,
+scripts and macros. You can use this program to control any desktop application
+with a gamepad on Linux, Windows and FreeBSD. It can be also used for generating
+SDL2 configuration (useful for mapping atypical gamepads to generic ones like
+xbox360).
diff --git a/x11/antimicrox/pkg-plist b/x11/antimicrox/pkg-plist
new file mode 100644
index 000000000000..6119fd1a8886
--- /dev/null
+++ b/x11/antimicrox/pkg-plist
@@ -0,0 +1,37 @@
+bin/antimicrox
+%%DATADIR%%/CHANGELOG.md
+%%DATADIR%%/LICENSE_SDL_GameControllerDB
+%%DATADIR%%/gamecontrollerdb.txt
+%%DATADIR%%/translations/antimicrox.qm
+%%DATADIR%%/translations/antimicrox_br.qm
+%%DATADIR%%/translations/antimicrox_de.qm
+%%DATADIR%%/translations/antimicrox_en.qm
+%%DATADIR%%/translations/antimicrox_es.qm
+%%DATADIR%%/translations/antimicrox_fi.qm
+%%DATADIR%%/translations/antimicrox_fr.qm
+%%DATADIR%%/translations/antimicrox_it.qm
+%%DATADIR%%/translations/antimicrox_ja.qm
+%%DATADIR%%/translations/antimicrox_ko.qm
+%%DATADIR%%/translations/antimicrox_nb_NO.qm
+%%DATADIR%%/translations/antimicrox_pl.qm
+%%DATADIR%%/translations/antimicrox_pt.qm
+%%DATADIR%%/translations/antimicrox_pt_BR.qm
+%%DATADIR%%/translations/antimicrox_ru.qm
+%%DATADIR%%/translations/antimicrox_rue.qm
+%%DATADIR%%/translations/antimicrox_sr.qm
+%%DATADIR%%/translations/antimicrox_sv.qm
+%%DATADIR%%/translations/antimicrox_uk.qm
+%%DATADIR%%/translations/antimicrox_zh_CN.qm
+share/applications/io.github.antimicrox.antimicrox.desktop
+share/icons/breeze/48x48/apps/antimicrox_trayicon.png
+share/icons/hicolor/128x128/apps/io.github.antimicrox.antimicrox.png
+share/icons/hicolor/16x16/apps/io.github.antimicrox.antimicrox.png
+share/icons/hicolor/24x24/apps/io.github.antimicrox.antimicrox.png
+share/icons/hicolor/32x32/apps/io.github.antimicrox.antimicrox.png
+share/icons/hicolor/48x48/apps/antimicrox_trayicon.png
+share/icons/hicolor/48x48/apps/io.github.antimicrox.antimicrox.png
+share/icons/hicolor/64x64/apps/io.github.antimicrox.antimicrox.png
+share/icons/hicolor/scalable/apps/io.github.antimicrox.antimicrox.svg
+share/man/man1/antimicrox.1.gz
+share/metainfo/io.github.antimicrox.antimicrox.appdata.xml
+share/mime/packages/io.github.antimicrox.antimicrox.xml