1 |
Well, I couldn't really get sed to work, but I figured out how to do |
2 |
with just a patch that comments out all the CFLAGS in the Makefile. One |
3 |
thing, though, is that it wouldn't compile correctly unless I left in |
4 |
the "CFLAGS += -DARCH_X86 -DLINUX" (it was just =, but I changed it to |
5 |
+= to include make.conf settings). Also in the Makefile is a "CC = |
6 |
gcc". Is this really necessary? Without it, though, make just calls cc |
7 |
instead of gcc. |
8 |
|
9 |
On Sat, 2002-06-22 at 20:36, Ben Lutgens wrote: |
10 |
> On Sat, Jun 22, 2002 at 07:03:51PM -0500, Jacob Perkins wrote: |
11 |
> >I'm trying to make an ebuild for the xvid encoding library, and it's my |
12 |
> >first one so I'm having a little trouble. It doesn't have a configure |
13 |
> >script and only has a Makefile that has it's own CFLAGS, prefix, etc. |
14 |
> >What kind of commands are available for setting the flags to those in |
15 |
> >make.conf? |
16 |
> |
17 |
> use some sed mojo. from the exim ebuild: |
18 |
> sed -e "48i\CFLAGS=${CFLAGS}" src/EDITME > Local/Makefile |
19 |
> |
20 |
> you can do |
21 |
> cat fileyouwannaedit | sed -e "s:stuff to change:new stuff:g" > fileyouwannaedit |
22 |
> |
23 |
> or |
24 |
> cp fileyouwannaedit fileyouwannaedit.orig |
25 |
> sed -e "48i\CFLAGS=${CFLAGS}" fileyouwannaedit.orig > fileyouwannaedit |
26 |
> |
27 |
> > |
28 |
> >Jacob |
29 |
> > |
30 |
> > |
31 |
> |
32 |
> |
33 |
> |
34 |
> -- |
35 |
> Ben Lutgens | http://cvs.gentoo.org/~lamer/ |
36 |
> Random Gentoo Developer | http://www.gentoo.org/ |
37 |
> |
38 |
> "I got a wife and kids too but you don't see me out here stealing Imperial |
39 |
> Droids now do ya?" |