--- mp3gain-1.4.6-r2.ebuild 2009-03-29 13:26:49.861128219 +1100 +++ mp3gain-1.4.6-r3.ebuild 2009-03-29 13:31:53.211003602 +1100 @@ -24,16 +24,14 @@ cd "${S}" filter-flags -O* - sed -i -e "s:CC=.*:CC=$(tc-getCC):" "${S}"/Makefile || die "Unable to override compiler selection" - sed -i -e "s:CFLAGS= -Wall -O3 -DHAVE_MEMCPY:CFLAGS+= -Wall -DHAVE_MEMCPY:" "${S}"/Makefile || - die "Unable to convince build system to respect CFLAGS" + sed -i -e "s:CC=.*:CC=$(tc-getCC):" \ + -e "s:CFLAGS= -Wall -O3 -DHAVE_MEMCPY:CFLAGS+= -Wall -DHAVE_MEMCPY:" \ + -e "s:LIBS=.*:LIBS= ${LDFLAGS} -lm:" \ + "${S}"/Makefile \ + || die "Unable to adjust build system compiler/flags." epatch "${FILESDIR}"/${PV}-option-parser.patch } -src_compile() { - emake CC="$(tc-getCC)" || die "Compile failed" -} - src_install () { dobin mp3gain }