gdal : major upgrade

This commit is contained in:
bluedevil
2020-09-28 23:12:58 +02:00
parent 9618530a31
commit c18e332890
8 changed files with 115 additions and 205 deletions
+41 -66
View File
@@ -9,83 +9,58 @@ from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import perlmodules
from pisi.actionsapi import pythonmodules
def setup():
# autotools.autoreconf("-vfi")
# autotools.aclocal()
options_cfg = ''.join([
'--with-png ',
'--with-curl ',
'--with-geos ',
'--with-hdf5 ',
'--with-perl ',
'--with-expat ',
'--with-mysql ',
'--with-netcdf ',
'--with-geotiff ',
'--with-libtiff ',
'--with-sqlite3 ',
'--enable-shared ',
'--with-openjpeg ',
'--with-spatialite'])
pisitools.cflags.add("-fno-strict-aliasing")
autotools.configure("%s" % options_cfg)
autotools.configure("--disable-static \
--enable-shared \
--datadir=/usr/share/gdal \
--with-threads \
--with-jasper \
--with-odbc=/usr/lib/unixODBC \
--with-expat \
--with-cfitsio \
--with-hdf5 \
--with-netcdf \
--with-png \
--with-geos \
--without-mysql \
--with-curl \
--with-perl \
--with-jpeg \
--with-jpeg12=no \
--with-libtiff \
--with-sqlite3 \
--with-geotiff=external \
--with-podofo \
--with-spatialite \
--with-ogr \
--with-grib \
--with-curl \
--with-webp \
--with-python \
--without-poppler \
--with-xerces \
--with-openjpeg \
--without-libtool \
--without-hdf4 \
--without-fme \
--without-pcraster \
--without-kakadu \
--without-mrsid \
--without-jp2mrsid \
--without-msg \
--without-bsb \
--without-dods-root \
--without-oci \
--without-ingres \
--without-spatialite \
--without-dwgdirect \
--without-epsilon \
--without-idb \
--without-sde \
--mandir=/usr/share/man \
--without-ruby")
#--with-ogdi error: rpc/rpc.h
# fix unused direct dependency analysis
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
#for bug 13646
#pisitools.dosed("GDALmake.opt", "PY_HAVE_SETUPTOOLS=1 ", "PY_HAVE_SETUPTOOLS= ")
#pisitools.dosed("apps/GNUmakefile", "EXE_DEP_LIBS ", "KILL_EXE_DEP_LIBS ")
def build():
autotools.make()
# FIXME build man pages
#autotools.make("man")
# build python bindings
shelltools.cd("swig/python")
pythonmodules.compile()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#remove egg
# pisitools.removeDir("/usr/lib/python2.7/site-packages/GDAL-*")
#pisitools.domove("/usr/man/man3/*", "/usr/share/man/man3")
#pisitools.removeDir("/usr/man/")
#pisitools.domove("/usr/etc/bash_completion.d/*", "/etc/bash_completion.d")
#pisitools.removeDir("/usr/etc")
# install python bindings
shelltools.cd("swig/python")
pythonmodules.install()
shelltools.cd("../..")
perlmodules.removePodfiles()
# fix rpath
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/GDAL/Const/Const.so" % get.installDIR())
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/GDAL/GDAL.so" % get.installDIR())
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/GNM/GNM.so" % get.installDIR())
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/OSR/OSR.so" % get.installDIR())
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/OGR/OGR.so" % get.installDIR())
pisitools.dodoc("LICENSE*")