python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / x11r7 / xdriver_xf86-input-mouse / 0001-build-get-rid-of-sdkdir.patch
blobd5f97f98c13c83bafea48c0575cf839f941c5071
1 From aef3d9bca4d77db833f71d50b1c84b16c69d7deb Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Sun, 23 Oct 2016 22:53:21 +0200
4 Subject: [PATCH] build: get rid of sdkdir
6 Use of sdkdir causes problems during cross-compilation, where the full
7 path is then appended to the DESTDIR, leading to host paths being
8 appended in the target:
9 https://bugs.busybox.net/show_bug.cgi?id=8696
11 Other drivers (e.g. keyboard) got rid of sdkdir. Do the same.
13 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
14 ---
15 Makefile.am | 3 ---
16 configure.ac | 10 ----------
17 include/Makefile.am | 4 +++-
18 xorg-mouse.pc.in | 3 +--
19 4 files changed, 4 insertions(+), 16 deletions(-)
21 diff --git a/Makefile.am b/Makefile.am
22 index 7142485..efe66cb 100644
23 --- a/Makefile.am
24 +++ b/Makefile.am
25 @@ -34,9 +34,6 @@ ChangeLog:
27 dist-hook: ChangeLog INSTALL
29 -# Provide an sdk location that is writable by this module
30 -DISTCHECK_CONFIGURE_FLAGS = --with-sdkdir='$${includedir}/xorg'
32 if LINT
33 # Check source code with tools like lint & sparse
34 lint:
35 diff --git a/configure.ac b/configure.ac
36 index 15d9047..515681d 100644
37 --- a/configure.ac
38 +++ b/configure.ac
39 @@ -60,16 +60,6 @@ AC_ARG_WITH(xorg-module-dir,
40 inputdir=${moduledir}/input
41 AC_SUBST(inputdir)
43 -# X Server SDK location is required to install xf86-mouse-properties.h
44 -# This location is also relayed in the xorg-mouse.pc file
45 -sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
47 -# Workaround overriding sdkdir to be able to create a tarball when user has no
48 -# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
49 -AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"])
50 -AC_SUBST([sdkdir])
53 # Work out which OS mouse driver we need to build
54 case $host_os in
55 linux*)
56 diff --git a/include/Makefile.am b/include/Makefile.am
57 index 27ce0fb..2b85e4e 100644
58 --- a/include/Makefile.am
59 +++ b/include/Makefile.am
60 @@ -1 +1,3 @@
61 -sdk_HEADERS = xf86-mouse-properties.h
62 +# Location formerly known as 'sdkdir'
63 +xorgincludedir = $(includedir)/xorg
64 +xorginclude_HEADERS = xf86-mouse-properties.h
65 diff --git a/xorg-mouse.pc.in b/xorg-mouse.pc.in
66 index 57df596..8355e61 100644
67 --- a/xorg-mouse.pc.in
68 +++ b/xorg-mouse.pc.in
69 @@ -1,6 +1,7 @@ prefix=@prefix@
70 -sdkdir=@sdkdir@
71 +prefix=@prefix@
72 +includedir=@includedir@
74 Name: xorg-mouse
75 Description: X.Org mouse input driver for non-evdev OS'es
76 Version: @PACKAGE_VERSION@
77 -Cflags: -I${sdkdir}
78 +Cflags: -I${includedir}/xorg
79 --
80 2.7.4