diff --git a/debian/patches/wx-config-conditionalise-webview-in-std.patch b/debian/patches/wx-config-conditionalise-webview-in-std.patch index b428477..08d5ea0 100644 --- a/debian/patches/wx-config-conditionalise-webview-in-std.patch +++ b/debian/patches/wx-config-conditionalise-webview-in-std.patch @@ -24,7 +24,7 @@ Last-Update: 2014-06-18 if is_monolithic; then # Only add additional info if --libs was specified and not just --optional-libs -@@ -1225,14 +1233,14 @@ +@@ -1225,27 +1233,31 @@ # Import core libs by default, expand std if specified, or add base if omitted. if [ -n "$output_option_libs" ] && [ -z "$libs_parameters" ]; then @@ -41,7 +41,19 @@ Last-Update: 2014-06-18 wx_libs="`remove_field $i $wx_libs` $i" done elif not match_field base $wx_libs ; then -@@ -1245,7 +1253,7 @@ +- # Only add base if --libs was specified and not just --optional-libs +- if [ -n "$output_option_libs" ]; then +- wx_libs="$wx_libs base" ++ if dpkg -s libwxgtk-webview3.0-dev > /dev/null 2>&1 ; then ++ # Only add base if --libs was specified and not just --optional-libs ++ if [ -n "$output_option_libs" ]; then ++ wx_libs="$wx_libs base" ++ fi ++ else ++ exit 2 + fi + fi + if [ -n "$output_option_libs" ]; then using_gui=no for i in $wx_libs ; do