Skip to content

[GR] bump version #11229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 30 additions & 18 deletions G/GR/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder

include("../../fancy_toys.jl") # for `should_build_platform`

name = "GR"
version = v"0.73.14"
version = v"0.73.15"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/sciapp/gr.git", "9a62289c2e4e36c28e045c3a34f02d0d01c4231c"),
GitSource("https://github.com/sciapp/gr.git", "273777a77bea6d9f43397e2524016bf48e2636cd"),
FileSource("https://github.com/sciapp/gr/releases/download/v$version/gr-$version.js",
"7f94982b410c686d67be956f1e0317b6e2644702b3f3d69328ee8217e7be5217", "gr.js"),
ArchiveSource("https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.14.sdk.tar.xz",
"0f03869f72df8705b832910517b47dd5b79eb4e160512602f593ed243b28715f")
"ee4f62e71891be05cc11de1c6857e17fe2ec4040b19569cdf748841e0a15e2fe", "gr.js"),
ArchiveSource("https://github.com/roblabla/MacOSX-SDKs/releases/download/macosx14.0/MacOSX14.0.sdk.tar.xz",
"4a31565fd2644d1aec23da3829977f83632a20985561a2038e198681e7e7bf49")
]

# Bash recipe for building across all platforms
Expand All @@ -30,9 +32,9 @@ else
fi

if [[ "${target}" == x86_64-apple-darwin* ]]; then
apple_sdk_root=$WORKSPACE/srcdir/MacOSX10.14.sdk
apple_sdk_root=$WORKSPACE/srcdir/MacOSX14.0.sdk
sed -i "s!/opt/x86_64-apple-darwin14/x86_64-apple-darwin14/sys-root!$apple_sdk_root!" $CMAKE_TARGET_TOOLCHAIN
export MACOSX_DEPLOYMENT_TARGET=10.14
export MACOSX_DEPLOYMENT_TARGET=12
fi

if [[ "${target}" == *apple* ]]; then
Expand Down Expand Up @@ -78,34 +80,44 @@ platforms = expand_cxxstring_abis(platforms)

# The products that we will ensure are always built
products = [
LibraryProduct("libGR", :libGR, dont_dlopen=true),
LibraryProduct("libGR3", :libGR3, dont_dlopen=true),
LibraryProduct("libGRM", :libGRM, dont_dlopen=true),
LibraryProduct("libGKS", :libGKS, dont_dlopen=true),
LibraryProduct("libGR", :libGR; dont_dlopen=true),
LibraryProduct("libGR3", :libGR3; dont_dlopen=true),
LibraryProduct("libGRM", :libGRM; dont_dlopen=true),
LibraryProduct("libGKS", :libGKS; dont_dlopen=true),
ExecutableProduct("gksqt", :gksqt),
ExecutableProduct("grplot", :grplot),
]

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency("Bzip2_jll"; compat="1.0.8"),
Dependency("Cairo_jll"; compat="1.16.1"),
Dependency("Bzip2_jll"),
Dependency("Cairo_jll"),
Dependency("FFMPEG_jll"),
Dependency("Fontconfig_jll"),
Dependency("FreeType2_jll"; compat="2.10.4"),
Dependency("FreeType2_jll"; compat="2.13.4"),
Dependency("GLFW_jll"),
Dependency("JpegTurbo_jll"),
Dependency("libpng_jll"),
Dependency("Libtiff_jll"; compat="4.7.1"),
Dependency("Libtiff_jll"),
Dependency("Pixman_jll"),
HostBuildDependency("Qt6Base_jll"),
Dependency("Qt6Base_jll"; compat="~6.7.1"), # Never allow upgrading more than the minor version without recompilation
Dependency("Qt6Base_jll"; compat="~6.8.2"), # Never allow upgrading more than the minor version without recompilation
BuildDependency("Xorg_libX11_jll"),
BuildDependency("Xorg_xproto_jll"),
Dependency("Zlib_jll"),
]

platforms_win = filter(Sys.iswindows, platforms)
platforms_rest = setdiff(platforms, platforms_win)

# Build the tarballs, and possibly a `build.jl` as well.
# GCC version 10 because of Qt6.7
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
preferred_gcc_version = v"10", julia_compat="1.6")
if any(should_build_platform.(triplet.(platforms_win)))
# GCC 12 and before fail with internal compiler error on mingw
build_tarballs(ARGS, name, version, sources, script, platforms_win, products, dependencies;
preferred_gcc_version=v"13", julia_compat="1.6")
end
if any(should_build_platform.(triplet.(platforms_rest)))
build_tarballs(ARGS, name, version, sources, script, platforms_rest, products, dependencies;
preferred_gcc_version=v"10", julia_compat="1.6")
end