forked from JuliaPackaging/Yggdrasil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[htscodecs] add recipe (JuliaPackaging#7635)
- Name: htscodecs - Version: v1.5.2 (2aca18b335bc2b580698e487092b794c514ac62c) - Source: https://github.com/samtools/htscodecs.git - Language(s): C/JavaScript - Build System: autoconf - Depends: Bzip2 (JLL available: yes) - Depends (optional): JavaScript (unused) - Description: "Custom compression for CRAM and others."
- Loading branch information
1 parent
2610e6f
commit 307d7f2
Showing
1 changed file
with
54 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,54 @@ | ||
# 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 = "htscodecs" | ||
version = v"1.5.2" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
GitSource( | ||
"https://github.com/samtools/htscodecs.git", | ||
"2aca18b335bc2b580698e487092b794c514ac62c", | ||
), | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd ${WORKSPACE}/srcdir/htscodecs | ||
install_license LICENSE.md | ||
autoreconf -fvi | ||
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} | ||
make -j${nproc} | ||
make install | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = supported_platforms(; exclude = Sys.iswindows) | ||
|
||
# The products that we will ensure are always built | ||
products = [LibraryProduct("libhtscodecs", :libhtscodecs)] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = [ | ||
Dependency( | ||
PackageSpec(; name = "Bzip2_jll", uuid = "6e34b625-4abd-537c-b88f-471c36dfa7a0"); | ||
compat="1.0.8", | ||
), | ||
] | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well | ||
build_tarballs( | ||
ARGS, | ||
name, | ||
version, | ||
sources, | ||
script, | ||
platforms, | ||
products, | ||
dependencies; | ||
julia_compat = "1.6", | ||
preferred_gcc_version = v"7", | ||
) | ||
|