Doesn't build using PKGSRC package manager.
I tried building the library on a NetBSD system (which uses PKGSRC for its 3rd-party package installer.) All packages installed by this manager are placed in /usr/pkg/*. The build fails because it can't find lz4.h (since it's not looking in /usr/pkg/include.) The build would also have to find and specify the library in /usr/pkg/lib.
How do we add a search path? I didn't see a config-lz4 in OPAM.
Hmmm, I'm not up to date with OPAM best practices on this topic. @avsm?
I sort of assume the way to go these days is to depend on a (currently hypothetical) package called conf-lz4 and use something like Configurator to discover locations?
I'm even less up to date with OPAM best practices now :)
@rneswold there is a conf-lz4 in opam:
# opam info --raw conf-lz4
opam-version: "2.0"
name: "conf-lz4"
version: "1.0.0"
synopsis: "Virtual package requiring the lz4 command to be available"
maintainer: "https://github.com/ocaml/opam-repository/issues"
authors: "Yann Collet"
license: ["GPL-2.0-only" "BSD-2-Clause"]
homepage: "http://lz4.org"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
build: ["lz4" "-V"]
depexts: [
["liblz4-tool"] {os-family = "debian"}
["lz4"] {os-distribution = "centos"}
["lz4"] {os-distribution = "rhel"}
["lz4"] {os-distribution = "fedora"}
["lz4"] {os-distribution = "alpine"}
["lz4"] {os-family = "suse"}
["lz4"] {os = "macos" & os-distribution = "homebrew"}
]
I am unsure if any of the conf-* opam packages handles NetBSD.