Gentoo Archives: gentoo-user

From: Michael Orlitzky <michael@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Generate an ebuild for mldonkey-3.1.3
Date: Fri, 14 Sep 2012 13:54:02
Message-Id: 50533637.3020206@orlitzky.com
In Reply to: [gentoo-user] Generate an ebuild for mldonkey-3.1.3 by Alexandre Paz Mena
1 On 09/14/2012 04:58 AM, Alexandre Paz Mena wrote:
2 > Hi, I'm trying to generate an ebuild for mldonkey-3.1.3 from version
3 > 3.1.0 in a "x86_64" machine.
4 >
5 > To manually compile de project I have to export LDFLAGS="-png15" before
6 > running ./configure
7 >
8 > the problem is that I don't know how to export it inside the ebuild,
9 > I've tried with "append-ldflags -lpng15" in different places but, that
10 > doesn't seem to work.
11 >
12 > Does anybody have an idea?
13
14 The *real* way is to tell upstream to fix their build system. But this
15 works too:
16
17
18 --- /usr/portage/net-p2p/mldonkey/mldonkey-3.1.0.ebuild 2012-02-24
19 16:01:22.000000000 -0500
20 +++ ./mldonkey-3.1.3.ebuild 2012-09-14 09:47:39.613742734 -0400
21 @@ -92,7 +92,13 @@
22
23 src_compile() {
24 export OCAMLRUNPARAM="l=256M"
25 - emake || die "emake failed"
26 +
27 + local my_extra_libs
28 + if use gd; then
29 + my_extra_libs="-lpng15"
30 + fi
31 +
32 + emake LIBS="${my_extra_libs}" || die "emake failed"
33
34 if ! use guionly; then
35 emake utils || die "emake utils failed"

Replies

Subject Author
Re: [gentoo-user] Generate an ebuild for mldonkey-3.1.3 Alexandre Paz Mena <erzapito@×××××.com>