Install a .pc file so that pkg-config works
This commit is contained in:
parent
aef409c460
commit
ca2bbaf251
2
Makefile
2
Makefile
@ -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
9
termkey.pc.in
Normal 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}
|
Loading…
Reference in New Issue
Block a user