* [gentoo-dev] new xvid ebuild
@ 2002-06-23 0:03 Jacob Perkins
2002-06-23 1:36 ` Ben Lutgens
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Perkins @ 2002-06-23 0:03 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
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?
Jacob
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] new xvid ebuild
2002-06-23 0:03 [gentoo-dev] new xvid ebuild Jacob Perkins
@ 2002-06-23 1:36 ` Ben Lutgens
2002-06-23 14:41 ` Jacob Perkins
0 siblings, 1 reply; 3+ messages in thread
From: Ben Lutgens @ 2002-06-23 1:36 UTC (permalink / raw
To: Jacob Perkins; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 923 bytes --]
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?"
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] new xvid ebuild
2002-06-23 1:36 ` Ben Lutgens
@ 2002-06-23 14:41 ` Jacob Perkins
0 siblings, 0 replies; 3+ messages in thread
From: Jacob Perkins @ 2002-06-23 14:41 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1483 bytes --]
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?"
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-23 14:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-23 0:03 [gentoo-dev] new xvid ebuild Jacob Perkins
2002-06-23 1:36 ` Ben Lutgens
2002-06-23 14:41 ` Jacob Perkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox