Created
April 12, 2020 22:24
-
-
Save MaximeBouton/65f03ffbb94d47d6ea30781f2b7f73e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = "POMDPSolve" | |
version = v"5.4.0" | |
# Collection of sources required to complete build | |
sources = [ | |
ArchiveSource("http://www.pomdp.org/code/pomdp-solve-5.4.tar.gz", "36aacbddc4b66a332e7b07d3902eba75ddf4d6e654a3f19ab4043084165f4dc0") | |
] | |
# Bash recipe for building across all platforms | |
script = raw""" | |
cd $WORKSPACE/srcdir | |
cd pomdp-solve-5.4/ | |
# this seems necessary for MacOS, TODO make it conditional | |
export ac_cv_func_malloc_0_nonnull=yes | |
export ac_cv_func_realloc_0_nonnull=yes | |
./configure --prefix=${prefix} --host=${target} | |
make | |
make install | |
""" | |
# These are the platforms we will build for by default, unless further | |
# platforms are passed in on the command line | |
platforms = [ | |
Windows(:x86_64), | |
MacOS(:x86_64), | |
Linux(:x86_64, libc=:glibc) | |
] | |
# The products that we will ensure are always built | |
products = [ | |
ExecutableProduct("pomdp-tools", :pomdptools), | |
ExecutableProduct("pomdp-solve", :pomdpsolve), | |
ExecutableProduct("pomdp-test", :pomdptest), | |
ExecutableProduct("pomdp-fg", :pomdpfg) | |
] | |
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment