You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.4 KiB
86 lines
2.4 KiB
14 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
14 years ago
|
# Filename: package/.../libev/libev-4.04-pkgconfig-support.patch
|
||
13 years ago
|
# Copyright (C) 2011 - 2012 The OpenSDE Project
|
||
14 years ago
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This patch file is dual-licensed. It is available under the license the
|
||
|
# patched project is licensed under, as long as it is an OpenSource license
|
||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||
|
# of the GNU General Public License as published by the Free Software
|
||
|
# Foundation; either version 2 of the License, or (at your option) any later
|
||
|
# version.
|
||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||
|
|
||
14 years ago
|
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
|
||
|
|
||
14 years ago
|
---
|
||
|
Makefile.am | 3 ++-
|
||
|
configure.ac | 5 ++++-
|
||
14 years ago
|
libev.pc.in | 11 +++++++++++
|
||
|
3 files changed, 17 insertions(+), 2 deletions(-)
|
||
|
create mode 100644 libev.pc.in
|
||
14 years ago
|
|
||
|
diff --git a/Makefile.am b/Makefile.am
|
||
14 years ago
|
index 058c2cb..fd14536 100644
|
||
14 years ago
|
--- a/Makefile.am
|
||
13 years ago
|
+++ a/Makefile.am
|
||
|
@@ -5,7 +5,7 @@
|
||
14 years ago
|
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 \
|
||
13 years ago
|
- ev.3 ev.pod Symbols.ev Symbols.event
|
||
|
+ ev.3 ev.pod Symbols.ev Symbols.event libev.pc.in
|
||
14 years ago
|
|
||
|
man_MANS = ev.3
|
||
|
|
||
13 years ago
|
@@ -16,5 +16,7 @@
|
||
14 years ago
|
libev_la_SOURCES = ev.c event.c
|
||
|
libev_la_LDFLAGS = -version-info $(VERSION_INFO)
|
||
|
|
||
14 years ago
|
+pkgconfig_DATA = libev.pc
|
||
13 years ago
|
+
|
||
|
ev.3: ev.pod
|
||
|
pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance full featured event loop" -s3 <$< >$@
|
||
14 years ago
|
diff --git a/configure.ac b/configure.ac
|
||
14 years ago
|
index 03a784f..6958226 100644
|
||
14 years ago
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -12,7 +12,10 @@ if test "x$GCC" = xyes ; then
|
||
14 years ago
|
CFLAGS="-O3 $CFLAGS"
|
||
14 years ago
|
fi
|
||
|
|
||
|
+pkgconfigdir='${libdir}/pkgconfig'
|
||
|
+AC_SUBST(pkgconfigdir)
|
||
|
+
|
||
|
m4_include([libev.m4])
|
||
|
|
||
|
-AC_CONFIG_FILES([Makefile])
|
||
14 years ago
|
+AC_CONFIG_FILES([Makefile libev.pc])
|
||
14 years ago
|
AC_OUTPUT
|
||
14 years ago
|
diff --git a/libev.pc.in b/libev.pc.in
|
||
14 years ago
|
new file mode 100644
|
||
14 years ago
|
index 0000000..333d8dd
|
||
14 years ago
|
--- /dev/null
|
||
14 years ago
|
+++ b/libev.pc.in
|
||
|
@@ -0,0 +1,11 @@
|
||
14 years ago
|
+prefix=@prefix@
|
||
14 years ago
|
+exec_prefix=@prefix@
|
||
14 years ago
|
+libdir=${prefix}/lib
|
||
|
+includedir=${prefix}/include
|
||
|
+
|
||
14 years ago
|
+Name: libev
|
||
|
+Description: High-performance event loop/event model
|
||
|
+Version: @VERSION@
|
||
|
+Libs: -L${libdir} -lev
|
||
|
+Libs.private:
|
||
14 years ago
|
+Cflags: -I${includedir}
|
||
|
--
|
||
14 years ago
|
1.7.4.1
|
||
|
|