Last change
on this file was 28197, checked in by jdquinn, 12 months ago |
CHG: External package upgrades; fixes for distributables; cleanup
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
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 | ## Environment
|
---|
12 | #
|
---|
13 | export MACOSX_DEPLOYMENT_TARGET="10.5" # Allows fall back to older API (source: https://curl.se/docs/install.html)
|
---|
14 |
|
---|
15 | # Download source
|
---|
16 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/curl-${VER}.tar.gz" "curl-${VER}.tar.gz"
|
---|
17 |
|
---|
18 | # Unpack source
|
---|
19 | tar -zxvf curl-${VER}.tar.gz
|
---|
20 |
|
---|
21 | # Cleanup
|
---|
22 | rm -rf ${PREFIX} src
|
---|
23 | mkdir -p ${PREFIX} src
|
---|
24 |
|
---|
25 | # Move source to 'src' directory
|
---|
26 | mv curl-${VER}/* src
|
---|
27 | rm -rf curl-${VER}
|
---|
28 |
|
---|
29 | # Configure
|
---|
30 | cd src
|
---|
31 | ./configure \
|
---|
32 | --prefix="${PREFIX}" \
|
---|
33 | --disable-shared \
|
---|
34 | --disable-dependency-tracking \
|
---|
35 | --disable-manual \
|
---|
36 | --disable-verbose \
|
---|
37 | --disable-ldap \
|
---|
38 | --disable-ldaps \
|
---|
39 | --with-zlib="${ZLIB_ROOT}" \
|
---|
40 | --without-zstd \
|
---|
41 | --without-libidn2 \
|
---|
42 | --without-nghttp2 \
|
---|
43 | --without-brotli \
|
---|
44 | --without-librtmp \
|
---|
45 | --without-ssl
|
---|
46 |
|
---|
47 | # Compile and install
|
---|
48 | if [ $# -eq 0 ]; then
|
---|
49 | make
|
---|
50 | make install
|
---|
51 | else
|
---|
52 | make -j $1
|
---|
53 | make -j $1 install
|
---|
54 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.