Ravenports generated: 10 Oct 2017 12:29
[ravenports.git] / bucket_6C / xorg-driver-input-synaptics
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               xorg-driver-input-synaptics
4 VERSION=                1.9.0
5 KEYWORDS=               x11_drivers
6 VARIANTS=               standard
7 SDESC[standard]=        X.org input driver for Synaptics touchpad devices
8 HOMEPAGE=               https://www.x.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            XORG/individual/driver
13 DISTFILE[1]=            xf86-input-synaptics-1.9.0.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILDRUN_DEPENDS=       xorg-server:single:standard
21
22 USES=                   libtool
23 XORG_COMPONENTS=        inputproto xtst randrproto renderproto
24                         scrnsaverproto resourceproto xf86driproto glproto
25                         dri2proto dri3proto presentproto xineramaproto
26
27 DISTNAME=               xf86-input-synaptics-1.9.0
28
29 LICENSE=                MIT:single
30 LICENSE_SCHEME=         solo
31 LICENSE_FILE=           MIT:{{WRKSRC}}/COPYING
32
33 FPC_EQUIVALENT=         x11-drivers/xf86-input-synaptics
34
35 MUST_CONFIGURE=         gnu
36
37 INSTALL_TARGET=         install-strip
38
39 [FILE:61:descriptions/desc.single]
40 This package contains the X.Org xf86-input-synaptics driver.
41
42
43 [FILE:113:distinfo]
44 afba3289d7a40217a19d90db98ce181772f9ca6d77e1898727b0afcf02073b5a       501814 xf86-input-synaptics-1.9.0.tar.bz2
45
46
47 [FILE:253:manifests/plist.single]
48 bin/
49  synclient
50  syndaemon
51 include/xorg/synaptics-properties.h
52 lib/pkgconfig/xorg-synaptics.pc
53 lib/xorg/modules/input/synaptics_drv.so
54 share/X11/xorg.conf.d/70-synaptics.conf
55 share/man/man1/
56  synclient.1.gz
57  syndaemon.1.gz
58 share/man/man4/synaptics.4.gz
59
60
61 [FILE:515:patches/patch-src_eventcomm.c]
62 --- src/eventcomm.c.orig        2016-09-30 07:09:32 UTC
63 +++ src/eventcomm.c
64 @@ -421,10 +421,15 @@ event_get_abs(struct libevdev *evdev, in
65      /* We dont trust a zero fuzz as it probably is just a lazy value */
66      if (fuzz && abs->fuzz > 0)
67          *fuzz = abs->fuzz;
68 +#ifdef __linux__
69  #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
70      if (res)
71          *res = abs->resolution;
72  #endif
73 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
74 +    if (res)
75 +        *res = abs->resolution;
76 +#endif
77
78      return 0;
79  }
80
81
82 [FILE:341:patches/patch-src_eventcomm.h]
83 --- src/eventcomm.h.orig        2015-11-24 23:47:05 UTC
84 +++ src/eventcomm.h
85 @@ -30,7 +30,15 @@
86  #include <xorg-server.h>
87  
88  #include <linux/input.h>
89 +#ifdef __linux__
90  #include <linux/version.h>
91 +#else
92 +#undef BUS_NONE
93 +#undef BUS_PCI
94 +#undef BUS_SBUS
95 +#undef BUS_PLATFORM
96 +#undef BUS_last
97 +#endif
98  #include <xf86Xinput.h>
99  #include "synproto.h"
100  
101
102
103 [FILE:1575:patches/patch-src_synaptics.c]
104 --- src/synaptics.c.orig        2016-09-30 07:09:32 UTC
105 +++ src/synaptics.c
106 @@ -2599,7 +2599,7 @@ HandleScrolling(SynapticsPrivate * priv,
107  
108          priv->scroll.delta_y += priv->scroll.coast_speed_y * dtime * abs(para->scroll_dist_vert);
109          delay = MIN(delay, POLL_MS);
110 -        if (abs(priv->scroll.coast_speed_y) < ddy) {
111 +        if (fabs(priv->scroll.coast_speed_y) < ddy) {
112              priv->scroll.coast_speed_y = 0;
113              priv->scroll.packets_this_scroll = 0;
114          }
115 @@ -2614,7 +2614,7 @@ HandleScrolling(SynapticsPrivate * priv,
116          double ddx = para->coasting_friction * dtime;
117          priv->scroll.delta_x += priv->scroll.coast_speed_x * dtime * abs(para->scroll_dist_horiz);
118          delay = MIN(delay, POLL_MS);
119 -        if (abs(priv->scroll.coast_speed_x) < ddx) {
120 +        if (fabs(priv->scroll.coast_speed_x) < ddx) {
121              priv->scroll.coast_speed_x = 0;
122              priv->scroll.packets_this_scroll = 0;
123          }
124 @@ -2670,8 +2670,8 @@ clickpad_guess_clickfingers(SynapticsPri
125               * really, this should be dependent on the touchpad size. Also,
126               * you'll need to find a touchpad that doesn't lie about it's
127               * size. Good luck. */
128 -            if (abs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
129 -                abs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
130 +            if (fabs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
131 +                fabs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
132                  close_point |= (1 << j);
133                  close_point |= (1 << i);
134              }
135