aboutsummaryrefslogtreecommitdiff
path: root/emulators/joytran/Makefile
blob: 5ee3c127613875e3a246e7cfe10ce842dcf49d5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Created by: Timothy Beyer <beyert@cs.ucr.edu>

PORTNAME=	joytran
PORTVERSION=	0.9.5.2
PORTREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	http://sourceforge.net/projects/${PORTNAME}/files/

MAINTAINER=	beyert@cs.ucr.edu
COMMENT=	Joystick to keyboard/mouse events translator written in C

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYRIGHT

USES=		cmake:insource pkgconfig sdl tar:bzip2 xorg
USE_SDL=	sdl2
USE_XORG=	x11 xtst
CMAKE_ARGS=	-DLOCALBASE:PATH="${LOCALBASE}"

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/WARNING_FLAGS/s,-pedantic,& -fcommon,' \
		${WRKSRC}/CMakeLists.txt

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>