From 9134efeda85c0c202ccc8006f4387eed04581242 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 23 Mar 2021 22:14:27 +0100 Subject: Register missing requirements for the pkg-config metadata file. --- configure.ac | 12 ++++++++++++ system/pkgconfig/chrysalide.pc.in | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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 -- cgit v0.11.2-87-g4458