1 Only in detect-stylus-0.13: .pc
2 diff -ur detect-stylus-0.13.orig/Makefile detect-stylus-0.13/Makefile
3 --- detect-stylus-0.13.orig/Makefile 2004-09-08 17:57:37.000000000 +0200
4 +++ detect-stylus-0.13/Makefile 2006-04-18 21:00:57.000000000 +0200
6 PACKAGE_CFLAGS += -Os -fomit-frame-pointer
8 PACKAGE_CPPFLAGS += -DPACKAGE=\"$(PACKAGE)\" -DPREFIX=\"$(PREFIX)\" -DPACKAGE_LOCALE_DIR=\"$(PREFIX)/share/locale\"
10 +PACKAGE_CPPFLAGS += -DNOX
12 PACKAGE_LDFLAGS += `pkg-config --libs x11`
15 OBJS = $(patsubst %,%.o,$(MEMBERS))
18 mkdir -p $(DESTDIR)$(PREFIX)/bin/
20 install $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
21 - mkdir -p $(DESTDIR)/etc/X11/Xinit.d
22 - install 70detect-stylus $(DESTDIR)/etc/X11/Xinit.d
23 + if [ -z $(NOX) ]; then mkdir -p $(DESTDIR)/etc/X11/Xinit.d && install -m 0755 70detect-stylus $(DESTDIR)/etc/X11/Xinit.d; fi
26 rm -f $(PACKAGE) $(OBJS)
27 Only in detect-stylus-0.13: detect-stylus
28 diff -ur detect-stylus-0.13.orig/detect-stylus.c detect-stylus-0.13/detect-stylus.c
29 --- detect-stylus-0.13.orig/detect-stylus.c 2006-04-18 20:22:13.000000000 +0200
30 +++ detect-stylus-0.13/detect-stylus.c 2006-04-19 21:18:09.000000000 +0200
37 #include <X11/Xatom.h>
40 #include <linux/input.h>
44 main (int argc, char *argv[])
59 if (!strcmp (argv[i], "--device"))
62 + if (strstr (argv[0], "detect-tsdevice"))
65 fd = try_open ("/dev/touchscreen/0");
69 exit (1); /* Nothing found */
72 + fprintf (stderr, "This version of detect-stylus was compiled without X support.");
84 Only in detect-stylus-0.13.orig/: detect-stylus.c.orig
85 Only in detect-stylus-0.13: detect-stylus.o
86 Only in detect-stylus-0.13: patches