Simple patch to generate and install libev.pc to @prefix@/lib/pkgconf. Does not take into account if lib{m,rt,thread} has been linked into libev, but as far as I know it shouldn't.
Please include me in any replies as I am not subscribed to the list. -- Stephen Gregoratto diff -Pura libev-old/configure.ac libev-new/configure.ac --- libev-old/configure.ac 2020-03-18 23:30:21.000000000 +1100 +++ libev-new/configure.ac 2020-09-11 22:56:46.777721299 +1000 @@ -23,5 +23,5 @@ m4_include([libev.m4]) -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile libev.pc]) AC_OUTPUT diff -Pura libev-old/libev.pc.in libev-new/libev.pc.in --- libev-old/libev.pc.in 1970-01-01 10:00:00.000000000 +1000 +++ libev-new/libev.pc.in 2020-09-11 22:42:21.641604156 +1000 @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=${prefix} +includedir=${prefix}/include +libdir=${exec_prefix}/lib + +Name: libev +Description: A high performance full-featured event loop +Version: @VERSION@ +Cflags: -I${includedir}/foo +Libs: -L{libdir} -lev diff -Pura libev-old/Makefile.am libev-new/Makefile.am --- libev-old/Makefile.am 2019-07-02 16:07:54.000000000 +1000 +++ libev-new/Makefile.am 2020-09-11 22:56:18.553757600 +1000 @@ -17,5 +17,8 @@ libev_la_SOURCES = ev.c event.c libev_la_LDFLAGS = -version-info $(VERSION_INFO) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libev.pc + ev.3: ev.pod pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance full featured event loop" -s3 <$< >$@ _______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/mailman/listinfo/libev