# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "2.2.4-1"
synopsis: "Swiss-army knife for multimedia streaming"
description: """
Liquidsoap is a powerful and flexible language for describing your
streams. It offers a rich collection of operators that you can combine
at will, giving you more power than you need for creating or
transforming streams. But liquidsoap is still very light and easy to
use, in the Unix tradition of simple strong components working
together.
"""
maintainer: ["The Savonet Team <savonet-users@lists.sourceforge.net>"]
authors: ["The Savonet Team <savonet-users@lists.sourceforge.net>"]
license: "GPL-2.0-or-later"
homepage: "https://github.com/savonet/liquidsoap"
bug-reports: "https://github.com/savonet/liquidsoap/issues"
depends: [
  "dune" {>= "3.6"}
  "liquidsoap-core" {= version}
  "liquidsoap-libs" {>= "2.2.4" & < "2.2.5"}
  "liquidsoap-libs-extra" {>= "2.2.4" & < "2.2.5"}
  "odoc" {with-doc}
]
build: [
  ["dune" "subst"] {dev}
  [
    "dune"
    "build"
    "-p"
    name
    "-j"
    jobs
    "--promote-install-files=false"
    "@install"
    "@runtest" {with-test}
    "@doc" {with-doc}
  ]
  ["dune" "install" "-p" name "--create-install-files" name]
]
post-messages: [
  """\
We're sorry that your liquidsoap install failed. Check out our installation
instructions at: https://www.liquidsoap.info/doc-%{version}%/install.html#opam
for more information."""
    {failure}
  "✨ Congratulations on installing liquidsoap! ✨" {success}
  """\
We noticed that you did not install the ffmpeg package. This package is
highly recommended for most users and provides a lot of useful features,
including decoding and encoding multiple media format, sending and
receiving from various inputs and outputs and more."""
    {success & !ffmpeg-enabled}
  """\
We noticed that you did not install any ssl or tls support. Liquidsoap won't
be able to use SSL encryption in its input or output operators. You might want
to install one of ssl or tls-liquidsoap package."""
    {success & !ssl-enabled & !tls-enabled}
  """\
We noticed that your build includes GStreamer support. This support is DEPRECATED.
We suggest you consider moving to FFmpeg, which should provide same the same level
of functionalities."""
    {success & gstreamer-enabled}
]
depexts: ["coreutils"] {os = "macos" & os-distribution = "homebrew"}
dev-repo: "git+https://github.com/savonet/liquidsoap.git"
