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
13 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
13 years ago
|
# Filename: package/.../libev/libev-4.04-pkgconfig-support.patch
|
||
13 years ago
|
# Copyright (C) 2011 - 2012 The OpenSDE Project
|
||
13 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 ---
|
||
|
|
||
13 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
|
||
|
|
||
13 years ago
|
---
|
||
|
Makefile.am | 3 ++-
|
||
|
configure.ac | 5 ++++-
|
||
13 years ago
|
libev.pc.in | 11 +++++++++++
|
||
|
3 files changed, 17 insertions(+), 2 deletions(-)
|
||
|
create mode 100644 libev.pc.in
|
||
13 years ago
|
|
||
|
diff --git a/Makefile.am b/Makefile.am
|
||
13 years ago
|
index 058c2cb..fd14536 100644
|
||
13 years ago
|
--- a/Makefile.am
|
||
13 years ago
|
+++ a/Makefile.am
|
||
|
@@ -5,7 +5,7 @@
|
||
13 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
|
||
13 years ago
|
|
||
|
man_MANS = ev.3
|
||
|
|
||
13 years ago
|
@@ -16,5 +16,7 @@
|
||
13 years ago
|
libev_la_SOURCES = ev.c event.c
|
||
|
libev_la_LDFLAGS = -version-info $(VERSION_INFO)
|
||
|
|
||
13 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 <$< >$@
|
||
13 years ago
|
diff --git a/configure.ac b/configure.ac
|
||
13 years ago
|
index 03a784f..6958226 100644
|
||
13 years ago
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -12,7 +12,10 @@ if test "x$GCC" = xyes ; then
|
||
13 years ago
|
CFLAGS="-O3 $CFLAGS"
|
||
13 years ago
|
fi
|
||
|
|
||
|
+pkgconfigdir='${libdir}/pkgconfig'
|
||
|
+AC_SUBST(pkgconfigdir)
|
||
|
+
|
||
|
m4_include([libev.m4])
|
||
|
|
||
|
-AC_CONFIG_FILES([Makefile])
|
||
13 years ago
|
+AC_CONFIG_FILES([Makefile libev.pc])
|
||
13 years ago
|
AC_OUTPUT
|
||
13 years ago
|
diff --git a/libev.pc.in b/libev.pc.in
|
||
13 years ago
|
new file mode 100644
|
||
13 years ago
|
index 0000000..333d8dd
|
||
13 years ago
|
--- /dev/null
|
||
13 years ago
|
+++ b/libev.pc.in
|
||
|
@@ -0,0 +1,11 @@
|
||
13 years ago
|
+prefix=@prefix@
|
||
13 years ago
|
+exec_prefix=@prefix@
|
||
13 years ago
|
+libdir=${prefix}/lib
|
||
|
+includedir=${prefix}/include
|
||
|
+
|
||
13 years ago
|
+Name: libev
|
||
|
+Description: High-performance event loop/event model
|
||
|
+Version: @VERSION@
|
||
|
+Libs: -L${libdir} -lev
|
||
|
+Libs.private:
|
||
13 years ago
|
+Cflags: -I${includedir}
|
||
|
--
|
||
13 years ago
|
1.7.4.1
|
||
|
|