-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgsl
More file actions
22 lines (19 loc) · 690 Bytes
/
gsl
File metadata and controls
22 lines (19 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use legacy bundle on high-sierra
if [ "x${OSTYPE:6:1}" = "x1" ]; then
bottle="https://github.com/autobrew/bundler/releases/download/gsl-2.7.1/gsl-2.5-high_sierra.tar.xz"
else
bottle="https://github.com/autobrew/bundler/releases/download/gsl-2.7.1/gsl-2.7.1-universal.tar.xz"
fi
# Skip if disabled
if [ "$DISABLE_AUTOBREW" ]; then return 0; fi
echo "Using autobrew bundle: $(basename $bottle)"
# General setup
BREWDIR="$PWD/.deps"
mkdir -p $BREWDIR
curl -sSL $bottle -o libs.tar.xz
tar -xf libs.tar.xz --strip 1 -C $BREWDIR && rm -f libs.tar.xz
PKG_CFLAGS="-I${BREWDIR}/include"
PKG_LIBS="-L${BREWDIR}/lib -lgsl -lgslcblas -lm"
# Cleanup
echo "rm -Rf .deps" >> cleanup
chmod +x cleanup