--- miniaudicle-0.1.3.8-r1.ebuild 2011-03-29 14:38:47.000000000 +0200 +++ miniaudicle-0.1.3.8-r2.ebuild 2013-05-19 13:28:48.967911519 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/miniaudicle/miniaudicle-0.1.3.8-r1.ebuild,v 1.5 2011/03/29 12:38:47 angelos Exp $ -EAPI=2 +EAPI=5 WX_GTK_VER=2.8 inherit eutils toolchain-funcs flag-o-matic wxwidgets @@ -42,7 +42,7 @@ epatch "${FILESDIR}/${P}-void-to-int-cast.patch" sed -i -e "s/make -C/#make -C/" \ - -e "s/g++/\$(CXX)/" \ + -e "s/g++/\$(CXX) \$(LDFLAGS)/" \ -e "s/-O3 -c/-c \$(CFLAGS)/" \ makefile.* || die "sed failed" } @@ -52,10 +52,10 @@ einfo "Compiling against ${backend}" cd "${S}/chuck/src" emake -f "makefile.${backend}" CC=$(tc-getCC) \ - CXX=$(tc-getCXX) || die "emake failed" + CXX=$(tc-getCXX) LDFLAGS="${LDFLAGS}" cd "${S}" emake -f "makefile.${backend}" CC=$(tc-getCC) \ - CXX=$(tc-getCXX) || die "emake failed" + CXX=$(tc-getCXX) LDFLAGS="${LDFLAGS}" mv wxw/miniAudicle{,-${backend}} emake -f "makefile.${backend}" clean cd "${S}/chuck/src"