1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/misc/utouch-kmod/Makefile
Vladimir Kondratyev fe9c3eb5aa utouch - driver for absolute USB HID mouses emulated by some virtualization
systems like Virtual Box, BHyve, e.t.c. It uses evdev protocol to communicate
with userland applications like libinput and xf86-input-evdev.

The driver should be installed in to the guest FreeBSD system. Host system
should be configured to emulate mouse as a single-touch USB tablet.

WWW: https://github.com/wulf7/utouch

It is a temporary solution until absolute coords support is added to ums(4)
driver. That is why it is not imported into the base system.

PR:		240261
Approved by:	koobs
2019-09-09 20:37:45 +00:00

42 lines
852 B
Makefile

# Created by: Vladimir Kondratyev <wulf@FreeBSD.org>
# $FreeBSD$
PORTNAME= utouch-kmod
PORTVERSION= 0.0.1
CATEGORIES= misc
MAINTAINER= wulf@FreeBSD.org
COMMENT= Kernel driver for absolute USB HID mouses
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= kmod uidfix
OPTIONS_DEFINE= SOURCE
OPTIONS_DEFAULT=SOURCE
SOURCE_DESC= Install kernel module sources
USE_GITHUB= yes
GH_ACCOUNT= wulf7
GH_PROJECT= utouch
PLIST_FILES= ${KMODDIR}/utouch.ko
KMODSRC_DIR= sys/modules/${PORTNAME}
KMODSRC_FILES= Makefile utouch.c
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSOURCE}
PLIST_FILES+= ${KMODSRC_FILES:S|^|${KMODSRC_DIR}/|}
.endif
post-install-SOURCE-on:
${MKDIR} ${STAGEDIR}${PREFIX}/${KMODSRC_DIR}
.for file in ${KMODSRC_FILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/${KMODSRC_DIR}
.endfor
.include <bsd.port.mk>