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