From 326278e8a5b6b44860136dbede6be46514a9d276 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 20 Aug 2018 11:04:47 +0000 Subject: Add mechanism for conditional slashpackage builds in deps-build --- configure | 19 +++++++++++++------ package/deps-build | 1 + 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/configure b/configure index d51a466..ef53dad 100755 --- a/configure +++ b/configure @@ -257,12 +257,19 @@ if $slashpackage ; then if $shebangisdefault ; then shebangdir=${extbinprefix} fi - while read dep ; do - addincpath="$addincpath -I${sproot}${dep}/include" - vpaths="$vpaths ${sproot}${dep}/library" - addlibspath="$addlibspath -L${sproot}${dep}/library" - vpathd="$vpathd ${sproot}${dep}/library.so" - addlibdpath="$addlibdpath -L${sproot}${dep}/library.so" + while read dep condvar ; do + if test -n "$condvar" ; then + eval "cond=$condvar" + else + cond=true + fi + if $cond ; then + addincpath="$addincpath -I${sproot}${dep}/include" + vpaths="$vpaths ${sproot}${dep}/library" + addlibspath="$addlibspath -L${sproot}${dep}/library" + vpathd="$vpathd ${sproot}${dep}/library.so" + addlibdpath="$addlibdpath -L${sproot}${dep}/library.so" + fi done < package/deps-build fi diff --git a/package/deps-build b/package/deps-build index 05d5af4..eb4384b 100644 --- a/package/deps-build +++ b/package/deps-build @@ -1 +1,2 @@ /package/prog/skalibs +/package/admin/nsss $usensss -- cgit v1.2.3