gis/gdal: Add python3 support.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2018-02-24 15:01:55 +00:00 committed by Willy Sudiarto Raharjo
parent ac29f11f31
commit 188a6db96c
2 changed files with 9 additions and 1 deletions

View file

@ -11,7 +11,7 @@ provides a similar capability for simple features vector data.
The following optional requirements are detected automatically: The following optional requirements are detected automatically:
cfitsio, freexl, hdf, hdf5, libkml, libwebp, netcdf, cfitsio, freexl, hdf, hdf5, libkml, libwebp, netcdf,
postgresql, xerces-c postgresql, python3, xerces-c
To enable OpenCL GPU-accelerated performance, specify the option To enable OpenCL GPU-accelerated performance, specify the option
OPENCL=yes (requires opencl-headers to build, and either nvidia-driver OPENCL=yes (requires opencl-headers to build, and either nvidia-driver

View file

@ -143,6 +143,14 @@ CXXFLAGS="$SLKCFLAGS" \
make make
make install DESTDIR=$PKG make install DESTDIR=$PKG
if $(python3 -c 'import sys' 2>/dev/null); then
cd swig/python
rm -rf build
python3 setup.py build
python3 setup.py install --root=$PKG --prefix=/usr
cd - >/dev/null
fi
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true