summaryrefslogtreecommitdiffstats
path: root/main/libev/libev-4.11-Add-pkgconfig-support.patch
blob: 8c478caeee7b7fdf51e647ebf501e2bd2c2c752e (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
46
47
48
49
50
51
52
53
54
55
56
57
58
From 01d2c386b58afa49567ccc079c963f76dc2e60f3 Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <bochecha@fedoraproject.org>
Date: Fri, 8 Feb 2013 15:40:51 +0800
Subject: [PATCH] Add pkgconfig support

---
 Makefile.am  |  4 ++++
 configure.ac |  2 +-
 libev.pc.in  | 11 +++++++++++
 3 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 libev.pc.in

diff --git a/Makefile.am b/Makefile.am
index 059305b..9e556c0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,6 +11,10 @@ man_MANS = ev.3
 
 include_HEADERS = ev.h ev++.h event.h
 
+pkgconfigdir = $(libdir)/pkgconfig
+
+pkgconfig_DATA = libev.pc
+
 lib_LTLIBRARIES = libev.la
 
 libev_la_SOURCES = ev.c event.c
diff --git a/configure.ac b/configure.ac
index 31d0a25..1af149a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,5 +21,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..3b6c636
--- /dev/null
+++ b/libev.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libev
+Description: High-performance event loop/event model
+Version: @VERSION@
+Libs: -L${libdir} -lev
+Libs.private: 
+Cflags: -I${includedir}
-- 
1.8.1