summaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-input-synaptics/Makefile
blob: 9434c1eee5e22c7ad50634f99b737f17ca3c9a95 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $FreeBSD$

PORTNAME=	xf86-input-synaptics
PORTVERSION=	${SYNAPTICS_VERSION}
PORTREVISION=	${SYNAPTICS_REVISION}
CATEGORIES=	x11-drivers

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

CONFLICTS=	synaptics-[0-9]*

OPTIONS_DEFINE=	HAL
OPTIONS_DEFAULT=HAL

NO_STAGE=	yes
.include <bsd.port.options.mk>

USES=		pathfix
USE_XORG=	x11 xtst
XORG_CAT=	driver

.if ${PORT_OPTIONS:MHAL}
PLIST_SUB+=	HAL=""
LIB_DEPENDS+=	hal.1:${PORTSDIR}/sysutils/hal
.else
PLIST_SUB+=	HAL="@comment "
.endif

MAN1=		syndaemon.1 \
		synclient.1
MAN4=		synaptics.4x

.if defined(WITH_NEW_XORG)
SYNAPTICS_VERSION=	1.7.1
SYNAPTICS_REVISION=	0
PLIST_SUB+=	NEW="" OLD="@comment "
.else
SYNAPTICS_VERSION=	1.6.4
SYNAPTICS_REVISION=	0
PLIST_SUB+=	NEW="@comment " OLD=""
EXTRA_PATCHES+=	${PATCHDIR}/extra-Makefile.in
.endif

post-install:
.if ${PORT_OPTIONS:MHAL}
	${MKDIR} ${PREFIX}/share/hal/fdi/policy/10osvendor
	${INSTALL_DATA} ${WRKSRC}/conf/11-x11-synaptics.fdi \
		${PREFIX}/share/hal/fdi/policy/10osvendor/
.if !defined(WITH_NEW_XORG)
	${MKDIR} ${PREFIX}/share/hal/fdi/policy/20thirdparty
	${INSTALL_DATA} ${WRKSRC}/conf/11-x11-synaptics.fdi \
		${PREFIX}/share/hal/fdi/policy/20thirdparty/
.endif
.endif

.include <bsd.port.mk>