Skip to content

Commit

Permalink
[Cubature] New recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralBShah committed Apr 3, 2020
1 parent 7d5774a commit 47b7e19
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions C/Cubature/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using BinaryBuilder

name="Cubature"
version=v"1.0.3"

# Collection of sources required to build Cubature
sources = [
GitSource("https://github.com/stevengj/cubature.git",
"a61dd32094bcf925fbc4a93d02e0f0f147f8b734"), # v1.0.3
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/cubature*
mkdir -p ${libdir}
${CC} ${LDFLAGS} -shared -fPIC -O3 hcubature.c pcubature.c -o ${libdir}/libcubature.${dlext}
"""

# 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("libcubature", :libcubature),
]

# Dependencies that must be installed before this package can be built
dependencies = []

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 comments on commit 47b7e19

Please sign in to comment.