# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
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.2"}
  "ocaml-windows" {>= "4.14.0"}
  "camomile-windows" {>= "2.0.0"}
  "camomile" {>= "2.0.0"}
  "dtools-windows" {>= "0.4.5"}
  "duppy-windows" {>= "0.9.3"}
  "mm-windows" {>= "0.8.4"}
  "pcre-windows" {>= "7.5.0"}
  "cry-windows" {>= "1.0.1"}
  "sedlex" {>= "3.2"}
  "sedlex-windows" {>= "3.2"}
  "magic-mime-windows"
  "menhir"
  "menhirLib-windows"
  "metadata-windows"
  "dune-site-windows"
  "dune-build-info-windows"
  "ppx_string" {build}
  "ppx_string-windows" {build}
]
depopts: [
  "alsa-windows"
  "ao-windows"
  "bjack-windows"
  "camlimages-windows"
  "dssi-windows"
  "faad-windows"
  "fdkaac-windows"
  "ffmpeg-windows"
  "flac-windows"
  "frei0r-windows"
  "gd-windows"
  "graphics-windows"
  "gstreamer-windows"
  "inotify-windows"
  "irc-client-unix-windows"
  "ladspa-windows"
  "lame-windows"
  "lastfm-windows"
  "lilv-windows"
  "lo-windows"
  "mad-windows"
  "memtrace-windows"
  "mem_usage-windows"
  "curl-windows"
  "ogg-windows"
  "opus-windows"
  "osx-secure-transport-windows"
  "portaudio-windows"
  "posix-time2-windows"
  "pulseaudio-windows"
  "prometheus-liquidsoap-windows"
  "samplerate-windows"
  "shine-windows"
  "soundtouch-windows"
  "speex-windows"
  "srt-windows"
  "ssl-windows"
  "taglib-windows"
  "theora-windows"
  "tsdl-windows"
  "tsdl-image-windows"
  "tsdl-ttf-windows"
  "vorbis-windows"
  "xmlplaylist-windows"
]
conflicts: [
  "alsa-windows" {< "0.3.0"}
  "ao-windows" {< "0.2.0"}
  "bjack-windows" {< "0.1.3"}
  "dssi-windows" {< "0.1.3"}
  "faad-windows" {< "0.5.0"}
  "fdkaac-windows" {< "0.3.1"}
  "ffmpeg-windows" {< "1.1.8"}
  "ffmpeg-avutil-windows" {< "1.1.8"}
  "flac-windows" {< "0.3.0"}
  "frei0r-windows" {< "0.1.0"}
  "gstreamer-windows" {< "0.3.1"}
  "inotify-windows" {< "1.0"}
  "ladspa-windows" {< "0.2.0"}
  "lame-windows" {< "0.3.5"}
  "lastfm-windows" {< "0.3.0"}
  "lo-windows" {< "0.2.0"}
  "liquidsoap-windows" {< "2.2.0"}
  "mad-windows" {< "0.5.0"}
  "magic-windows" {< "0.6"}
  "mem_usage-windows" {< "0.0.3"}
  "curl-windows" {< "0.9.2"}
  "ogg-windows" {< "0.7.4"}
  "opus-windows" {< "0.2.0"}
  "portaudio-windows" {< "0.2.0"}
  "pulseaudio-windows" {< "0.1.4"}
  "samplerate-windows" {< "0.1.5"}
  "shine-windows" {< "0.2.0"}
  "soundtouch-windows" {< "0.1.9"}
  "speex-windows" {< "0.4.0"}
  "srt-windows" {< "0.3.0"}
  "ssl-windows" {< "0.5.2"}
  "taglib-windows" {< "0.3.7"}
  "sdl-liquidsoap-windows" {< "2"}
  "tsdl-image-windows" {< "0.3.2"}
  "theora-windows" {< "0.4.0"}
  "vorbis-windows" {< "0.8.0"}
  "xmlplaylist-windows" {< "0.1.3"}
]
build: [
  [ "env"
    "LIQUIDSOAP_BUILD_TARGET=standalone"
    "LIQUIDSOAP_SYS_CONFIG=mingw"
    "LIQUIDSOAP_ENABLE_BUILD_CONFIG=false"
    "LDFLAGS=-lssp -lfdk-aac"
    "dune"
    "build"
    "-x"
    "windows"
    "-p"
    "liquidsoap-lang,liquidsoap-core"
    "@install"
    "-j"
    jobs
  ]
]
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 any mp3 decoder. This is a feature most
users want. You might need to install the mad or ffmpeg package."""
    {success & !mad-enabled & !ffmpeg-enabled}
  """\
We noticed that you did not install any mp3 encoder. This is a feature most
users want. You might need to install the lame or shine package."""
    {success & !lame-enabled & !shine-enabled & !ffmpeg-enabled}
  """\
We noticed that you did not install the taglib package that provides support
for reading metadata in audio files. This is a feature most users want."""
    {success & !taglib-enabled}
  """\
We noticed that you did not install the samplerate package. We strongly
recommend this package for audio samplerate conversion."""
    {success & !samperate-enabled}
  """\
We noticed that you did not install the ocurl package. We strongly
recommend this package for http request resolving support."""
    {success & !curl-enabled}
  """\
We noticed that you did not install the cry package that provides icecast
output. This is a feature most users want."""
    {success & !cry-enabled}
  """\
We noticed that you did not install any ssl support package. Liquidsoap won't
be able to use any HTTPS feature. You might want to install one of ssl or
osx-secure-transport package."""
    {success & !ssl-enabled & !secure-transport-enabled}
]
depexts: ["coreutils"] {os = "macos" & os-distribution = "homebrew"}
dev-repo: "git+https://github.com/savonet/liquidsoap.git"
url {
  src: "https://github.com/savonet/liquidsoap/archive/@COMMIT_SHORT@.tar.gz"
}
