OpenSDE Packages Database (without history before r20070)
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.

85 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libev/libev-4.04-pkgconfig-support.patch
  5. # Copyright (C) 2011 - 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From f8e5c8e988f78132ebcd1991c4936295ed998b50 Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <chris@opensde.org>
  18. Date: Tue, 16 Aug 2011 23:04:53 +0200
  19. Subject: [PATCH] add pkgconfig support
  20. ---
  21. Makefile.am | 3 ++-
  22. configure.ac | 5 ++++-
  23. libev.pc.in | 11 +++++++++++
  24. 3 files changed, 17 insertions(+), 2 deletions(-)
  25. create mode 100644 libev.pc.in
  26. diff --git a/Makefile.am b/Makefile.am
  27. index 058c2cb..fd14536 100644
  28. --- a/Makefile.am
  29. +++ a/Makefile.am
  30. @@ -5,7 +5,7 @@
  31. EXTRA_DIST = LICENSE Changes libev.m4 autogen.sh \
  32. ev_vars.h ev_wrap.h \
  33. ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_port.c ev_win32.c \
  34. - ev.3 ev.pod Symbols.ev Symbols.event
  35. + ev.3 ev.pod Symbols.ev Symbols.event libev.pc.in
  36. man_MANS = ev.3
  37. @@ -16,5 +16,7 @@
  38. libev_la_SOURCES = ev.c event.c
  39. libev_la_LDFLAGS = -version-info $(VERSION_INFO)
  40. +pkgconfig_DATA = libev.pc
  41. +
  42. ev.3: ev.pod
  43. pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance full featured event loop" -s3 <$< >$@
  44. diff --git a/configure.ac b/configure.ac
  45. index 03a784f..6958226 100644
  46. --- a/configure.ac
  47. +++ b/configure.ac
  48. @@ -12,7 +12,10 @@ if test "x$GCC" = xyes ; then
  49. CFLAGS="-O3 $CFLAGS"
  50. fi
  51. +pkgconfigdir='${libdir}/pkgconfig'
  52. +AC_SUBST(pkgconfigdir)
  53. +
  54. m4_include([libev.m4])
  55. -AC_CONFIG_FILES([Makefile])
  56. +AC_CONFIG_FILES([Makefile libev.pc])
  57. AC_OUTPUT
  58. diff --git a/libev.pc.in b/libev.pc.in
  59. new file mode 100644
  60. index 0000000..333d8dd
  61. --- /dev/null
  62. +++ b/libev.pc.in
  63. @@ -0,0 +1,11 @@
  64. +prefix=@prefix@
  65. +exec_prefix=@prefix@
  66. +libdir=${prefix}/lib
  67. +includedir=${prefix}/include
  68. +
  69. +Name: libev
  70. +Description: High-performance event loop/event model
  71. +Version: @VERSION@
  72. +Libs: -L${libdir} -lev
  73. +Libs.private:
  74. +Cflags: -I${includedir}
  75. --
  76. 1.7.4.1