gaia-gis.it/libspatialite (#2584)

* gaia-gis.it/libspatialite

* --build=aarch64-unknown-linux-gnu

* version
This commit is contained in:
Andrew 2023-07-16 00:55:09 +03:00 committed by GitHub
parent 60d40ffc82
commit 1c5f8839bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,44 @@
distributable:
url: https://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-{{version}}.tar.gz
strip-components: 1
versions:
url: https://www.gaia-gis.it/gaia-sins/libspatialite-sources/
match: /libspatialite-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^libspatialite-/
- /\.tar\.gz/
dependencies:
gaia-gis.it/fossil/freexl: '*'
libgeos.org: '*'
git.osgeo.org/gitea/rttopo/librttopo: '*'
gnome.org/libxml2: '*'
zlib.net/minizip: '*'
proj.org: '*'
sqlite.org: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
gnu.org/make: '*'
freedesktop.org/pkg-config: '*'
darwin:
gnu.org/patch: '*'
curl.se: '*'
script:
# Fix -flat_namespace being used on Big Sur and later.
- run: curl -L https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff | patch -p1
if: darwin
- ./configure $ARGS
- make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --disable-dependency-tracking
- --prefix={{prefix}}
- --enable-geocallbacks
- --enable-rttopo=yes
linux/aarch64:
ARGS:
- --build=aarch64-unknown-linux-gnu
test:
dependencies:
freedesktop.org/pkg-config: '*'
script: pkg-config --modversion spatialite | grep {{version}}