# Created by: Anton Toernqvist <antont@inbox.lv>
# $FreeBSD: head/x11/antimicro/Makefile 460233 2018-01-28 23:16:12Z rakuco $

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_QT5=	core gui linguisttools_build qmake_build buildtools_build widgets network
USE_SDL=	sdl2
USES=		cmake:outsource pkgconfig desktop-file-utils shared-mime-info

.include <bsd.port.mk>
