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

name                    libyuv
# https://chromium.googlesource.com/libyuv/libyuv/+/refs/heads/main/include/libyuv/version.h
version                 0.0.1922-20260128
git.branch              917276084a49be726c90292ff0a6b0a3d571a6af
revision                0
epoch                   1
categories              multimedia
license                 BSD
maintainers             {mascguy @mascguy} openmaintainer

description             ${name} is an open-source project that includes YUV scaling and conversion functionality
long_description        {*}${description}
homepage                https://chromium.googlesource.com/${name}/${name}

# use git fetch rather than downloading a snapshot tarball
# which delivers a different checksum and size on each download
# this is not a stealth upgrade but a "feature" of this repo
fetch.type              git
git.url                 ${homepage}

cmake.generator         Ninja

depends_build-append    path:bin/pkg-config:pkgconfig

depends_lib-append      path:include/turbojpeg.h:libjpeg-turbo

# Undeclared identifier: nullptr
compiler.cxx_standard   2011
cmake.set_cxx_standard  yes
