Browse Source

pkgconfig: set libdir= to $LIBPATH (for multi-arch)

Michael Stapelberg 11 years ago
parent
commit
90928d6dfd
2 changed files with 2 additions and 1 deletions
  1. 1 1
      libtomcrypt.pc.in
  2. 1 0
      makefile.shared

+ 1 - 1
libtomcrypt.pc → libtomcrypt.pc.in

@@ -1,6 +1,6 @@
 prefix=/usr
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@LIBDIR@
 includedir=${prefix}/include
 
 Name: LibTomCrypt

+ 1 - 0
makefile.shared

@@ -271,6 +271,7 @@ install: $(LIBNAME)
 	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