--- /usr/portage/media-sound/sox/sox-14.2.0.ebuild 2008-11-10 15:11:12.000000000 +0300 +++ sox-14.2.0.ebuild 2008-11-11 15:31:55.000000000 +0300 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/sox/sox-14.2.0.ebuild,v 1.1 2008/11/10 12:11:12 aballier Exp $ -inherit flag-o-matic +inherit flag-o-matic autotools DESCRIPTION="The swiss army knife of sound processing programs" HOMEPAGE="http://sox.sourceforge.net" @@ -30,6 +30,13 @@ png? ( media-libs/libpng ) wavpack? ( media-sound/wavpack )" +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-distro.patch" + eautoreconf +} + src_compile () { # Fixes wav segfaults. See Bug #35745. append-flags -fsigned-char @@ -51,6 +58,7 @@ $(use_with amrnb amr-nb) \ $(use_with png) \ $(use_with wavpack) \ + --with-distro="Gentoo" \ --enable-fast-ulaw \ --enable-fast-alaw \ || die "configure failed"