aboutsummaryrefslogtreecommitdiff
path: root/misc/utouch-kmod/Makefile
blob: 3a34781b6adaac7ec2a275d352eea30defee494c (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
30
31
32
33
34
35
36
37
38
39
PORTNAME=	utouch-kmod
PORTVERSION=	0.0.5
CATEGORIES=	misc

MAINTAINER=	wulf@FreeBSD.org
COMMENT=	Kernel driver for absolute USB HID mice
WWW=		https://github.com/wulf7/utouch

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		kmod uidfix

USE_GITHUB=	yes
GH_ACCOUNT=	wulf7
GH_PROJECT=	utouch

PLIST_FILES=	${KMODDIR}/utouch.ko

OPTIONS_DEFINE=	SOURCE
OPTIONS_DEFAULT=SOURCE
SOURCE_DESC=	Install kernel module sources

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>