Skip to content

Commit ec6570d

Browse files
cometscomegiordano
andauthored
Wizard recipe: AlgRemez-v0.1.0 (#2021)
* New Recipe: AlgRemez v0.1.0 * Update A/AlgRemez/build_tarballs.jl * Update A/AlgRemez/build_tarballs.jl Co-authored-by: Mosè Giordano <[email protected]>
1 parent fbcd243 commit ec6570d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

A/AlgRemez/build_tarballs.jl

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder, Pkg
4+
5+
name = "AlgRemez"
6+
version = v"0.1.0"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
GitSource("https://github.com/maddyscientist/AlgRemez.git", "bdacfd1b9a7f5c34275da5f3a5a3f7f8cbbf8d9c")
11+
]
12+
13+
# Bash recipe for building across all platforms
14+
script = raw"""
15+
cd $WORKSPACE/srcdir
16+
cd AlgRemez/src/
17+
mkdir -p ${bindir}
18+
make INCLIST=-I${includedir} LDFLAGS="-L${libdir} -lmpfr -lgmp" BIN=${bindir}/algremez${exeext}
19+
"""
20+
21+
# These are the platforms we will build for by default, unless further
22+
# platforms are passed in on the command line
23+
platforms = supported_platforms()
24+
25+
# The products that we will ensure are always built
26+
products = [
27+
ExecutableProduct("algremez", :algremez)
28+
]
29+
30+
# Dependencies that must be installed before this package can be built
31+
dependencies = [
32+
Dependency(PackageSpec(name="GMP_jll", uuid="781609d7-10c4-51f6-84f2-b8444358ff6d"))
33+
Dependency(PackageSpec(name="MPFR_jll", uuid="3a97d323-0669-5f0c-9066-3539efd106a3"))
34+
]
35+
36+
# Build the tarballs, and possibly a `build.jl` as well.
37+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 commit comments

Comments
 (0)