logo

overlay

My (experimental) gentoo overlay
commit: 29a45e0fee1b4fbdde02bc4dc0becb2d2b809b10
parent: efd66e144cb9f8284cfee14a4c46d1262708d346
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  7 Mar 2018 03:20:34 +0100

 media-sound/sbagen: Fix LDFLAGS by using pkg-config

Diffstat:

Mmedia-sound/sbagen/sbagen-1.4.5.ebuild8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/media-sound/sbagen/sbagen-1.4.5.ebuild b/media-sound/sbagen/sbagen-1.4.5.ebuild @@ -15,6 +15,8 @@ RESTRICT="mirror" IUSE="mp3 vorbis" +RDEPEND="${DEPEND} + virtual/pkgconfig" DEPEND="mp3? ( media-libs/libmad ) vorbis? ( media-libs/tremor )" @@ -30,13 +32,13 @@ src_prepare() { src_compile() { if use vorbis; then - append-flags -DOGG_DECODE -ltremor + append-flags -DOGG_DECODE $(pkg-config --libs vorbisidec) fi if use mp3; then - append-flags -DMP3_DECODE -lmad + append-flags -DMP3_DECODE $(pkg-config --libs mad) fi - $(tc-getCC) ${CFLAGS} -DT_LINUX -Wall -lm -lpthread ${LDFLAGS} sbagen.c -o sbagen || die "Sbagen: compilation failed" + $(tc-getCC) ${CFLAGS} -DT_LINUX -Wall -lpthread ${LDFLAGS} sbagen.c -o sbagen || die "Sbagen: compilation failed" } src_install() {