3
3
using BinaryBuilder, Pkg
4
4
5
5
name = " Leptonica"
6
- version = v " 1.79.0 "
6
+ version = v " 1.81.1 "
7
7
8
8
# Collection of sources required to build Leptonica
9
9
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 " ),
12
12
]
13
13
14
14
# Bash recipe for building across all platforms
15
15
script = raw """
16
- cd $WORKSPACE/srcdir/leptonica- */
17
- export CPPFLAGS="-I$prefix/include "
16
+ cd $WORKSPACE/srcdir/leptonica*/
17
+ export CPPFLAGS="-I${includedir} "
18
18
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
19
19
make -j${nproc}
20
20
make install
@@ -23,7 +23,7 @@ install_license leptonica-license.txt
23
23
24
24
# These are the platforms we will build for by default, unless further
25
25
# platforms are passed in on the command line
26
- platforms = supported_platforms ()
26
+ platforms = supported_platforms (; experimental = true )
27
27
28
28
# The products that we will ensure are always built
29
29
products = [
@@ -42,14 +42,16 @@ products = [
42
42
43
43
# Dependencies that must be installed before this package can be built
44
44
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" ),
52
54
]
53
55
54
56
# 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