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

name                AtomicParsley-devel
github.setup        wez atomicparsley 1ca825de2b92d0eadf29b2f7d781399796528b7c
github.tarball_from archive
version             20241205
revision            0

categories          multimedia
maintainers         nomaintainer
license             GPL-2+

description         MPEG-4 command line tool

long_description    AtomicParsley is a lightweight command line program \
                    for reading, parsing and setting metadata into MPEG-4 \
                    files, in particular, iTunes-style metadata.

checksums           rmd160  a882f958af6e50aa4d210389849e617a23e875f4 \
                    sha256  2346baaee089e21404278fc2089246fe22f1a94e6207fa6dd048a7471164746e \
                    size    231962

conflicts           AtomicParsley

depends_lib         port:zlib

patchfiles          patch-dont-force-universal2.diff

if {${os.platform} eq "darwin" && ${os.major} < 16} {
    patchfiles-append   patch-use-deprecated.diff
}

compiler.cxx_standard 2011

post-patch {
    reinplace "s|$\{\PACKAGE_VERSION\}\|${version}|g" ${worksrcpath}/CMakeLists.txt
    reinplace "s|$\{\BUILD_INFO\}\|${cmake.build_type}|g" ${worksrcpath}/CMakeLists.txt
}
