# $MidnightBSD: trunk/x11-drivers/xf86-input-joystick/Makefile 15734 2013-12-22 18:13:23Z laffer1 $

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

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	X.Org joystick input driver
LICENSE=	mit

XORG_CAT=	driver

.include <bsd.mport.options.mk>

.if defined(WITH_NEW_XORG)
JOYVER=		1.6.2
JOYREVISION=	0
.else
JOYVER=		1.5.0
JOYREVISION=	1
.endif

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

.include <bsd.port.mk>
