3
3
using BinaryBuilder, Pkg
4
4
5
5
name = " OpenJpeg"
6
- version = v " 2.3.1 "
6
+ version = v " 2.4.0 "
7
7
8
8
# Collection of sources required to complete build
9
9
sources = [
10
- ArchiveSource (" https://github.com/uclouvain/openjpeg/archive/v2.3.1/openjpeg-2.3.1.tar.gz" , " 63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9" ),
10
+ ArchiveSource (" https://github.com/uclouvain/openjpeg/archive/v$(version) /openjpeg-$(version) .tar.gz" ,
11
+ " 8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d" ),
11
12
DirectorySource (" ./bundled" )
12
13
]
13
14
14
15
# Bash recipe for building across all platforms
15
16
script = raw """
16
- cd $WORKSPACE/srcdir
17
+ cd $WORKSPACE/srcdir/openjpeg-*/
17
18
for f in ${WORKSPACE}/srcdir/patches/*.patch; do
18
19
atomic_patch -p1 ${f}
19
20
done
20
- cd openjpeg-2.3.1/
21
21
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC_LIBS=OFF
22
22
make -j${nproc}
23
23
make install
24
24
"""
25
25
26
26
# These are the platforms we will build for by default, unless further
27
27
# platforms are passed in on the command line
28
- platforms = supported_platforms ()
28
+ platforms = supported_platforms (; experimental = true )
29
29
30
30
# The products that we will ensure are always built
31
31
products = [
@@ -43,4 +43,4 @@ dependencies = [
43
43
]
44
44
45
45
# Build the tarballs, and possibly a `build.jl` as well.
46
- build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies)
46
+ build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; julia_compat = " 1.6 " )
0 commit comments