1
1
# Note that this script can accept some limited command-line arguments, run
2
2
# `julia build_tarballs.jl --help` to see a usage message.
3
3
using BinaryBuilder, Pkg
4
+ using BinaryBuilderBase: get_addable_spec
4
5
5
6
name = " libspatialite"
6
- version = v " 5.0.1 "
7
+ version = v " 5.1.0 "
7
8
8
9
# Collection of sources required to complete build
9
10
sources = [
10
- ArchiveSource (" http://www.gaia-gis.it/gaia-sins/libspatialite-$(version) .tar.gz" , " eecbc94311c78012d059ebc0fae86ea5ef6eecb13303e6e82b3753c1b3409e98 " ),
11
+ ArchiveSource (" http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite- $(version) .tar.gz" , " 43be2dd349daffe016dd1400c5d11285828c22fea35ca5109f21f3ed50605080 " ),
11
12
DirectorySource (" ./bundled" )
12
13
]
13
14
14
15
# Bash recipe for building across all platforms
15
16
script = raw """
16
17
cd $WORKSPACE/srcdir/libspatialite-*
17
18
19
+ # Since libxml2 no longer supports HTTP, we removed that reference from libspatialite.
20
+ atomic_patch -p1 ../patches/libxml2-http-deprecated.patch
21
+
18
22
# Detection of MinGW and macOS is totally wrong: `target_alias` is empty. We
19
23
# could use `host_alias` (why not `host`?), but we should do regex matching,
20
24
# which doesn't work very well with Alpine's (da)sh, easiest thing is to check
@@ -27,11 +31,6 @@ autoreconf -vi
27
31
if [[ ${target} == *-linux-musl* ]] || [[ ${target} == *-freebsd* ]]; then
28
32
#help find sqlite.h header usually
29
33
export CPPFLAGS="-I${includedir}"
30
-
31
- elif [[ "${target}" == *-mingw* ]]; then
32
-
33
- atomic_patch -p1 ${WORKSPACE}/srcdir/patches/mingw-lowercase-include.patch
34
-
35
34
fi
36
35
37
36
./configure \
@@ -67,9 +66,9 @@ make install
67
66
if [[ "${target}" == *-darwin* ]]; then
68
67
# I have no idea how they managed to get the extension wrong only for mod_spatialite,
69
68
# but they did. Let's rename everything manually, sigh.
70
- mv "${libdir}/mod_spatialite.7 .so" "${libdir}/mod_spatialite.7 .${dlext}"
69
+ mv "${libdir}/mod_spatialite.8 .so" "${libdir}/mod_spatialite.8 .${dlext}"
71
70
rm "${libdir}/mod_spatialite.so"
72
- ln -s "mod_spatialite.7 .${dlext}" "${libdir}/mod_spatialite.${dlext}"
71
+ ln -s "mod_spatialite.8 .${dlext}" "${libdir}/mod_spatialite.${dlext}"
73
72
sed -i "s/\. so/.${dlext}/g" ${libdir}/mod_spatialite.la
74
73
fi
75
74
"""
78
77
# platforms are passed in on the command line
79
78
platforms = expand_cxxstring_abis (supported_platforms ())
80
79
81
-
82
80
# The products that we will ensure are always built
83
81
products = [
84
82
LibraryProduct (" mod_spatialite" , :mod_spatialite ),
@@ -88,13 +86,14 @@ products = [
88
86
# Dependencies that must be installed before this package can be built
89
87
dependencies = [
90
88
Dependency (" SQLite_jll" )
91
- Dependency (" GEOS_jll" ; compat= " ~3.9 " )
92
- Dependency (PackageSpec (name = " PROJ_jll" , uuid = " 58948b4f-47e0-5654-a9ad-f609743f8632 " ) )
89
+ Dependency (" GEOS_jll" ; compat= " ~3.13.1 " )
90
+ Dependency (get_addable_spec ( " PROJ_jll" , v " 902.500.100+1 " ); compat = " 902.500.100 " )
93
91
Dependency (PackageSpec (name= " Libiconv_jll" , uuid= " 94ce4f54-9a6c-5748-9c1c-f9c7231a4531" ))
94
92
Dependency (PackageSpec (name= " Zlib_jll" , uuid= " 83775a58-1f1d-513f-b197-d71354ab007a" ))
95
93
Dependency (PackageSpec (name= " XML2_jll" , uuid= " 02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a" ))
94
+ Dependency (get_addable_spec (" OpenSSL_jll" , v " 3.0.15+2" ); compat= " 3.0.15" , platforms= filter (p -> ! (Sys. iswindows (p) || Sys. isapple (p)), platforms))
96
95
]
97
96
98
97
# Build the tarballs, and possibly a `build.jl` as well.
99
98
# GEOS uses preferred of 6, so match that here
100
- build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; julia_compat= " 1.6" , preferred_gcc_version = v "6 " )
99
+ build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; julia_compat= " 1.6" , preferred_gcc_version = v "8 " )
0 commit comments