summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-09-26 10:42:05 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-10-03 14:39:25 +0930
commite138e4b79a750e22712802b84bf36a70a929d12f (patch)
tree8e707157274c9f5280b9d899e6a3f05aca828d7e
parent125e2b8ce23b8ceea250ae52ba69cd14af5592f9 (diff)
Install xorg-evdev.pc for clients who need evdev-properties.h
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac7
-rw-r--r--include/Makefile.am2
-rw-r--r--xorg-evdev.pc.in6
5 files changed, 19 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 38eebd9..78a4243 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,4 @@ missing
stamp-h1
*.bz2
*.gz
+*.pc
diff --git a/Makefile.am b/Makefile.am
index 11064e0..99f7160 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,10 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = src man
+SUBDIRS = src man include
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = xorg-evdev.pc
EXTRA_DIST = ChangeLog autogen.sh
diff --git a/configure.ac b/configure.ac
index 5a29874..72e6df7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,6 +58,7 @@ XORG_DRIVER_CHECK_EXT(XINPUT, inputproto)
# Checks for pkg-config packages
PKG_CHECK_MODULES(XORG, xorg-server xproto $REQUIRED_MODULES)
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
+AC_SUBST(sdkdir)
CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
AC_SUBST([CFLAGS])
@@ -70,4 +71,8 @@ AC_HEADER_STDC
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION
-AC_OUTPUT([Makefile src/Makefile man/Makefile])
+AC_OUTPUT([Makefile
+ src/Makefile
+ man/Makefile
+ include/Makefile
+ xorg-evdev.pc])
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644
index 0000000..58d7c39
--- /dev/null
+++ b/include/Makefile.am
@@ -0,0 +1,2 @@
+EXTRA_DIST = evdev-properties.h
+sdk_HEADERS = evdev-properties.h
diff --git a/xorg-evdev.pc.in b/xorg-evdev.pc.in
new file mode 100644
index 0000000..20710a6
--- /dev/null
+++ b/xorg-evdev.pc.in
@@ -0,0 +1,6 @@
+sdkdir=@sdkdir@
+
+Name: xorg-evdev
+Description: X.Org evdev input driver.
+Version: @PACKAGE_VERSION@
+Cflags: -I${sdkdir}