Last change
on this file since 25804 was 25804, checked in by jdquinn, 4 years ago |
CHG: External packages are available again
|
-
Property svn:executable
set to
*
|
File size:
834 bytes
|
Rev | Line | |
---|
[25783] | 1 | #!/bin/bash
|
---|
| 2 | set -eu
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | ## Constants
|
---|
| 6 | #
|
---|
[25799] | 7 | VER="7.73.0"
|
---|
[25783] | 8 |
|
---|
| 9 | ## Environment
|
---|
| 10 | #
|
---|
| 11 | export MACOSX_DEPLOYMENT_TARGET="10.5" # Allows fall back to older API (source: https://curl.se/docs/install.html)
|
---|
| 12 |
|
---|
| 13 | # Download source
|
---|
[25804] | 14 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/curl-${VER}.tar.gz" "curl-${VER}.tar.gz"
|
---|
[25783] | 15 |
|
---|
| 16 | # Unpack source
|
---|
| 17 | tar -zxvf curl-$VER.tar.gz
|
---|
| 18 |
|
---|
| 19 | # Cleanup
|
---|
| 20 | rm -rf install src
|
---|
| 21 | mkdir install src
|
---|
| 22 |
|
---|
| 23 | # Move source to 'src' directory
|
---|
| 24 | mv curl-$VER/* src
|
---|
| 25 | rm -rf curl-$VER
|
---|
| 26 |
|
---|
| 27 | # Configure
|
---|
| 28 | cd src
|
---|
| 29 | ./configure \
|
---|
| 30 | --prefix="${ISSM_DIR}/externalpackages/curl/install" \
|
---|
| 31 | --disable-shared \
|
---|
| 32 | --disable-dependency-tracking \
|
---|
| 33 | --disable-manual \
|
---|
| 34 | --disable-verbose \
|
---|
| 35 | --without-libidn2 \
|
---|
| 36 | --with-secure-transport
|
---|
| 37 |
|
---|
| 38 | # Compile and install
|
---|
| 39 | if [ $# -eq 0 ]; then
|
---|
| 40 | make
|
---|
| 41 | make install
|
---|
| 42 | else
|
---|
| 43 | make -j $1
|
---|
| 44 | make -j $1 install
|
---|
| 45 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.