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

name                libgig
version             4.4.1
revision            0
checksums           rmd160  fd881f13fdd5523793552b14c9663647ef880e9d \
                    sha256  fdc89efab1f906128e6c54729967577e8d0462017018bc12551257df5dfe3aa4 \
                    size    589939

categories          audio
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-2+ LGPL-2.1+

description         C++ library for loading, modifying and creating \
                    Gigasampler and DLS (Downloadable Sounds) Level 1/2 files

long_description    libgig is a C++ library for loading, modifying existing \
                    and creating new Gigasampler files and DLS (Downloadable \
                    Sounds) Level 1/2 files. \
                    The following command line tools are also included: \
                    \n \
                    \n* gigextract (extracts samples from a .gig file) \
                    \n* gigdump (prints out the content of a .gig file) \
                    \n* dlsdump (prints out the content of a DLS file) \
                    \n* rifftree (prints out the RIFF tree structure \
                        of an arbitrary RIFF file)

homepage            https://www.linuxsampler.org/libgig
master_sites        https://download.linuxsampler.org/packages/
use_bzip2           yes

depends_build       port:pkgconfig

depends_test        port:cppunit

depends_lib         port:libsndfile

compiler.cxx_standard 2011

configure.ldflags-append -framework CoreFoundation

use_parallel_build  no

test.run            yes
test.dir            ${worksrcpath}/src/testcases
test.cmd            ./libgigtests
test.target

pre-test {
    system -W ${test.dir} "${build.cmd} libgigtests"
}
