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

name                gavl
version             1.4.0
revision            0
license             GPL-2+
categories          multimedia
maintainers         nomaintainer

description         Gavl (Gmerlin Audio Video Library) is a low level library, upon which \
                    multimedia APIs can be built.

long_description    Gavl (Gmerlin Audio Video Library) is a low level library, upon which \
                    multimedia APIs can be built. Gavl handles all the details of audio and \
                    video formats like colorspaces, samplerates, multichannel configurations etc. \
                    It provides standardized definitions for those formats as well as container \
                    structures for carrying audio samples or video images inside an application. \
                    \
                    In addition, it handles the sometimes ugly task of converting between all \
                    these formats and provides some elementary operations (copying, scaling, \
                    alpha blending, etc).

homepage            http://gmerlin.sourceforge.net/gavl_frame.html
master_sites        sourceforge:gmerlin

checksums           rmd160  85b0c325bed1a9a8bf878bfb81aea56e7f0e70ed \
                    sha256  51aaac41391a915bd9bad07710957424b046410a276e7deaff24a870929d33ce \
                    size    4592701

patchfiles          patch-x86-cpuinfo.diff \
                    patch-clocktime_nanosleep.diff \
                    patch-missing-includes.diff

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

depends_build       path:bin/doxygen:doxygen \
                    port:libpng \
                    port:pkgconfig

compiler.blacklist  *llvm-gcc-4.2

platform darwin 10 powerpc {
    # Otherwise Intel insns are used on Rosetta, and build fails.
    patchfiles-append patch-rosetta.diff
    configure.args-append --build=powerpc-apple-darwin${os.major}
}

livecheck.distname  ${name}
