# -*- 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

name            xorg-libXv
version         1.0.12
revision        0
categories      x11 devel
license         X11
maintainers     {jeremyhu @jeremyhu} openmaintainer
description     X.org libXv
homepage        https://www.x.org
platforms       darwin macosx
long_description    Xvideo extension library
master_sites    xorg:individual/lib/

distname        libXv-${version}
checksums       sha1    d7673f962eea2e9f285def9b3d9443099384a029 \
                rmd160  1734cd7a5850ef77bb26f7954fc99ed59d26720e \
                sha256  aaf7fa09f689f7a2000fe493c0d64d1487a1210db154053e9e2336b860c63848

use_xz          yes
use_parallel_build      yes

depends_build   port:pkgconfig

depends_lib     port:xorg-libXext \
                port:xorg-xorgproto

configure.checks.implicit_function_declaration.whitelist-append strchr

livecheck.type  regex
livecheck.url   https://xorg.freedesktop.org/archive/individual/lib/?C=M&O=D
livecheck.regex libXv-(\\d+(?:\\.\\d+)*)
