summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-09-11 16:54:49 +0200
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-09-11 16:54:49 +0200
commitcea022d36e316d8fd08c34159bef10ee4a9be5da (patch)
tree15e568f814cf5d84a59a37f626121dc8245a489c
parent246595ab5a5d59f0f76a53a2ab6fd10cd559379f (diff)
eloop: add pkg-config file
The pkg-config file allows other users of libeloop to more easily configure build-time options for eloop. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
-rw-r--r--libeloop.pc.in11
4 files changed, 17 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index bbb5856..48f7169 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ config.status
configure
*.tar.bz2
libtool
+libeloop.pc
m4/
stamp-*
.deps
diff --git a/Makefile.am b/Makefile.am
index 254c1f5..b1e196c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,6 +12,8 @@ EXTRA_DIST = \
COPYING \
NEWS
CLEANFILES =
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA =
#
# Build targets
@@ -290,6 +292,8 @@ libeloop_la_LDFLAGS = \
include_HEADERS += \
src/eloop.h
+pkgconfig_DATA += libeloop.pc
+
#
# libkmscon-static
# This static library contains all small helpers that are used in several other
diff --git a/configure.ac b/configure.ac
index 0cfe584..1e99a0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -547,7 +547,7 @@ AC_SUBST(FREETYPE2_LIBS)
AC_SUBST(PANGO_CFLAGS)
AC_SUBST(PANGO_LIBS)
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile libeloop.pc])
AC_OUTPUT([src/genshader.c])
#
diff --git a/libeloop.pc.in b/libeloop.pc.in
new file mode 100644
index 0000000..b9dc895
--- /dev/null
+++ b/libeloop.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: eloop
+Description: Epoll-based Event-Loop Library
+URL: @PACKAGE_URL@
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -leloop
+Cflags: -I${includedir}