1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= xorg-driver-input-synaptics
7 SDESC[standard]= X.org input driver for Synaptics touchpad devices
8 HOMEPAGE= https://www.x.org/
12 SITES[main]= XORG/individual/driver
13 DISTFILE[1]= xf86-input-synaptics-1.9.0.tar.bz2:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILDRUN_DEPENDS= xorg-server:single:standard
23 XORG_COMPONENTS= inputproto xtst randrproto renderproto
24 scrnsaverproto resourceproto xf86driproto glproto
25 dri2proto dri3proto presentproto xineramaproto
27 DISTNAME= xf86-input-synaptics-1.9.0
31 LICENSE_FILE= MIT:{{WRKSRC}}/COPYING
33 FPC_EQUIVALENT= x11-drivers/xf86-input-synaptics
37 INSTALL_TARGET= install-strip
40 # disable evdev requirement on linux for now
41 ${REINPLACE_CMD} -e '/BUILD_EVENTCOMM="yes"/d' ${WRKSRC}/configure
43 [FILE:61:descriptions/desc.single]
44 This package contains the X.Org xf86-input-synaptics driver.
48 afba3289d7a40217a19d90db98ce181772f9ca6d77e1898727b0afcf02073b5a 501814 xf86-input-synaptics-1.9.0.tar.bz2
51 [FILE:253:manifests/plist.single]
55 include/xorg/synaptics-properties.h
56 lib/pkgconfig/xorg-synaptics.pc
57 lib/xorg/modules/input/synaptics_drv.so
58 share/X11/xorg.conf.d/70-synaptics.conf
62 share/man/man4/synaptics.4.gz
65 [FILE:515:patches/patch-src_eventcomm.c]
66 --- src/eventcomm.c.orig 2016-09-30 07:09:32 UTC
68 @@ -421,10 +421,15 @@ event_get_abs(struct libevdev *evdev, in
69 /* We dont trust a zero fuzz as it probably is just a lazy value */
70 if (fuzz && abs->fuzz > 0)
73 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
75 *res = abs->resolution;
77 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
79 + *res = abs->resolution;
86 [FILE:341:patches/patch-src_eventcomm.h]
87 --- src/eventcomm.h.orig 2015-11-24 23:47:05 UTC
90 #include <xorg-server.h>
92 #include <linux/input.h>
94 #include <linux/version.h>
102 #include <xf86Xinput.h>
103 #include "synproto.h"
107 [FILE:1575:patches/patch-src_synaptics.c]
108 --- src/synaptics.c.orig 2016-09-30 07:09:32 UTC
110 @@ -2599,7 +2599,7 @@ HandleScrolling(SynapticsPrivate * priv,
112 priv->scroll.delta_y += priv->scroll.coast_speed_y * dtime * abs(para->scroll_dist_vert);
113 delay = MIN(delay, POLL_MS);
114 - if (abs(priv->scroll.coast_speed_y) < ddy) {
115 + if (fabs(priv->scroll.coast_speed_y) < ddy) {
116 priv->scroll.coast_speed_y = 0;
117 priv->scroll.packets_this_scroll = 0;
119 @@ -2614,7 +2614,7 @@ HandleScrolling(SynapticsPrivate * priv,
120 double ddx = para->coasting_friction * dtime;
121 priv->scroll.delta_x += priv->scroll.coast_speed_x * dtime * abs(para->scroll_dist_horiz);
122 delay = MIN(delay, POLL_MS);
123 - if (abs(priv->scroll.coast_speed_x) < ddx) {
124 + if (fabs(priv->scroll.coast_speed_x) < ddx) {
125 priv->scroll.coast_speed_x = 0;
126 priv->scroll.packets_this_scroll = 0;
128 @@ -2670,8 +2670,8 @@ clickpad_guess_clickfingers(SynapticsPri
129 * really, this should be dependent on the touchpad size. Also,
130 * you'll need to find a touchpad that doesn't lie about it's
131 * size. Good luck. */
132 - if (abs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
133 - abs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
134 + if (fabs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
135 + fabs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
136 close_point |= (1 << j);
137 close_point |= (1 << i);