# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           ocaml 1.1

name                ocaml-uchar
github.setup        ocaml uchar 0.0.2 v
revision            2
categories          ocaml devel
maintainers         nomaintainer
license             LGPL-2.1
description         Compatibility library for OCaml’s Uchar module
long_description    {*}${description}
use_bzip2           yes
extract.suffix      .tbz
distname            uchar-${version}
checksums           rmd160  41ff6f41e883c9b37ea81762438dbbf23152e415 \
                    sha256  47397f316cbe76234af53c74a1f9452154ba3bdb54fced5caac959f50f575af0 \
                    size    22643
github.tarball_from releases

ocaml.build_type    topkg
topkg.setup         ${worksrcpath}/pkg/build.ml

if {${configure.build_arch} in [list ppc ppc64]} {
    topkg.build.pre_args    native=false native-dynlink=false
} else {
    topkg.build.pre_args    native=true native-dynlink=true
}
