Skip to content

Instantly share code, notes, and snippets.

@MaximeBouton
Created April 12, 2020 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaximeBouton/65f03ffbb94d47d6ea30781f2b7f73e4 to your computer and use it in GitHub Desktop.
Save MaximeBouton/65f03ffbb94d47d6ea30781f2b7f73e4 to your computer and use it in GitHub Desktop.
# 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