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

OUT_PREFIX=$1

# Use new path, containing autoconf.
7
export PATH="$BUILD_DIR/.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 14
VERSION=4.9.3
SOURCE_TARBALL="http://download.osgeo.org/proj/proj-${VERSION}.tar.gz"
Kenneth Reitz's avatar
Kenneth Reitz committed
15 16 17

curl -L $SOURCE_TARBALL | tar zx

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

# Cleanup
24
popd