File: 0001-add-pkg-config-configuration.patch

package info (click to toggle)
x52pro 0.1.1-2.3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 164 kB
  • ctags: 73
  • sloc: ansic: 128; makefile: 45
file content (39 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Grzegorz Kolorz <gkolorz@gmail.com>
Date: Tue, 10 May 2011 12:24:40 +0200
Subject: add pkg-config configuration

---
 Makefile  |    1 +
 x52pro.pc |   10 ++++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 x52pro.pc

diff --git a/Makefile b/Makefile
index a54b424..894465f 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ install:
 	install -D x52output $(DESTDIR)/usr/bin/x52output
 	install -D -m 644 99-x52pro.rules $(DESTDIR)/etc/udev/rules.d/99-x52pro.rules
 	install -D -m 644 x52output.1.gz $(DESTDIR)/usr/share/man/man1/x52output.1.gz
+	install -D -m 644 x52pro.pc $(DESTDIR)/usr/lib/pkgconfig/x52pro.pc
 
 x52output: x52output.o $(X52LIB) -lusb
 x52output.1.gz: x52output.1
diff --git a/x52pro.pc b/x52pro.pc
new file mode 100644
index 0000000..389ea66
--- /dev/null
+++ b/x52pro.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libx52pro
+Description: MFD and LED configuration library for the Saitek X52 Pro Joystick
+Version: 0.1.1
+Libs: -L${libdir} -lx52pro
+Cflags: -I${includedir}
--