Commit 4a03f2d2 authored by xoviat's avatar xoviat
Browse files

Libraries: parallelize some build commands

parent 49a9c18b
...@@ -77,7 +77,7 @@ function build_simple { ...@@ -77,7 +77,7 @@ function build_simple {
fetch_unpack $url/$archive fetch_unpack $url/$archive
(cd $name_version \ (cd $name_version \
&& ./configure --prefix=$BUILD_PREFIX $configure_args \ && ./configure --prefix=$BUILD_PREFIX $configure_args \
&& make \ && make -j4 \
&& make install) && make install)
touch "${name}-stamp" touch "${name}-stamp"
} }
...@@ -101,7 +101,7 @@ function build_github { ...@@ -101,7 +101,7 @@ function build_github {
fetch_unpack "https://github.com/${path}/archive/${version}.tar.gz" fetch_unpack "https://github.com/${path}/archive/${version}.tar.gz"
(cd $name_version \ (cd $name_version \
&& ./configure --prefix=$BUILD_PREFIX $configure_args \ && ./configure --prefix=$BUILD_PREFIX $configure_args \
&& make \ && make -j4 \
&& make install) && make install)
touch "${name}-stamp" touch "${name}-stamp"
} }
...@@ -139,7 +139,7 @@ function build_jpeg { ...@@ -139,7 +139,7 @@ function build_jpeg {
fetch_unpack http://ijg.org/files/jpegsrc.v${JPEG_VERSION}.tar.gz fetch_unpack http://ijg.org/files/jpegsrc.v${JPEG_VERSION}.tar.gz
(cd jpeg-${JPEG_VERSION} \ (cd jpeg-${JPEG_VERSION} \
&& ./configure --prefix=$BUILD_PREFIX \ && ./configure --prefix=$BUILD_PREFIX \
&& make \ && make -j4 \
&& make install) && make install)
touch jpeg-stamp touch jpeg-stamp
} }
...@@ -247,7 +247,7 @@ function build_hdf5 { ...@@ -247,7 +247,7 @@ function build_hdf5 {
fetch_unpack $hdf5_url/hdf5-$short/hdf5-$HDF5_VERSION/src/hdf5-$HDF5_VERSION.tar.gz fetch_unpack $hdf5_url/hdf5-$short/hdf5-$HDF5_VERSION/src/hdf5-$HDF5_VERSION.tar.gz
(cd hdf5-$HDF5_VERSION \ (cd hdf5-$HDF5_VERSION \
&& ./configure --with-szlib=$BUILD_PREFIX --prefix=$BUILD_PREFIX \ && ./configure --with-szlib=$BUILD_PREFIX --prefix=$BUILD_PREFIX \
&& make \ && make -j4 \
&& make install) && make install)
touch hdf5-stamp touch hdf5-stamp
} }
...@@ -313,7 +313,7 @@ function build_curl { ...@@ -313,7 +313,7 @@ function build_curl {
&& if [ -z "$IS_OSX" ]; then \ && if [ -z "$IS_OSX" ]; then \
LIBS=-ldl ./configure $flags; else \ LIBS=-ldl ./configure $flags; else \
./configure $flags; fi\ ./configure $flags; fi\
&& make \ && make -j4 \
&& make install) && make install)
touch curl-stamp touch curl-stamp
} }
...@@ -338,7 +338,7 @@ function build_openssl { ...@@ -338,7 +338,7 @@ function build_openssl {
check_sha256sum $ARCHIVE_SDIR/${OPENSSL_ROOT}.tar.gz ${OPENSSL_HASH} check_sha256sum $ARCHIVE_SDIR/${OPENSSL_ROOT}.tar.gz ${OPENSSL_HASH}
(cd ${OPENSSL_ROOT} \ (cd ${OPENSSL_ROOT} \
&& ./config no-ssl2 no-shared -fPIC --prefix=$BUILD_PREFIX \ && ./config no-ssl2 no-shared -fPIC --prefix=$BUILD_PREFIX \
&& make \ && make -j4 \
&& make install) && make install)
touch openssl-stamp touch openssl-stamp
} }
...@@ -350,7 +350,7 @@ function build_netcdf { ...@@ -350,7 +350,7 @@ function build_netcdf {
fetch_unpack https://github.com/Unidata/netcdf-c/archive/v${NETCDF_VERSION}.tar.gz fetch_unpack https://github.com/Unidata/netcdf-c/archive/v${NETCDF_VERSION}.tar.gz
(cd netcdf-c-${NETCDF_VERSION} \ (cd netcdf-c-${NETCDF_VERSION} \
&& ./configure --prefix=$BUILD_PREFIX --enable-dap \ && ./configure --prefix=$BUILD_PREFIX --enable-dap \
&& make \ && make -j4 \
&& make install) && make install)
touch netcdf-stamp touch netcdf-stamp
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment