Ravenports generated: 22 Dec 2017 07:38
[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 post-patch:
40         # disable evdev requirement on linux for now
41         ${REINPLACE_CMD} -e '/BUILD_EVENTCOMM="yes"/d' ${WRKSRC}/configure
42
43 [FILE:61:descriptions/desc.single]
44 This package contains the X.Org xf86-input-synaptics driver.
45
46
47 [FILE:113:distinfo]
48 afba3289d7a40217a19d90db98ce181772f9ca6d77e1898727b0afcf02073b5a       501814 xf86-input-synaptics-1.9.0.tar.bz2
49
50
51 [FILE:253:manifests/plist.single]
52 bin/
53  synclient
54  syndaemon
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
59 share/man/man1/
60  synclient.1.gz
61  syndaemon.1.gz
62 share/man/man4/synaptics.4.gz
63
64
65 [FILE:515:patches/patch-src_eventcomm.c]
66 --- src/eventcomm.c.orig        2016-09-30 07:09:32 UTC
67 +++ src/eventcomm.c
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)
71          *fuzz = abs->fuzz;
72 +#ifdef __linux__
73  #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
74      if (res)
75          *res = abs->resolution;
76  #endif
77 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
78 +    if (res)
79 +        *res = abs->resolution;
80 +#endif
81
82      return 0;
83  }
84
85
86 [FILE:341:patches/patch-src_eventcomm.h]
87 --- src/eventcomm.h.orig        2015-11-24 23:47:05 UTC
88 +++ src/eventcomm.h
89 @@ -30,7 +30,15 @@
90  #include <xorg-server.h>
91  
92  #include <linux/input.h>
93 +#ifdef __linux__
94  #include <linux/version.h>
95 +#else
96 +#undef BUS_NONE
97 +#undef BUS_PCI
98 +#undef BUS_SBUS
99 +#undef BUS_PLATFORM
100 +#undef BUS_last
101 +#endif
102  #include <xf86Xinput.h>
103  #include "synproto.h"
104  
105
106
107 [FILE:1575:patches/patch-src_synaptics.c]
108 --- src/synaptics.c.orig        2016-09-30 07:09:32 UTC
109 +++ src/synaptics.c
110 @@ -2599,7 +2599,7 @@ HandleScrolling(SynapticsPrivate * priv,
111  
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;
118          }
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;
127          }
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);
138              }
139