forked from ports/contrib
jack: do not set JOBS if MAKEFLAGS has no jobs defined #1334
This commit is contained in:
parent
f19f8af96c
commit
814bb0e172
@ -12,12 +12,13 @@ source=(https://dl.dropboxusercontent.com/u/28869550/$name-$version.tar.bz2)
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
||||
local JOBS=-j$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
||||
[ $JOBS = '-j' ] && unset JOBS
|
||||
|
||||
./waf configure \
|
||||
--prefix=/usr \
|
||||
--alsa
|
||||
|
||||
./waf build -j$JOBS
|
||||
./waf build $JOBS
|
||||
./waf install --destdir=$PKG
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user