Install a .pc file so that pkg-config works

This commit is contained in:
Paul LeoNerd Evans 2008-11-02 18:37:29 +00:00
parent aef409c460
commit ca2bbaf251
2 changed files with 11 additions and 0 deletions

View File

@ -35,3 +35,5 @@ install:
install -d $(DESTDIR)$(LIBDIR) install -d $(DESTDIR)$(LIBDIR)
install libtermkey.so $(DESTDIR)$(LIBDIR)/$(SONAME) install libtermkey.so $(DESTDIR)$(LIBDIR)/$(SONAME)
ln -sf $(SONAME) $(DESTDIR)$(LIBDIR)/libtermkey.so ln -sf $(SONAME) $(DESTDIR)$(LIBDIR)/libtermkey.so
install -d $(DESTDIR)$(LIBDIR)/pkgconfig
sed "s,@PREFIX@,$(PREFIX)," <termkey.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc

9
termkey.pc.in Normal file
View File

@ -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}