# -*- 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           conflicts_build 1.0
PortGroup           github 1.0

github.setup        libcdio libcdio 2.3.0
revision            0
categories          devel
license             GPL-3+
maintainers         nomaintainer

description         Compact Disc Input and Control Library
long_description    The libcdio package contains a library which \
                    encapsulates CD-ROM reading and control. \
                    Applications wishing to be oblivious of the OS- \
                    and device-dependent properties of a CD-ROM \
                    can use this library.
homepage            https://www.gnu.org/software/libcdio

use_bzip2           yes
checksums           rmd160  7109c07e718ff7ad2d57e3b8973076cd00fc0bdc \
                    sha256  53e83d284667535a767fd2d31edad1a6701591960459df373a10f1f21e80a7ed \
                    size    1726786
github.tarball_from releases

# hfs_format.h:765: error: expected specifier-qualifier-list before 'uuid_string_t'
conflicts_build     libuuid

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:libcddb \
                    port:libiconv \
                    port:ncurses

compiler.cxx_standard   2011

configure.args      --disable-rpath \
                    --disable-silent-rules \
                    --enable-cddb

# https://github.com/libcdio/libcdio/issues/64
configure.cppflags-append \
                    -D__DARWIN_C_ANSI

test.run            yes
test.target         check
