diff --git a/cross/bzip2/Makefile b/cross/bzip2/Makefile index 1c0cc267c9f..1e8a9eaf1c4 100644 --- a/cross/bzip2/Makefile +++ b/cross/bzip2/Makefile @@ -31,3 +31,7 @@ bzip2_post_install: ln -sf bzmore $(STAGING_INSTALL_PREFIX)/bin/bzless @$(RUN) cp libbz2.so.$(PKG_VERS) $(STAGING_INSTALL_PREFIX)/lib/ ln -sf libbz2.so.$(PKG_VERS) $(STAGING_INSTALL_PREFIX)/lib/libbz2.so.1.0 + @install -m 755 -d $(STAGING_INSTALL_PREFIX)/lib/pkgconfig + @install -m 644 src/bzip2.pc $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/ + @sed -ie 's%@PREFIX@%$(STAGING_INSTALL_PREFIX)%g' $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/bzip2.pc + @sed -ie 's%@VERSION@%$(PKG_VERS)%g' $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/bzip2.pc diff --git a/cross/bzip2/src/bzip2.pc b/cross/bzip2/src/bzip2.pc new file mode 100644 index 00000000000..01748d36cba --- /dev/null +++ b/cross/bzip2/src/bzip2.pc @@ -0,0 +1,11 @@ +prefix=@PREFIX@ +exec_prefix=${prefix} +bindir=${exec_prefix}/bin +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: bzip2 +Description: A file compression library +Version: @VERSION@ +Libs: -L${libdir} -lbz2 +Cflags: -I${includedir}