# -*- 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                liboss
version             0.0.1
revision            3
checksums           rmd160  acd9027c48224a6704ad054552c2f393f2997248 \
                    sha256  ea9a174ecccaed4c01608f5568131e86cfa4e22806506a5dc8b61cb80fefd8c1 \
                    size    171271

categories          audio
# BSD-old conflicts with LGPL when used in the same program
license             LGPL BSD-old Restrictive
maintainers         nomaintainer

description         OSS emulation for macOS

long_description    liboss is a sound API to provide OSS support in macOS.

homepage            http://${name}.sourceforge.net/
master_sites        sourceforge:project/${name}/${name}/${version}
use_bzip2           yes

depends_lib         port:audiofile \
                    port:esound

post-extract {
    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
}

patchfiles          patch-lib-ossins.c \
                    STATIC.patch

# Fix many issues in this ancient autotools build:
# * implicit declaration of functions in configure script
# * improper use of flat namespace
# * improper passing of linker flags to clang in libtool
# * ancient config.guess and config.sub files
# * wrong mandir
use_autoreconf      yes
autoreconf.args     -fvi