[PATCH 2/2] Add pkg-config file
Thierry Reding
thierry.reding at gmail.com
Wed Sep 4 14:34:36 CEST 2013
pkg-config support makes it easier for other software to use the libev
library.
Signed-off-by: Thierry Reding <thierry.reding at gmail.com>
---
Makefile.am | 3 +++
configure.ac | 2 +-
libev.pc.in | 9 +++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
create mode 100644 libev.pc.in
diff --git a/Makefile.am b/Makefile.am
index f3a5eb1..0a1837c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,5 +17,8 @@ lib_LTLIBRARIES = libev.la
libev_la_SOURCES = ev.c event.c
libev_la_LDFLAGS = -version-info $(VERSION_INFO)
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libev.pc
+
ev.3: ev.pod
pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance full featured event loop" -s3 <$< >$@
diff --git a/configure.ac b/configure.ac
index 7b240b5..38a61bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,5 +23,5 @@ AC_PROG_LIBTOOL
m4_include([libev.m4])
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile libev.pc])
AC_OUTPUT
diff --git a/libev.pc.in b/libev.pc.in
new file mode 100644
index 0000000..8ef423f
--- /dev/null
+++ b/libev.pc.in
@@ -0,0 +1,9 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libev
+Description: a full-featured and high-performance event loop
+Version: @VERSION@
+Libs: -lev
--
1.8.4
More information about the libev
mailing list