aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-input-wacom/files
diff options
context:
space:
mode:
authorBartek Rutkowski <robak@FreeBSD.org>2015-03-13 15:03:26 +0000
committerBartek Rutkowski <robak@FreeBSD.org>2015-03-13 15:03:26 +0000
commitb71130f6337ed5af1813f47c261c242a2e013e6a (patch)
tree9be2e4b72769271f54620be096121a818c473faf /x11-drivers/xf86-input-wacom/files
parent6bf1052d04dd935e65f0ce72e0f98687ade7320c (diff)
downloadports-b71130f6337ed5af1813f47c261c242a2e013e6a.tar.gz
ports-b71130f6337ed5af1813f47c261c242a2e013e6a.zip
Notes
Diffstat (limited to 'x11-drivers/xf86-input-wacom/files')
-rw-r--r--x11-drivers/xf86-input-wacom/files/patch-configure29
-rw-r--r--x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c2
-rw-r--r--x11-drivers/xf86-input-wacom/files/pkg-message.in5
-rw-r--r--x11-drivers/xf86-input-wacom/files/wacom.in39
4 files changed, 74 insertions, 1 deletions
diff --git a/x11-drivers/xf86-input-wacom/files/patch-configure b/x11-drivers/xf86-input-wacom/files/patch-configure
new file mode 100644
index 000000000000..a7c15fdfe3cf
--- /dev/null
+++ b/x11-drivers/xf86-input-wacom/files/patch-configure
@@ -0,0 +1,29 @@
+To workaround the following error
+
+ $ clang conftest.c -I/usr/local/include/xorg
+ In file included from conftest.c:3:
+ In file included from /usr/local/include/xorg/xf86Optionstr.h:27:
+ /usr/local/include/xorg/list.h:216:15: error: unknown type name 'Bool'; did you mean
+ '_Bool'?
+ static inline Bool
+ ^~~~
+ _Bool
+ 1 error generated.
+
+ $ gcc conftest.c -I/usr/local/include/xorg
+ In file included from /usr/local/include/xorg/xf86Optionstr.h:27,
+ from conftest.c:3:
+ /usr/local/include/xorg/list.h:217: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xorg_list_is_empty'
+
+cf. http://cgit.freedesktop.org/xorg/xserver/commit/?id=13b5074
+
+--- configure~
++++ configure
+@@ -18788,6 +18788,7 @@ CFLAGS="$XORG_CFLAGS $CFLAGS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
++ typedef int Bool;
+ #include <xf86Optionstr.h>
+ int
+ main ()
diff --git a/x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c b/x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c
index 38f72b713dc6..434afaf0dc84 100644
--- a/x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c
+++ b/x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c
@@ -48,7 +48,7 @@
@@ -506,6 +518,7 @@ xf86UnblockSIGIO (int wasset)
/* This is not the same as the X server one, but it'll do for the tests */
- #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
+ #if HAVE_XF86OPTIONPTR
+#define InputOption InputOption_custom
typedef struct _InputOption {
struct _InputOption *next;
diff --git a/x11-drivers/xf86-input-wacom/files/pkg-message.in b/x11-drivers/xf86-input-wacom/files/pkg-message.in
index 248e28d8ef17..f3c3350647e5 100644
--- a/x11-drivers/xf86-input-wacom/files/pkg-message.in
+++ b/x11-drivers/xf86-input-wacom/files/pkg-message.in
@@ -11,3 +11,8 @@ into xorg.conf and add the following lines to ServerLayout section
InputDevice "wacom eraser"
InputDevice "wacom touch"
InputDevice "wacom pad"
+
+If moused(8) interferes with tablet input try adding the following
+line to /etc/rc.conf
+
+ wacom_enable="YES"
diff --git a/x11-drivers/xf86-input-wacom/files/wacom.in b/x11-drivers/xf86-input-wacom/files/wacom.in
new file mode 100644
index 000000000000..e4ee87bdbff7
--- /dev/null
+++ b/x11-drivers/xf86-input-wacom/files/wacom.in
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: wacom
+# REQUIRE: mountcritlocal
+# KEYWORD: nojail
+#
+# Add the following lines to /etc/rc.conf to enable this service:
+#
+# wacom_enable (bool): Set it to YES to add Wacom USB quirks on startup.
+# Default: NO
+
+. /etc/rc.subr
+
+name="wacom"
+rcvar="wacom_enable"
+
+load_rc_config "$name"
+
+: ${wacom_enable:="NO"}
+
+start_precmd="wacom_prepare"
+start_cmd="wacom_start"
+stop_cmd=":"
+
+wacom_prepare()
+{
+ kldload -n usb_quirk
+}
+
+wacom_start()
+{
+ # Prevent moused(8) from picking up bogus /dev/umsN
+ usbconfig add_dev_quirk_vplh 0x056a 0 0 0xffff UQ_MATCH_VENDOR_ONLY
+ usbconfig add_dev_quirk_vplh 0x056a 0 0 0xffff UQ_UMS_IGNORE
+}
+
+run_rc_command "$1"