gdal 435 Bytes
Newer Older
Kenneth Reitz's avatar
Kenneth Reitz committed
1
#!/usr/bin/env bash
Kenneth Reitz's avatar
Kenneth Reitz committed
2
# Build Path: /app/.heroku/vendor/
Kenneth Reitz's avatar
Kenneth Reitz committed
3 4 5 6

OUT_PREFIX=$1

# Use new path, containing autoconf.
David Zülke's avatar
David Zülke committed
7
export PATH="/app/.heroku/python/bin/:$PATH"
Kenneth Reitz's avatar
Kenneth Reitz committed
8 9 10
hash -r


Kenneth Reitz's avatar
Kenneth Reitz committed
11
echo "Building gdal…"
Kenneth Reitz's avatar
Kenneth Reitz committed
12

13
VERSION="2.2.1"
14
SOURCE_TARBALL="http://download.osgeo.org/gdal/${VERSION}/gdal-${VERSION}.tar.gz"
Kenneth Reitz's avatar
Kenneth Reitz committed
15 16 17

curl -L $SOURCE_TARBALL | tar zx

18
pushd "gdal-${VERSION}"
19
./configure --prefix=$OUT_PREFIX --enable-static=no  &&
Kenneth Reitz's avatar
Kenneth Reitz committed
20 21 22 23
make
make install

# Cleanup
24
popd