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

name                libquicktime-devel
set my_name         libquicktime
conflicts           libquicktime
version             1.2.4-20240203
git.branch          2213b76712c8e08d885482d117f904d570c990aa
revision            2
checksums           rmd160  44ff48062025bbdbd7c734088673877479a0c263 \
                    sha256  b66935dc7d775f36b1d36267ac69d3687decf2a2f191b86747622b152ea83e06 \
                    size    819646

categories          multimedia
maintainers         {jeremyhu @jeremyhu}
license             LGPL-2.1
description         library for reading and writing quicktime files
long_description    {*}${description}

homepage            https://libquicktime.sourceforge.net

master_sites        https://sourceforge.net/code-snapshots/git/l/li/libquicktime/git.git
distname            libquicktime-git-${git.branch}
use_zip             yes

ffmpeg.version      4

depends_build       path:bin/pkg-config:pkgconfig \
                    port:gettext

depends_lib         port:gettext-runtime \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:libiconv \
                    port:libpng \
                    port:zlib \
                    port:faac \
                    port:faad2 \
                    port:libvorbis \
                    port:lame \
                    port:schroedinger \
                    port:xorg-libXv \
                    port:xorg-libXaw \
                    port:xorg-libice \
                    port:xorg-libsm \
                    port:xorg-libX11 \
                    port:xorg-libXext \
                    port:xorg-libXt \
                    port:x264

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh
autoreconf.args
depends_build-append \
                    port:autoconf \
                    port:automake \
                    port:libtool

configure.args      --without-gtk \
                    --without-alsa \
                    --without-libdv \
                    --without-opengl \
                    --without-doxygen \
                    --enable-gpl

# Fix configure tests
configure.cflags-append -std=c99 -Wno-implicit-int

livecheck.type      git
livecheck.url       https://git.code.sf.net/p/libquicktime/git
livecheck.version   ${git.branch}
