From 30022b114cd3e100dcc21b0f79fde526e7a9d281 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 2 Jan 2014 06:22:29 +0100 Subject: [PATCH] add and install pkgconfig file for the shared library --- libtomcrypt.pc | 10 ++++++++++ makefile.shared | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 libtomcrypt.pc diff --git a/libtomcrypt.pc b/libtomcrypt.pc new file mode 100644 index 0000000..b8ff548 --- /dev/null +++ b/libtomcrypt.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: LibTomCrypt +Description: public domain open source cryptographic toolkit +Version: 1.17 +Libs: -L${libdir} -ltomcrypt +Cflags: -I${includedir} diff --git a/makefile.shared b/makefile.shared index 7b8288a..4c7921e 100644 --- a/makefile.shared +++ b/makefile.shared @@ -270,6 +270,8 @@ install: $(LIBNAME) 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 + 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