Last change
on this file was 27232, checked in by Mathieu Morlighem, 3 years ago |
merged trunk-jpl and trunk for revision 27230
|
-
Property svn:executable
set to
*
|
File size:
915 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 |
|
---|
5 | ## Constants
|
---|
6 | #
|
---|
7 | VER="7.73.0"
|
---|
8 |
|
---|
9 | PREFIX="${ISSM_DIR}/externalpackages/curl/install" # Set to location where external package should be installed
|
---|
10 |
|
---|
11 | # Download source
|
---|
12 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/curl-${VER}.tar.gz" "curl-${VER}.tar.gz"
|
---|
13 |
|
---|
14 | # Unpack source
|
---|
15 | tar -zxvf curl-${VER}.tar.gz
|
---|
16 |
|
---|
17 | # Cleanup
|
---|
18 | rm -rf ${PREFIX} src
|
---|
19 | mkdir -p ${PREFIX} src
|
---|
20 |
|
---|
21 | # Move source to 'src' directory
|
---|
22 | mv curl-${VER}/* src
|
---|
23 | rm -rf curl-${VER}
|
---|
24 |
|
---|
25 | # Configure
|
---|
26 | cd src
|
---|
27 | ./configure \
|
---|
28 | --prefix="${PREFIX}" \
|
---|
29 | --disable-shared \
|
---|
30 | --disable-dependency-tracking \
|
---|
31 | --disable-manual \
|
---|
32 | --disable-verbose \
|
---|
33 | --disable-ldap \
|
---|
34 | --disable-ldaps \
|
---|
35 | --with-zlib="${ZLIB_ROOT}" \
|
---|
36 | --without-zstd \
|
---|
37 | --without-libidn2 \
|
---|
38 | --without-nghttp2 \
|
---|
39 | --without-brotli \
|
---|
40 | --without-librtmp
|
---|
41 |
|
---|
42 | # Compile and install
|
---|
43 | if [ $# -eq 0 ]; then
|
---|
44 | make
|
---|
45 | make install
|
---|
46 | else
|
---|
47 | make -j $1
|
---|
48 | make -j $1 install
|
---|
49 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.