Lines 24-39
Link Here
|
24 |
cd "${S}" |
24 |
cd "${S}" |
25 |
|
25 |
|
26 |
filter-flags -O* |
26 |
filter-flags -O* |
27 |
sed -i -e "s:CC=.*:CC=$(tc-getCC):" "${S}"/Makefile || die "Unable to override compiler selection" |
27 |
sed -i -e "s:CC=.*:CC=$(tc-getCC):" \ |
28 |
sed -i -e "s:CFLAGS= -Wall -O3 -DHAVE_MEMCPY:CFLAGS+= -Wall -DHAVE_MEMCPY:" "${S}"/Makefile || |
28 |
-e "s:CFLAGS= -Wall -O3 -DHAVE_MEMCPY:CFLAGS+= -Wall -DHAVE_MEMCPY:" \ |
29 |
die "Unable to convince build system to respect CFLAGS" |
29 |
-e "s:LIBS=.*:LIBS= ${LDFLAGS} -lm:" \ |
|
|
30 |
"${S}"/Makefile \ |
31 |
|| die "Unable to adjust build system compiler/flags." |
30 |
epatch "${FILESDIR}"/${PV}-option-parser.patch |
32 |
epatch "${FILESDIR}"/${PV}-option-parser.patch |
31 |
} |
33 |
} |
32 |
|
34 |
|
33 |
src_compile() { |
|
|
34 |
emake CC="$(tc-getCC)" || die "Compile failed" |
35 |
} |
36 |
|
37 |
src_install () { |
35 |
src_install () { |
38 |
dobin mp3gain |
36 |
dobin mp3gain |
39 |
} |
37 |
} |