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

# normally update mediainfo port at the same time
github.setup        MediaArea MediaInfoLib 25.09 v
github.tarball_from archive
checksums           rmd160  6dea615a43026136239c1a2a5f8d6413f2c71df0 \
                    sha256  ae1e9be5349e476b39d1a0147d499a8807e88387150fabb1a3e4af8806fae771 \
                    size    3181919

name                mediainfolib
description         Supplies technical and tag information about a video or audio file
long_description    {*}${description}
homepage            https://mediaarea.net
categories          devel multimedia
maintainers         {makr @mohd-akram} openmaintainer
license             BSD

# make pkg-config act like on Linux, no '-I/opt/local/include' in cflags
configure.env-append \
                    PKG_CONFIG_SYSTEM_INCLUDE_PATH=${prefix}/include

# cascade of errors if no autoreconf
use_autoreconf      yes
autoreconf.args-append \
                    --force --install
configure.args      --with-libcurl

# otherwise may find headers from libmd, maybe others
configure.cppflags-delete \
                    -I${prefix}/include

depends_build-append \
                    path:bin/pkg-config:pkgconfig
depends_lib-append  port:curl \
                    port:zenlib \
                    port:zlib

worksrcdir          ${worksrcdir}/Project/GNU/Library

compiler.cxx_standard \
                    2011

# see https://trac.macports.org/ticket/67223
compiler.blacklist-append \
                    {clang < 900}
