# Created by: Anton Toernqvist <antont@inbox.lv>
# $FreeBSD: tags/RELEASE_12_0_0/x11/antimicro/Makefile 473503 2018-06-28 17:39:53Z tcberner $

PORTNAME=	antimicro
PORTVERSION=	2.23
PORTREVISION=	1
CATEGORIES=	x11

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Program for mapping keyboard and mouse to a gamepad

LICENSE=	GPLv3

USE_GITHUB=	yes
GH_ACCOUNT=	antimicro #Ryochan7

# Upstream assumes ${LOCALBASE}/lib is part of the default linker path. Pull
# request 268 fixes it for X11 libraries, but SDL2 is still using pkg-config
# output (without full paths).
LDFLAGS+=	-L${LOCALBASE}/lib

USE_XORG=	x11 xi xtst
USE_QT=		core gui linguisttools_build qmake_build buildtools_build widgets network
USE_SDL=	sdl2
USES=		cmake:outsource pkgconfig desktop-file-utils qt:5 shared-mime-info

.include <bsd.port.mk>
