Skip to content

Commit

Permalink
[FFLAS_FFPACK] New recipe (#9661)
Browse files Browse the repository at this point in the history
* First attempt

* Removed Manifest.toml

* Removed the -mfpmath=sse option that caused confusion; renamed FFLAS-FFPACK to FFLAS_FFPACK

* Really zapped all the sse stuff from m4 files

* Added libblastrampoline_jll to dependencies, and proper check

* Removed aarch64-freebsd from builds

* Put back aarch64-freebsd

* Added executable product

* Removed expand_cxxstring_abis

* Removed config file from products

* Made it header-only (AnyPlatform())

* Fix comma

* Put back the build to all separate platforms
  • Loading branch information
laurentbartholdi authored Oct 28, 2024
1 parent bbba7c8 commit 38c01ed
Show file tree
Hide file tree
Showing 3 changed files with 508 additions and 0 deletions.
50 changes: 50 additions & 0 deletions F/FFLAS_FFPACK/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 = "FFLAS_FFPACK"
version = v"2.5.0"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://github.com/linbox-team/fflas-ffpack/releases/download/v$version/fflas-ffpack-$version.tar.gz", "dafb4c0835824d28e4f823748579be6e4c8889c9570c6ce9cce1e186c3ebbb23"),
DirectorySource("./bundled")
]

# Bash recipe for building across all platforms
script = raw"""
cd ${WORKSPACE}/srcdir/fflas-ffpack-*
for f in ${WORKSPACE}/srcdir/patches/*.patch; do
atomic_patch -p1 ${f}
done
autoreconf
./configure CCNAM=${CC} CPLUS_INCLUDE_PATH=$includedir --prefix=$prefix --build=${MACHTYPE} --host=${target}
make -j ${nproc}
make install
install_license COPYING
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line. Windows is excluded because it doesn't build for the Givaro dependency.
platforms = supported_platforms(exclude=Sys.iswindows)

# The products that we will ensure are always built
products = [
FileProduct("bin/fflas-ffpack-config", :fflas_ffpack_config),
FileProduct("include/fflas-ffpack/fflas-ffpack-config.h", :fflas_ffpack_config_h)
]

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency("GMP_jll"; compat="6.2.1"),
Dependency("Givaro_jll"; compat="4.2.0"),
Dependency("libblastrampoline_jll"; compat="5.4.0")
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
clang_use_lld=false, julia_compat="1.9", preferred_gcc_version=v"6")
Loading

0 comments on commit 38c01ed

Please sign in to comment.