# by z411
d0=$(pwd)
-cjobs=$(($(nproc) + 1))
require () {
if ! dpkg -s "$1" >/dev/null 2>&1 ; then
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX="$pkg_dir" \
-G"Unix Makefiles" "$this_src"
- make -j${cjobs}
+ make
make install
}
--enable-fat \
--disable-static \
--enable-shared
- make -j${cjobs}
+ make
make install
}
"$src_dir/d0_blind_id/configure" --with-pic \
--prefix="$pkg_dir" \
--host="$CHOST"
- make -j${cjobs}
+ make
make install
}
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX="$pkg_dir" \
-G"Unix Makefiles" "$this_src"
- make -j${cjobs}
+ make
make install
}
-DOGG_LIBRARY="$pkg_dir/lib/libogg.dll.a" \
-DCMAKE_INSTALL_PREFIX="$pkg_dir" \
-G"Unix Makefiles" "$this_src"
- make -j${cjobs}
+ make
make install
}
--disable-sdltest \
--disable-vorbistest \
--disable-oggtest
- make -j${cjobs}
+ make
make install
}
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$pkg_dir" \
-G"Unix Makefiles" "$this_src"
- make -j${cjobs}
+ make
make install
}
-DZLIB_LIBRARY="$pkg_dir/lib/libzlib.dll.a" \
-DCMAKE_INSTALL_PREFIX="$pkg_dir" \
-G"Unix Makefiles" "$this_src"
- make -j${cjobs}
+ make
make install
}
-DENABLE_STATIC=OFF \
-DWITH_TURBOJPEG=OFF \
-G"Unix Makefiles" "$this_src"
- make -j${cjobs}
+ make
make install
}
-DBUILD_CURL_EXE=OFF \
-DHTTP_ONLY=ON \
-G"Unix Makefiles" "$this_src"
- make -j${cjobs}
+ make
make install
}
{
export LC_ALL=C
+ if [ -z "$MAKEFLAGS" ]; then
+ ncpus=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1`
+ if [ $ncpus -gt 1 ]; then
+ export MAKEFLAGS=-j$ncpus
+ fi
+ fi
+
release_args="$cmd $*"
msg "*** $release_args: start"
release_starttime=`date +%s`