22# `julia build_tarballs.jl --help` to see a usage message.
33using BinaryBuilder
44
5- name = " LibSpatialIndexBuilder"
6- version = v " 1.8.5"
5+ version = v " 1.8.5" # also change in raw script string
76
87# Collection of sources required to build LibSpatialIndexBuilder
98sources = [
10- " http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5 .tar.bz2" =>
9+ " http://download.osgeo.org/libspatialindex/spatialindex-src-$version .tar.bz2" =>
1110 " 31ec0a9305c3bd6b4ad60a5261cba5402366dd7d1969a8846099717778e9a50a" ,
12-
11+ " ./patches "
1312]
1413
1514# Bash recipe for building across all platforms
1615script = raw """
1716cd $WORKSPACE/srcdir
17+
1818cd spatialindex-src-1.8.5/
19+
20+ patch < ${WORKSPACE}/srcdir/makefile.patch
21+ rm Makefile.am.orig
22+
23+ if [ $target = "x86_64-w64-mingw32" ] || [ $target = "i686-w64-mingw32" ]; then
24+ patch < ${WORKSPACE}/srcdir/header-check.patch
25+ fi
26+
27+ aclocal
28+ autoconf
29+ automake --add-missing --foreign
30+
31+ # Show options in the log
32+ ./configure --help
33+
1934./configure --prefix=$prefix --host=$target
2035make
2136make install
2237"""
2338
2439# These are the platforms we will build for by default, unless further
2540# platforms are passed in on the command line
26- platforms = [
27- Linux (:i686 , libc= :glibc ),
28- Linux (:x86_64 , libc= :glibc ),
29- Linux (:aarch64 , libc= :glibc ),
30- Linux (:armv7l , libc= :glibc , call_abi= :eabihf ),
31- Linux (:powerpc64le , libc= :glibc ),
32- Linux (:i686 , libc= :musl ),
33- Linux (:x86_64 , libc= :musl ),
34- Linux (:aarch64 , libc= :musl ),
35- Linux (:armv7l , libc= :musl , call_abi= :eabihf ),
36- FreeBSD (:x86_64 )
37- ]
41+ platforms = supported_platforms ()
3842
3943# The products that we will ensure are always built
4044products (prefix) = [
@@ -43,10 +47,8 @@ products(prefix) = [
4347]
4448
4549# Dependencies that must be installed before this package can be built
46- dependencies = [
47-
48- ]
50+ dependencies = []
4951
5052# Build the tarballs, and possibly a `build.jl` as well.
51- build_tarballs (ARGS , name , version, sources, script, platforms, products, dependencies)
53+ build_tarballs (ARGS , " SpatialIndex " , version, sources, script, platforms, products, dependencies)
5254
0 commit comments