Skip to content

Commit

Permalink
Add recipe for LBFGSB (#344)
Browse files Browse the repository at this point in the history
* Add recipe for LBFGSB

* [LBFGSB] Simplify build script, remove custom Makefile

* Change project name

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
2 people authored and staticfloat committed Dec 31, 2019
1 parent ce2e9ef commit 98da22f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions L/L-BFGS-B/build_tarballs.jl
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)

0 comments on commit 98da22f

Please sign in to comment.