Ravenports generated: 26 Nov 2019 23:39
[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.1
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.1.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=        xorgproto xtst
24
25 DISTNAME=               xf86-input-synaptics-1.9.1
26
27 LICENSE=                MIT:single
28 LICENSE_FILE=           MIT:{{WRKSRC}}/COPYING
29 LICENSE_SCHEME=         solo
30
31 FPC_EQUIVALENT=         x11-drivers/xf86-input-synaptics
32
33 MUST_CONFIGURE=         gnu
34 CONFIGURE_ENV=          DRIVER_MAN_SUFFIX=4
35
36 INSTALL_TARGET=         install-strip
37
38 post-patch:
39         # disable evdev requirement on linux for now
40         ${REINPLACE_CMD} -e '/BUILD_EVENTCOMM="yes"/d' ${WRKSRC}/configure
41
42 [FILE:61:descriptions/desc.single]
43 This package contains the X.Org xf86-input-synaptics driver.
44
45
46 [FILE:113:distinfo]
47 7af83526eff1c76e8b9e1553b34245c203d029028d8044dd9dcf71eef1001576       503722 xf86-input-synaptics-1.9.1.tar.bz2
48
49
50 [FILE:253:manifests/plist.single]
51 bin/
52  synclient
53  syndaemon
54 include/xorg/synaptics-properties.h
55 lib/pkgconfig/xorg-synaptics.pc
56 lib/xorg/modules/input/synaptics_drv.so
57 share/X11/xorg.conf.d/70-synaptics.conf
58 share/man/man1/
59  synclient.1.gz
60  syndaemon.1.gz
61 share/man/man4/synaptics.4.gz
62
63
64 [FILE:515:patches/patch-src_eventcomm.c]
65 --- src/eventcomm.c.orig        2016-09-30 07:09:32 UTC
66 +++ src/eventcomm.c
67 @@ -421,10 +421,15 @@ event_get_abs(struct libevdev *evdev, in
68      /* We dont trust a zero fuzz as it probably is just a lazy value */
69      if (fuzz && abs->fuzz > 0)
70          *fuzz = abs->fuzz;
71 +#ifdef __linux__
72  #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
73      if (res)
74          *res = abs->resolution;
75  #endif
76 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
77 +    if (res)
78 +        *res = abs->resolution;
79 +#endif
80
81      return 0;
82  }
83
84
85 [FILE:341:patches/patch-src_eventcomm.h]
86 --- src/eventcomm.h.orig        2015-11-24 23:47:05 UTC
87 +++ src/eventcomm.h
88 @@ -30,7 +30,15 @@
89  #include <xorg-server.h>
90  
91  #include <linux/input.h>
92 +#ifdef __linux__
93  #include <linux/version.h>
94 +#else
95 +#undef BUS_NONE
96 +#undef BUS_PCI
97 +#undef BUS_SBUS
98 +#undef BUS_PLATFORM
99 +#undef BUS_last
100 +#endif
101  #include <xf86Xinput.h>
102  #include "synproto.h"
103  
104
105
106 [FILE:1575:patches/patch-src_synaptics.c]
107 --- src/synaptics.c.orig        2016-09-30 07:09:32 UTC
108 +++ src/synaptics.c
109 @@ -2599,7 +2599,7 @@ HandleScrolling(SynapticsPrivate * priv,
110  
111          priv->scroll.delta_y += priv->scroll.coast_speed_y * dtime * abs(para->scroll_dist_vert);
112          delay = MIN(delay, POLL_MS);
113 -        if (abs(priv->scroll.coast_speed_y) < ddy) {
114 +        if (fabs(priv->scroll.coast_speed_y) < ddy) {
115              priv->scroll.coast_speed_y = 0;
116              priv->scroll.packets_this_scroll = 0;
117          }
118 @@ -2614,7 +2614,7 @@ HandleScrolling(SynapticsPrivate * priv,
119          double ddx = para->coasting_friction * dtime;
120          priv->scroll.delta_x += priv->scroll.coast_speed_x * dtime * abs(para->scroll_dist_horiz);
121          delay = MIN(delay, POLL_MS);
122 -        if (abs(priv->scroll.coast_speed_x) < ddx) {
123 +        if (fabs(priv->scroll.coast_speed_x) < ddx) {
124              priv->scroll.coast_speed_x = 0;
125              priv->scroll.packets_this_scroll = 0;
126          }
127 @@ -2670,8 +2670,8 @@ clickpad_guess_clickfingers(SynapticsPri
128               * really, this should be dependent on the touchpad size. Also,
129               * you'll need to find a touchpad that doesn't lie about it's
130               * size. Good luck. */
131 -            if (abs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
132 -                abs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
133 +            if (fabs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
134 +                fabs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
135                  close_point |= (1 << j);
136                  close_point |= (1 << i);
137              }
138