diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-03-23 21:14:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-03-23 21:14:27 (GMT) |
commit | 9134efeda85c0c202ccc8006f4387eed04581242 (patch) | |
tree | 0fde9ec06b92750157d444321db5836b874cb033 | |
parent | 8df9996699cdf96887613f99181173295a19bd76 (diff) |
Register missing requirements for the pkg-config metadata file.
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | system/pkgconfig/chrysalide.pc.in | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5f10574..ff02f65 100644 --- a/configure.ac +++ b/configure.ac @@ -387,10 +387,12 @@ if test "x$python3_cfg_binary" = "xyes"; then LIBPYTHON_CFLAGS=`python3-dbg-config --cflags` LIBPYTHON_LIBS=`python3-dbg-config --libs` LIBPYTHON_ABI_FLAGS=`python3-dbg-config --abiflags` + pythondep="python3-dbg" else LIBPYTHON_CFLAGS=`python3-config --cflags` LIBPYTHON_LIBS=`python3-config --libs` LIBPYTHON_ABI_FLAGS=`python3-config --abiflags` + pythondep="python3" fi AC_SUBST(LIBPYTHON_CFLAGS) @@ -405,6 +407,7 @@ if test "x$python3_cfg_binary" = "xyes"; then else + pythondep= python3_version='-' fi @@ -420,6 +423,13 @@ if test "$libpygobject_found" = "yes"; then else libpygobject_version="`pkg-config pygobject-3.0 --modversion` (skipped)" fi + + if test "x$pythondep" = "x"; then + pythondep="pygobject-3.0" + else + pythondep="$pythondep pygobject-3.0" + fi + else libpygobject_version='-' fi @@ -427,6 +437,8 @@ fi AC_SUBST(LIBPYGOBJECT_CFLAGS) AC_SUBST(LIBPYGOBJECT_LIBS) +AC_SUBST(pythondep) + ############################################################ # Outputting files diff --git a/system/pkgconfig/chrysalide.pc.in b/system/pkgconfig/chrysalide.pc.in index f3a3af7..8a384a4 100644 --- a/system/pkgconfig/chrysalide.pc.in +++ b/system/pkgconfig/chrysalide.pc.in @@ -7,6 +7,6 @@ Name: Chrysalide Description: Reverse Engineering Factory focused on embedded systems Version: r@PACKAGE_VERSION@ URL: https://www.chrysalide.re/ -Requires: glib-2.0 gtk+-3.0 libxml-2.0 +Requires: gtk+-3.0 libxml-2.0 libarchive sqlite3 libssl @pythondep@ Cflags: -I${includedir}/chrysalide/core -I${includedir}/chrysalide Libs: -L${libdir} -L${libdir}/chrysalide-plugins -lchrysacore |