# -*- 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
set my_name             libyuv
version                 20230817
revision                0

categories              multimedia
license                 BSD
maintainers             {mascguy @mascguy} openmaintainer

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

distname                ${my_name}-${version}
dist_subdir             ${my_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                 https://chromium.googlesource.com/${my_name}/${my_name}
git.branch              c60323de1756f489bd061e66aea9c3c73a8ef72c

cmake.generator         Ninja

depends_build-append \
                        port:pkgconfig

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

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