summaryrefslogtreecommitdiff
path: root/devel/linux-js/Makefile
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2006-03-21 16:03:50 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2006-03-21 16:03:50 +0000
commitcf569742410088cc644b46110fc28567a0cab7fc (patch)
treef0d22ac874daa63d16340284998343e5fa5448e8 /devel/linux-js/Makefile
parentAdd missing perl dep. (diff)
Version 2.0:
- USB joystick support has been added - Calling select() with a large timeout did not work properly: fixed - Short reads (< sizeof(struct js_event)) did not work: fixed - The JSIOCGCORR/JSCIOCSCORR ioctls now handle all the axes - Each joystick is now presented as a separate js device - A manual page has been added
Notes
Notes: svn path=/head/; revision=157891
Diffstat (limited to 'devel/linux-js/Makefile')
-rw-r--r--devel/linux-js/Makefile25
1 files changed, 22 insertions, 3 deletions
diff --git a/devel/linux-js/Makefile b/devel/linux-js/Makefile
index 0c396abeb130..960f3c82118a 100644
--- a/devel/linux-js/Makefile
+++ b/devel/linux-js/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= linux-js
-PORTVERSION= 1.0
+PORTVERSION= 2.0
CATEGORIES= devel emulators
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= jylefort
@@ -17,8 +17,14 @@ COMMENT= The Linux joystick interface ported to FreeBSD
PROGRAMS= jscal jstest
MAN1= ${PROGRAMS:S|$|.1|}
+MAN4= linux_js.4
PORTDOCS= joystick-api.txt
-USE_RC_SUBR= jscal.sh
+USE_RCORDER= jscal.sh linux_js.sh
+
+OPTIONS= JOY "PC joystick support" on \
+ UHID "USB joystick support" on
+
+MAKE_ENV= WITHOUT_DEBUG=yes
.include <bsd.port.pre.mk>
@@ -30,11 +36,24 @@ IGNORE= requires FreeBSD 5.3 or superior
IGNORE= requires kernel source files
.endif
+.if defined(WITHOUT_JOY)
+MAKE_ENV+= WITHOUT_JOY=yes
+.endif
+
+.if defined(WITHOUT_UHID)
+MAKE_ENV+= WITHOUT_UHID=yes
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/linux_js.4
+
post-install:
${MKDIR} ${PREFIX}/include/linux
${INSTALL_DATA} ${WRKSRC}/joystick.h ${PREFIX}/include/linux
${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${PREFIX}/bin
- ${INSTALL_MAN} ${MAN1:S|^|${WRKSRC}/|} ${PREFIX}/man/man1
+.for s in 1 4
+ ${INSTALL_MAN} ${MAN${s}:S|^|${WRKSRC}/|} ${PREFIX}/man/man${s}
+.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/joystick-api.txt ${DOCSDIR}