# $FreeBSD: tags/RELEASE_10_1_0/x11-drivers/xf86-input-joystick/Makefile 367997 2014-09-12 00:01:23Z gerald $

PORTNAME=	xf86-input-joystick
PORTVERSION=	${JOYVER}
PORTREVISION=	${JOYREVISION}
CATEGORIES=	x11-drivers

MAINTAINER=	x11@FreeBSD.org
COMMENT=	X.Org joystick input driver

XORG_CAT=	driver

.include <bsd.port.options.mk>

.if defined(WITH_NEW_XORG)
JOYVER=		1.6.2
JOYREVISION=	2
.else
JOYVER=		1.5.0
JOYREVISION=	3
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
		${WRKSRC}/Makefile.in

.include <bsd.port.mk>
