# -*- 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                libcdio
version             2.1.0
revision            1

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/

depends_build       port:pkgconfig

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

master_sites        gnu
use_bzip2           yes
checksums           rmd160 6b0e4917cd2dd5cac0b7afdb70789bf0ad2aed79 \
                    sha256 8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b

# move pragma outside of function so that older gcc versions can compile it
# using newer gcc versions on Tiger in these files doesn't work as FSF gcc
# doesn't understand the pramga usage in the Tiger headers - gcc bug 50909
patchfiles          patch-libcdio-lib-iso9660-move-pragma.diff

# Remove the unecessary addtional byte added to the TOC buffer
patchfiles-append      remove-additional-byte-TOC-buffer.diff

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

test.run            yes
test.target         check
