libev-pc.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --- /dev/null
  2. +++ b/libev.pc.in
  3. @@ -0,0 +1,11 @@
  4. +prefix=@prefix@
  5. +exec_prefix=@prefix@
  6. +libdir=@libdir@
  7. +includedir=@includedir@
  8. +
  9. +Name: libev
  10. +Description: A high-performance event loop/event model with lots of features
  11. +Version: @VERSION@
  12. +Libs: -L${libdir} -lev
  13. +Libs.private:
  14. +Cflags: -I${includedir}
  15. --- a/Makefile.am
  16. +++ b/Makefile.am
  17. @@ -16,5 +16,8 @@ lib_LTLIBRARIES = libev.la
  18. libev_la_SOURCES = ev.c event.c
  19. libev_la_LDFLAGS = -version-info $(VERSION_INFO)
  20. +pkgconfigdir = $(libdir)/pkgconfig
  21. +pkgconfig_DATA = libev.pc
  22. +
  23. ev.3: ev.pod
  24. pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance full featured event loop" -s3 <$< >$@
  25. --- a/configure.ac
  26. +++ b/configure.ac
  27. @@ -2,6 +2,7 @@ orig_CFLAGS="$CFLAGS"
  28. AC_INIT
  29. AC_CONFIG_SRCDIR([ev_epoll.c])
  30. +AC_CONFIG_MACRO_DIR([m4])
  31. AM_INIT_AUTOMAKE(libev,4.11) dnl also update ev.h!
  32. AC_CONFIG_HEADERS([config.h])
  33. @@ -21,5 +22,5 @@ AC_PROG_LIBTOOL
  34. m4_include([libev.m4])
  35. -AC_CONFIG_FILES([Makefile])
  36. +AC_CONFIG_FILES([Makefile libev.pc])
  37. AC_OUTPUT