opam-version: "2.0"
maintainer: "zandoye@gmail.com"
authors: [ "ZAN DoYe" ]
homepage: "https://bitbucket.org/zandoye/ocaml-opencc0/"
bug-reports: "https://bitbucket.org/zandoye/ocaml-opencc0/issues"
license: "MIT"
tags: [
  "opencc"
  "Chinese conversion"
]

build: [
  ["sh" "-exec" "cc $CFLAGS test.c -l:libopencc.so.1"]
]

depexts: [
  ["libopencc1"] {os-family = "debian"}
  ["libopencc1"] {os-family = "suse"}
]
post-messages: [
  "If the libopencc0 library is not installed by the system package manager, make sure that the path of the directory containing libopencc.so.1 is included in env-var LD_LIBRARY_PATH(for ld) and LIBRARY_PATH(for cc)" {failure}
]

synopsis: "Virtual package relying on opencc v0 (libopencc.so.1) installation"
description: "This package can install only if the libopencc v0 is available on the system"

extra-files: [
  "test.c" "md5=9690f46dfbcfc47a300c8cac95f3ded2"
]

flags: [conf]

