--- /dev/null
+--- a/configure.in
++++ b/configure.in
+@@ -3,7 +3,9 @@
+ AC_CANONICAL_SYSTEM
+
+ AM_INIT_AUTOMAKE(vsound, 0.5)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
++
++AC_CONFIG_MACRO_DIR([.])
+
+ AC_PROG_CC
+ AC_PROG_CPP
+@@ -45,12 +47,12 @@
+ fi
+
+ if test "$ac_cv_prog_gcc" = yes ; then
+- CFLAGS="-g -O2 -Wall -Wstrict-prototypes -pipe"
++ CFLAGS+=" -Wall -Wstrict-prototypes"
+ fi
+
+ if test "$ac_arg_debug" = yes; then
+ echo "enabling debug"
+- CFLAGS="$CFLAGS -DENABLE_DEBUG "
++ CPPFLAGS+=" -DENABLE_DEBUG"
+ fi
+
+ AC_OUTPUT(Makefile vsound)
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
-inherit eutils toolchain-funcs autotools
+inherit autotools
DESCRIPTION="A virtual audio loopback cable"
HOMEPAGE="http://www.vsound.org/"
KEYWORDS="amd64 ~ppc sparc x86"
IUSE=""
-RDEPEND=">=media-sound/sox-14.2.0"
+RDEPEND="media-sound/sox:="
DEPEND="${RDEPEND}"
-src_prepare() {
- epatch "${FILESDIR}"/${P}-stdout.patch
- AT_M4DIR="." eautoreconf
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-stdout.patch
+ "${FILESDIR}"/${P}-fix-build-system.patch
+)
-src_compile() {
- emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
}
src_install() {
default
-
- find "${D}" -name '*.la' -delete
+ find "${D}" -name '*.la' -delete || die
}
pkg_postinst() {