1 |
Sean Mitchell wrote: |
2 |
>I'm working on an ebuild for GATOS which uses the ibtk gui library. |
3 |
> |
4 |
>It looks like the only way to get the sources for GATOS & IBTK is by CVS. Is |
5 |
>there a way to use cvs as a SRC_URI? CVS doesn't seem to be a supported URI |
6 |
>from what I saw in the RFC. For now I've grabbed it myself, built tar.bz2s |
7 |
>and put them on my apache server. |
8 |
|
9 |
No clue. |
10 |
|
11 |
>The next problem I have is getting ibtk installed properly. It uses a |
12 |
>gtk-config style script called ibtk-config which seems to get built by |
13 |
>./configure. The problem is that when I specify --prefix=${D}/usr |
14 |
>ibtk-config gets built with this temporary prefix. When GATOS tries to use |
15 |
>it it goes looking in /tmp/portage/ibtk/image/ibtk-0.0.14/usr for include |
16 |
>files and such and the compile fails. |
17 |
> |
18 |
>Worse, the ibtk makefile doesn't accept an argument for make install ("make |
19 |
>install DESTDIR") so I can't do it that way. Anyone have any ideas here? |
20 |
|
21 |
You want to build it with --prefix=/usr, and install it with |
22 |
prefix=${D}/usr. Like so: |
23 |
|
24 |
src_compile() { |
25 |
try ./configure --prefix=/usr |
26 |
try make |
27 |
} |
28 |
|
29 |
src_install() { |
30 |
try make prefix=${D}/usr install |
31 |
} |
32 |
|
33 |
That has worked for me on xbatt and nmh. |
34 |
|
35 |
Damon |
36 |
|
37 |
-- |
38 |
"UNIX was not designed to stop you from doing stupid things, because that |
39 |
would also stop you from doing clever things." --Doug Gwyn |