diff --git a/O/open62541/open62541@1.3/build_tarballs.jl b/O/open62541/open62541@1.3/build_tarballs.jl new file mode 100644 index 00000000000..a1652b336a0 --- /dev/null +++ b/O/open62541/open62541@1.3/build_tarballs.jl @@ -0,0 +1,44 @@ +# Note that this script can accept some limited command-line arguments, run +# `julia build_tarballs.jl --help` to see a usage message. +using BinaryBuilder, Pkg + +name = "open62541" +version = v"1.3.10" +# Collection of sources required to complete build +sources = [ + GitSource("https://github.com/open62541/open62541.git", + "2405c6588f8d8093e3e0e49e920db64daf479799") +] +# Bash recipe for building across all platforms +script = raw""" +cd $WORKSPACE/srcdir/open62541/ +mkdir build && cd build/ +cmake -DCMAKE_INSTALL_PREFIX=${prefix} \ + -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \ + -DCMAKE_BUILD_TYPE=Release \ + -DUA_MULTITHREADING=100 \ + -DUA_ENABLE_SUBSCRIPTIONS=ON \ + -DUA_ENABLE_METHODCALLS=ON \ + -DUA_ENABLE_PARSING=ON \ + -DUA_ENABLE_NODEMANAGEMENT=ON \ + -DUA_ENABLE_IMMUTABLE_NODES=ON \ + -DUA_ENABLE_HISTORIZING=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DUA_FORCE_WERROR=OFF \ + .. +make -j${nproc} +make install +install_license ../LICENSE +""" +# These are the platforms we will build for by default, unless further +# platforms are passed in on the command line +platforms = supported_platforms() +# The products that we will ensure are always built +products = [ + LibraryProduct("libopen62541", :libopen62541) +] +# Dependencies that must be installed before this package can be built +dependencies = Dependency[ +] +# Build the tarballs, and possibly a `build.jl` as well. +build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6") diff --git a/O/open62541/build_tarballs.jl b/O/open62541/open62541@1.4/build_tarballs.jl similarity index 95% rename from O/open62541/build_tarballs.jl rename to O/open62541/open62541@1.4/build_tarballs.jl index 6dd1fc004f7..9e9f710649e 100644 --- a/O/open62541/build_tarballs.jl +++ b/O/open62541/open62541@1.4/build_tarballs.jl @@ -22,7 +22,7 @@ fi cd $WORKSPACE/srcdir/open62541/ if [[ "${target}" == *-freebsd* ]]; then # https://github.com/open62541/open62541/issues/6414 - atomic_patch -p1 ../0001-freebsd.patch + atomic_patch -p1 ../patches/0001-freebsd.patch fi mkdir build && cd build/ cmake -DCMAKE_INSTALL_PREFIX=${prefix} \ @@ -46,7 +46,7 @@ install_license ../LICENSE # These are the platforms we will build for by default, unless further # platforms are passed in on the command line -platforms = supported_platforms(; experimental=true) +platforms = supported_platforms() # The products that we will ensure are always built products = [ diff --git a/O/open62541/bundled/0001-freebsd.patch b/O/open62541/open62541@1.4/bundled/patches/0001-freebsd.patch similarity index 100% rename from O/open62541/bundled/0001-freebsd.patch rename to O/open62541/open62541@1.4/bundled/patches/0001-freebsd.patch