| 1 | From 01d2c386b58afa49567ccc079c963f76dc2e60f3 Mon Sep 17 00:00:00 2001
|
| 2 | From: Mathieu Bridon <[email protected]>
|
| 3 | Date: Fri, 8 Feb 2013 15:40:51 +0800
|
| 4 | Subject: [PATCH] Add pkgconfig support
|
| 5 |
|
| 6 | ---
|
| 7 | Makefile.am | 4 ++++
|
| 8 | configure.ac | 2 +-
|
| 9 | libev.pc.in | 11 +++++++++++
|
| 10 | 3 files changed, 16 insertions(+), 1 deletion(-)
|
| 11 | create mode 100644 libev.pc.in
|
| 12 |
|
| 13 | diff --git a/Makefile.am b/Makefile.am
|
| 14 | index 059305b..9e556c0 100644
|
| 15 | |
| 16 | |
| 17 | @@ -11,6 +11,10 @@ man_MANS = ev.3
|
| 18 |
|
| 19 | include_HEADERS = ev.h ev++.h event.h
|
| 20 |
|
| 21 | +pkgconfigdir = $(libdir)/pkgconfig
|
| 22 | +
|
| 23 | +pkgconfig_DATA = libev.pc
|
| 24 | +
|
| 25 | lib_LTLIBRARIES = libev.la
|
| 26 |
|
| 27 | libev_la_SOURCES = ev.c event.c
|
| 28 | diff --git a/configure.ac b/configure.ac
|
| 29 | index 31d0a25..1af149a 100644
|
| 30 | |
| 31 | |
| 32 | @@ -21,5 +21,5 @@ AC_PROG_LIBTOOL
|
| 33 |
|
| 34 | m4_include([libev.m4])
|
| 35 |
|
| 36 | -AC_CONFIG_FILES([Makefile])
|
| 37 | +AC_CONFIG_FILES([Makefile libev.pc])
|
| 38 | AC_OUTPUT
|
| 39 | diff --git a/libev.pc.in b/libev.pc.in
|
| 40 | new file mode 100644
|
| 41 | index 0000000..3b6c636
|
| 42 | |
| 43 | |
| 44 | @@ -0,0 +1,11 @@
|
| 45 | +prefix=@prefix@
|
| 46 | +exec_prefix=@prefix@
|
| 47 | +libdir=@libdir@
|
| 48 | +includedir=@includedir@
|
| 49 | +
|
| 50 | +Name: libev
|
| 51 | +Description: High-performance event loop/event model
|
| 52 | +Version: @VERSION@
|
| 53 | +Libs: -L${libdir} -lev
|
| 54 | +Libs.private:
|
| 55 | +Cflags: -I${includedir}
|
| 56 | --
|
| 57 | 1.8.1
|
| 58 |
|