|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
|
#
|
|
|
|
|
# Filename: package/.../libev/ev.pc.patch
|
|
|
|
|
# Filename: package/.../libev/libev-4.04-pkgconfig-support.patch
|
|
|
|
|
# Copyright (C) 2011 The OpenSDE Project
|
|
|
|
|
#
|
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
@ -14,24 +14,28 @@
|
|
|
|
|
# version.
|
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Julien Danjou <julien at danjou.info>
|
|
|
|
|
From f8e5c8e988f78132ebcd1991c4936295ed998b50 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Christian Wiese <chris@opensde.org>
|
|
|
|
|
Date: Tue, 16 Aug 2011 23:04:53 +0200
|
|
|
|
|
Subject: [PATCH] add pkgconfig support
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
Makefile.am | 3 ++-
|
|
|
|
|
configure.ac | 5 ++++-
|
|
|
|
|
ev.pc.in | 13 +++++++++++++
|
|
|
|
|
3 files changed, 19 insertions(+), 2 deletions(-)
|
|
|
|
|
create mode 100644 ev.pc.in
|
|
|
|
|
libev.pc.in | 11 +++++++++++
|
|
|
|
|
3 files changed, 17 insertions(+), 2 deletions(-)
|
|
|
|
|
create mode 100644 libev.pc.in
|
|
|
|
|
|
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
|
|
|
index 9a8239e..f9cf750 100644
|
|
|
|
|
index 058c2cb..fd14536 100644
|
|
|
|
|
--- a/Makefile.am
|
|
|
|
|
+++ b/Makefile.am
|
|
|
|
|
@@ -5,7 +5,7 @@ VERSION_INFO = 3:0
|
|
|
|
|
@@ -5,7 +5,7 @@ VERSION_INFO = 4:0:0
|
|
|
|
|
EXTRA_DIST = LICENSE Changes libev.m4 autogen.sh \
|
|
|
|
|
ev_vars.h ev_wrap.h \
|
|
|
|
|
ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_port.c ev_win32.c \
|
|
|
|
|
- ev.3 ev.pod
|
|
|
|
|
+ ev.3 ev.pod ev.pc.in
|
|
|
|
|
+ ev.3 ev.pod libev.pc.in
|
|
|
|
|
|
|
|
|
|
man_MANS = ev.3
|
|
|
|
|
|
|
|
|
@ -39,13 +43,13 @@ index 9a8239e..f9cf750 100644
|
|
|
|
|
libev_la_SOURCES = ev.c event.c
|
|
|
|
|
libev_la_LDFLAGS = -version-info $(VERSION_INFO)
|
|
|
|
|
|
|
|
|
|
+pkgconfig_DATA = ev.pc
|
|
|
|
|
+pkgconfig_DATA = libev.pc
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
|
|
index 9ca3759..8b45be8 100644
|
|
|
|
|
index 03a784f..6958226 100644
|
|
|
|
|
--- a/configure.ac
|
|
|
|
|
+++ b/configure.ac
|
|
|
|
|
@@ -12,7 +12,10 @@ if test "x$GCC" = xyes ; then
|
|
|
|
|
CFLAGS="$CFLAGS -O3"
|
|
|
|
|
CFLAGS="-O3 $CFLAGS"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
+pkgconfigdir='${libdir}/pkgconfig'
|
|
|
|
@ -54,26 +58,25 @@ index 9ca3759..8b45be8 100644
|
|
|
|
|
m4_include([libev.m4])
|
|
|
|
|
|
|
|
|
|
-AC_CONFIG_FILES([Makefile])
|
|
|
|
|
+AC_CONFIG_FILES([Makefile ev.pc])
|
|
|
|
|
+AC_CONFIG_FILES([Makefile libev.pc])
|
|
|
|
|
AC_OUTPUT
|
|
|
|
|
diff --git a/ev.pc.in b/ev.pc.in
|
|
|
|
|
diff --git a/libev.pc.in b/libev.pc.in
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000..5219091
|
|
|
|
|
index 0000000..333d8dd
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/ev.pc.in
|
|
|
|
|
@@ -0,0 +1,13 @@
|
|
|
|
|
+++ b/libev.pc.in
|
|
|
|
|
@@ -0,0 +1,11 @@
|
|
|
|
|
+prefix=@prefix@
|
|
|
|
|
+version=@VERSION@
|
|
|
|
|
+
|
|
|
|
|
+lib_name=ev
|
|
|
|
|
+exec_prefix=@prefix@
|
|
|
|
|
+libdir=${prefix}/lib
|
|
|
|
|
+includedir=${prefix}/include
|
|
|
|
|
+
|
|
|
|
|
+Name: Libev
|
|
|
|
|
+Description: high-performance event loop/event model
|
|
|
|
|
+Version: ${version}
|
|
|
|
|
+Requires:
|
|
|
|
|
+Libs: -L${libdir} -l${lib_name}
|
|
|
|
|
+Name: libev
|
|
|
|
|
+Description: High-performance event loop/event model
|
|
|
|
|
+Version: @VERSION@
|
|
|
|
|
+Libs: -L${libdir} -lev
|
|
|
|
|
+Libs.private:
|
|
|
|
|
+Cflags: -I${includedir}
|
|
|
|
|
--
|
|
|
|
|
1.6.0.6
|
|
|
|
|
1.7.4.1
|
|
|
|
|
|