From ba3cf4e511ec4b6fc9aa5f6bfb72f432cd159c35 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 13 Dec 2019 12:50:54 +0100 Subject: Fix name of libsquashfs pkg-config file This fixes both the name inside the file, as well as the file name by adding the major version suffix. Signed-off-by: David Oberhollenzer --- configure.ac | 2 +- lib/sqfs/Makemodule.am | 2 +- lib/sqfs/libsquashfs.pc.in | 13 ------------- lib/sqfs/libsquashfs0.pc.in | 13 +++++++++++++ 4 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 lib/sqfs/libsquashfs.pc.in create mode 100644 lib/sqfs/libsquashfs0.pc.in diff --git a/configure.ac b/configure.ac index 92fb8c2..b1fa2f2 100644 --- a/configure.ac +++ b/configure.ac @@ -213,7 +213,7 @@ AC_CHECK_FUNCS([strndup getline getsubopt]) ##### generate output ##### AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([lib/sqfs/libsquashfs.pc]) +AC_CONFIG_FILES([lib/sqfs/libsquashfs0.pc]) AC_CONFIG_FILES([Doxyfile]) AC_CONFIG_FILES([tests/cantrbry.sh], [chmod +x tests/cantrbry.sh]) diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am index 2bc0fa3..0a3b874 100644 --- a/lib/sqfs/Makemodule.am +++ b/lib/sqfs/Makemodule.am @@ -79,4 +79,4 @@ sqfsinclude_HEADERS = $(LIBSQFS_HEARDS) lib_LTLIBRARIES += libsquashfs.la -pkgconfig_DATA += lib/sqfs/libsquashfs.pc +pkgconfig_DATA += lib/sqfs/libsquashfs0.pc diff --git a/lib/sqfs/libsquashfs.pc.in b/lib/sqfs/libsquashfs.pc.in deleted file mode 100644 index 77d9ad7..0000000 --- a/lib/sqfs/libsquashfs.pc.in +++ /dev/null @@ -1,13 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: @PACKAGE_NAME@ -Version: @PACKAGE_VERSION@ -Description: A library for working with SquashFS file systems. - -Cflags: -I${includedir} -Libs: -L${libdir} -lsquashfs @PTHREAD_LIBS@ - -Requires.private: @LIBSQFS_DEP_MOD@ diff --git a/lib/sqfs/libsquashfs0.pc.in b/lib/sqfs/libsquashfs0.pc.in new file mode 100644 index 0000000..e1c823f --- /dev/null +++ b/lib/sqfs/libsquashfs0.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libsquashfs +Version: @PACKAGE_VERSION@ +Description: A library for working with SquashFS file systems. + +Cflags: -I${includedir} +Libs: -L${libdir} -lsquashfs @PTHREAD_LIBS@ + +Requires.private: @LIBSQFS_DEP_MOD@ -- cgit v1.2.3