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.

82 lines
2.3 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 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. +++ b/Makefile.am
  30. @@ -5,7 +5,7 @@ VERSION_INFO = 4:0:0
  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
  35. + ev.3 ev.pod libev.pc.in
  36. man_MANS = ev.3
  37. @@ -16,3 +16,4 @@ lib_LTLIBRARIES = libev.la
  38. libev_la_SOURCES = ev.c event.c
  39. libev_la_LDFLAGS = -version-info $(VERSION_INFO)
  40. +pkgconfig_DATA = libev.pc
  41. diff --git a/configure.ac b/configure.ac
  42. index 03a784f..6958226 100644
  43. --- a/configure.ac
  44. +++ b/configure.ac
  45. @@ -12,7 +12,10 @@ if test "x$GCC" = xyes ; then
  46. CFLAGS="-O3 $CFLAGS"
  47. fi
  48. +pkgconfigdir='${libdir}/pkgconfig'
  49. +AC_SUBST(pkgconfigdir)
  50. +
  51. m4_include([libev.m4])
  52. -AC_CONFIG_FILES([Makefile])
  53. +AC_CONFIG_FILES([Makefile libev.pc])
  54. AC_OUTPUT
  55. diff --git a/libev.pc.in b/libev.pc.in
  56. new file mode 100644
  57. index 0000000..333d8dd
  58. --- /dev/null
  59. +++ b/libev.pc.in
  60. @@ -0,0 +1,11 @@
  61. +prefix=@prefix@
  62. +exec_prefix=@prefix@
  63. +libdir=${prefix}/lib
  64. +includedir=${prefix}/include
  65. +
  66. +Name: libev
  67. +Description: High-performance event loop/event model
  68. +Version: @VERSION@
  69. +Libs: -L${libdir} -lev
  70. +Libs.private:
  71. +Cflags: -I${includedir}
  72. --
  73. 1.7.4.1