aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/add-pkgconfig-support.patch
blob: bc68540ca539b65a6c23676c2374e0e4fb9fb430 (plain)
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
40
41
42
43
44
45
Description: Add pkgconfig support
Author: Jonathan McCrohan <jmccrohan@gmail.com>
Date: Thu, 26 Apr 2012 00:26:23 +0100
---
--- /dev/null
+++ libphidget-2.1.8.20120216/libphidget21.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libphidget21
+Description: Phidgets library
+Version: @VERSION@
+Libs: -L${libdir} -lphidgets21
+Cflags: -I${includedir}
--- libphidget-2.1.8.20120216.orig/configure.ac
+++ libphidget-2.1.8.20120216/configure.ac
@@ -91,4 +91,4 @@ AM_CONDITIONAL([INTERNAL_UNICONV], [test
 
 AC_CONFIG_FILES([Makefile
                  examples/Makefile])
-AC_OUTPUT
+AC_OUTPUT([libphidget21.pc])
--- libphidget-2.1.8.20120216.orig/Makefile.am
+++ libphidget-2.1.8.20120216/Makefile.am
@@ -2,6 +2,9 @@
 
 AM_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/utils -I$(top_srcdir)/dict -I$(top_srcdir)/linux -I$(top_srcdir)/include -D_LINUX
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libphidget21.pc
+
 lib_LTLIBRARIES = libphidget21.la
 
 # Rules for unpdating the libtool version:
@@ -119,6 +122,7 @@ EXTRA_DIST = examples/ifkit.c \
 	hotplug/phidgets.usermap \
 	hotplug/phidgets \
 	version.sh \
+	libphidget21.pc.in \
 	Java/com/phidgets/DictionaryKeyListener.java \
 	Java/com/phidgets/TextLCDPhidget.java \
 	Java/com/phidgets/SpatialEventData.java \