1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Add and install a pkgconfig file.
Author: Michael Stapelberg <stapelberg@debian.org>
Forwarded: https://github.com/libtom/libtomcrypt/pull/29
Last-Updated: 2014-01-02
---
Index: libtomcrypt/makefile.shared
===================================================================
--- libtomcrypt.orig/makefile.shared 2014-01-02 07:00:26.953854944 +0100
+++ libtomcrypt/makefile.shared 2014-01-02 07:00:59.641408264 +0100
@@ -257,6 +257,9 @@
libtool --silent --mode=install install -c libtomcrypt.la $(DESTDIR)$(LIBPATH)/libtomcrypt.la
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
+ install -d $(DESTDIR)$(LIBPATH)/pkgconfig
+ sed 's,@LIBDIR@,$(LIBPATH),g' libtomcrypt.pc.in > libtomcrypt.pc
+ install -m 0644 -g $(GROUP) -o $(USER) libtomcrypt.pc $(DESTDIR)$(LIBPATH)/pkgconfig/libtomcrypt.pc
#This rule makes the hash program included with libtomcrypt
hashsum: library
Index: libtomcrypt/libtomcrypt.pc.in
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ libtomcrypt/libtomcrypt.pc.in 2014-01-02 07:00:28.329836143 +0100
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=@LIBDIR@
+includedir=${prefix}/include
+
+Name: LibTomCrypt
+Description: public domain open source cryptographic toolkit
+Version: 1.17
+Libs: -L${libdir} -ltomcrypt
+Cflags: -I${includedir}
|