Skip to content

Commit

Permalink
bzip2: Add bzip2.pc pkgconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Nov 23, 2024
1 parent 565ac7f commit bb24766
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cross/bzip2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions cross/bzip2/src/bzip2.pc
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit bb24766

Please sign in to comment.