Skip to content

Commit 9d3df94

Browse files
authored
[Leptonica] Upgrade to v1.81.1 and build for experimental platforms (#3308)
1 parent 159e359 commit 9d3df94

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

L/Leptonica/build_tarballs.jl

+16-14
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
using BinaryBuilder, Pkg
44

55
name = "Leptonica"
6-
version = v"1.79.0"
6+
version = v"1.81.1"
77

88
# Collection of sources required to build Leptonica
99
sources = [
10-
ArchiveSource("http://www.leptonica.org/source/leptonica-$(version).tar.gz",
11-
"045966c9c5d60ebded314a9931007a56d9d2f7a6ac39cb5cc077c816f62300d8"),
10+
ArchiveSource("https://github.com/DanBloomberg/leptonica/releases/download/$(version)/leptonica-$(version).tar.gz",
11+
"0f4eb315e9bdddd797f4c55fdea4e1f45fca7e3b358a2fc693fd957ce2c43ca9"),
1212
]
1313

1414
# Bash recipe for building across all platforms
1515
script = raw"""
16-
cd $WORKSPACE/srcdir/leptonica-*/
17-
export CPPFLAGS="-I$prefix/include"
16+
cd $WORKSPACE/srcdir/leptonica*/
17+
export CPPFLAGS="-I${includedir}"
1818
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
1919
make -j${nproc}
2020
make install
@@ -23,7 +23,7 @@ install_license leptonica-license.txt
2323

2424
# These are the platforms we will build for by default, unless further
2525
# platforms are passed in on the command line
26-
platforms = supported_platforms()
26+
platforms = supported_platforms(; experimental=true)
2727

2828
# The products that we will ensure are always built
2929
products = [
@@ -42,14 +42,16 @@ products = [
4242

4343
# Dependencies that must be installed before this package can be built
4444
dependencies = [
45-
Dependency(PackageSpec(name="Giflib_jll", uuid="59f7168a-df46-5410-90c8-f2779963d0ec"))
46-
Dependency(PackageSpec(name="JpegTurbo_jll", uuid="aacddb02-875f-59d6-b918-886e6ef4fbf8"))
47-
Dependency(PackageSpec(name="libpng_jll", uuid="b53b4c65-9356-5827-b1ea-8c7a1a84506f"))
48-
Dependency(PackageSpec(name="Libtiff_jll", uuid="89763e89-9b03-5906-acba-b20f662cd828"))
49-
Dependency(PackageSpec(name="libwebp_jll", uuid="c5f90fcd-3b7e-5836-afba-fc50a0988cb2"))
50-
Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a"))
51-
Dependency(PackageSpec(name="OpenJpeg_jll", uuid="643b3616-a352-519d-856d-80112ee9badc"))
45+
Dependency(PackageSpec(name="Giflib_jll", uuid="59f7168a-df46-5410-90c8-f2779963d0ec")),
46+
Dependency(PackageSpec(name="JpegTurbo_jll", uuid="aacddb02-875f-59d6-b918-886e6ef4fbf8")),
47+
Dependency(PackageSpec(name="libpng_jll", uuid="b53b4c65-9356-5827-b1ea-8c7a1a84506f")),
48+
Dependency(PackageSpec(name="Libtiff_jll", uuid="89763e89-9b03-5906-acba-b20f662cd828")),
49+
Dependency(PackageSpec(name="libwebp_jll", uuid="c5f90fcd-3b7e-5836-afba-fc50a0988cb2")),
50+
Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a")),
51+
# Leptonica has a runtime check on the minor version of OpenJpeg, because why not:
52+
# https://github.com/DanBloomberg/leptonica/blob/68d2cc15b955192f65772689d258a6d10dba52f5/src/jp2kio.c#L268-L272
53+
Dependency("OpenJpeg_jll"; compat="~2.4.0"),
5254
]
5355

5456
# Build the tarballs.
55-
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
57+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")

0 commit comments

Comments
 (0)