diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-08-20 11:28:59 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-08-20 11:28:59 +0000 |
commit | ffe0c41d9863328fdb00ee8513c8829af621bc6e (patch) | |
tree | 79f0a3b20abd575e0be54ebfba0204e6e97947fa /configure | |
parent | 0a7251045255a3e41bad384738a5c5296750d061 (diff) | |
download | pamela-ffe0c41d9863328fdb00ee8513c8829af621bc6e.tar.xz |
Add support for conditional slashpackage builds. Update deps.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -246,12 +246,19 @@ if $slashpackage ; then libdir=${home}/library libexecdir=$bindir includedir=${home}/include - 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 |