-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add recipe for LBFGSB * [LBFGSB] Simplify build script, remove custom Makefile * Change project name Co-authored-by: Mosè Giordano <[email protected]>
- Loading branch information
1 parent
ce2e9ef
commit 98da22f
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Note that this script can accept some limited command-line arguments, run | ||
# `julia build_tarballs.jl --help` to see a usage message. | ||
using BinaryBuilder | ||
|
||
name = "L_BFGS_B" | ||
version = v"3.0.0" | ||
|
||
# Collection of sources required to build LBFGSB | ||
sources = [ | ||
"http://users.iems.northwestern.edu/~nocedal/Software/Lbfgsb.3.0.tar.gz" => | ||
"f5b9a1c8c30ff6bcc8df9b5d5738145f4cbe4c7eadec629220e808dcf0e54720", | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/Lbfgsb.*/ | ||
mkdir -p "${libdir}" | ||
FFLAGS="-O3 -fPIC -shared -Wall -fbounds-check -Wno-uninitialized" | ||
${FC} ${LDFLAGS} ${FFLAGS} lbfgsb.f linpack.f blas.f timer.f -o "${libdir}/liblbfgsb.${dlext}" | ||
install_license License.txt | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = expand_gfortran_versions(supported_platforms()) | ||
|
||
# The products that we will ensure are always built | ||
products = [ | ||
LibraryProduct("liblbfgsb", :liblbfgsb) | ||
] | ||
|
||
# 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) |