From ca2bbaf251984822fdd543abb453d1ffbe4d2367 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sun, 2 Nov 2008 18:37:29 +0000 Subject: Install a .pc file so that pkg-config works --- Makefile | 2 ++ termkey.pc.in | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 termkey.pc.in diff --git a/Makefile b/Makefile index 90f3029..c6a1934 100644 --- a/Makefile +++ b/Makefile @@ -35,3 +35,5 @@ install: install -d $(DESTDIR)$(LIBDIR) install libtermkey.so $(DESTDIR)$(LIBDIR)/$(SONAME) ln -sf $(SONAME) $(DESTDIR)$(LIBDIR)/libtermkey.so + install -d $(DESTDIR)$(LIBDIR)/pkgconfig + sed "s,@PREFIX@,$(PREFIX)," $(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc diff --git a/termkey.pc.in b/termkey.pc.in new file mode 100644 index 0000000..6e54e8e --- /dev/null +++ b/termkey.pc.in @@ -0,0 +1,9 @@ +prefix=@PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: termkey +Description: Abstract terminal key input library +Version: 0.1 +Libs: -L${libdir} -ltermkey +Cflags: -I${includedir} -- cgit v1.2.3-70-g09d2