this repo has no description
1opam-version: "2.0"
2authors: "Kakadu@pm.me kakadu.hafanana@gmail.com"
3maintainer: "Kakadu"
4license: "LGPL-2.1-or-later"
5homepage: "http://kakadu.github.io/lablqml/"
6bug-reports: "https://github.com/kakadu/lablqml/issues"
7dev-repo: "git+https://github.com/Kakadu/lablqml.git"
8build-env: [
9 [HOMEBREW_NO_AUTO_UPDATE = "1"]
10]
11build: [
12 ["sh" "-ex" "./configure.sh" "%{version}%" ]
13 { os="macos" | os-family="debian" | os-distribution = "arch" }
14 ["sh" "-ex" "./configure.sh" "%{version}%" "-qt5" ]
15 { os!="macos" & os-family != "debian" & os-distribution != "arch" }
16]
17
18# It currently doesn't compile on MacOS because I don't know how to get mac-specific build command
19# (the syntax similar to depexts seems to be not supported).
20# In general, we need to add extra PATH (Mac only) variable in manner like
21# "$(brew --cellar qt)/$(brew list --versions qt | tr ' ' '\n' | tail -1)/bin"
22# to make `qmake` available. But currently I don't know how to express it in opam recipe
23
24post-messages:
25 "It's recommended to set PKG_CONFIG_PATH to /usr/local/opt/qt/lib/pkgconfig to enable pkg-config. Also you may need to execute `brew link --force` to symlink everything properly. https://github.com/Kakadu/lablqml/issues/21#issuecomment-319489574 "
26 {os = "macos"}
27depexts: [
28 ["qt5"] {os = "macos" & os-distribution = "homebrew"}
29 ["qtdeclarative5-dev" "qt5-qmake"]
30 { os-family = "debian" & os-distribution != "ubuntu" }
31 ["qt5-default"]
32 { os-distribution = "debian" & os-version <= "10" }
33 ["qt5-default" "qtdeclarative5-dev" "qt5-qmake"]
34 { os-distribution = "ubuntu" & os-version < "21.04" }
35 ["qtbase5-dev" "qtdeclarative5-dev" "qt5-qmake"]
36 { os-distribution = "ubuntu" & os-version >= "21.04" }
37 ["qt5-qmake"]
38 { os-distribution = "oracle" }
39 ["qt5-base" "qt5-declarative"]
40 { os-distribution = "arch" }
41
42 # to set right paths for qt5 automatically we should
43 # 1) add `@edge http://nl.alpinelinux.org/alpine/edge/testing` to `/etc/apk/repositories`
44 # 2) perform installation via `apk add qtchooser@edge`
45 # but this repo is not shipped by default on CI
46 ["qt5-qtbase-dev" "qt5-qtdeclarative-dev"]
47 { os-distribution = "alpine" }
48
49 # TODO: this packages provide `qmake-qt5` executable and I have no idea how to make
50 # `qmake` be a symlink to there
51 [ "qt5-qtbase-devel" "qt5-qtdeclarative-devel"]
52 { os-distribution = "centos" }
53 [ "qt-devel" ]
54 { os-distribution = "centos" & os-version <= "7" }
55 [ "qt5-qtbase-devel" "qt5-qtdeclarative-devel" #"qmake-qt5"
56 ]
57 { os-family = "fedora" }
58 ["libqt5-qtbase-common-devel" "libqt5-qtbase-devel" "libqt5-qtdeclarative-devel" ]
59 { os-family = "suse" | os-family = "opensuse" }
60]
61synopsis: "Installation of Qt5 using APT packages or from source"
62flags: conf
63extra-source "configure.sh" {
64 src:
65 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-qt/configure.sh"
66 checksum: [
67 "sha256=ec07b7ce43a2a17ef77ef322eba303f6fdc80bc907ca46791cabf73fb0cf81c3"
68 "md5=78ed05ba24ce4c1f929276bdefef8818"
69 ]
70}
71
72x-maintenance-intent: [ "(latest)" ]