ports/contrib (3.2): jack: do not set JOBS if MAKEFLAGS has no jobs defined #1334
commit 814bb0e1728f47d3279260fc43763bb913575e5e Author: Danny Rawlins <monster.romster@gmail.com> Date: Sun Sep 25 20:06:02 2016 +1000 jack: do not set JOBS if MAKEFLAGS has no jobs defined #1334 diff --git a/jack/Pkgfile b/jack/Pkgfile index 3d2df06..84563c6 100644 --- a/jack/Pkgfile +++ b/jack/Pkgfile @@ -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 }
participants (1)
-
crux@crux.nu