source: issm/trunk-jpl/externalpackages/triangle/install-mac-static.sh@ 24466

Last change on this file since 24466 was 24466, checked in by jdquinn, 5 years ago

CHG: New config for triangle on Linux/Mac (will not change anything until m4/issm_options.m4 has been updated)

File size: 632 bytes
Line 
1#!/bin/bash
2set -eu
3
4
5# Constants
6#
7INSTALL_DIR="install"
8
9# Cleanup
10rm -rf ${INSTALL_DIR} src
11mkdir ${INSTALL_DIR} ${INSTALL_DIR}/include ${INSTALL_DIR}/lib src
12
13# Download source
14$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/triangle.zip" "triangle.zip"
15
16# Unpack source
17unzip triangle.zip -d src
18
19# Copy customized source files to 'src' directory
20cp configs/makefile src
21cp configs/triangle.h src
22cp configs/mac/configure.make src
23
24# Compile
25cd src
26make static
27
28# Install
29cd ..
30cp src/libtriangle.* ${INSTALL_DIR}/lib
31cp src/triangle.h ${INSTALL_DIR}/include
32
33# Cleanup
34rm -rf src
Note: See TracBrowser for help on using the repository browser.