PORTNAME=	antimicrox
PORTVERSION=	3.5.1
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 linguist 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>
