Skip to content

Commit

Permalink
[htscodecs] add recipe (JuliaPackaging#7635)
Browse files Browse the repository at this point in the history
- 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
M-PERSIC authored and amontoison committed Nov 27, 2023
1 parent 2610e6f commit 307d7f2
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions H/htscodecs/build_tarballs.jl
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",
)

0 comments on commit 307d7f2

Please sign in to comment.