[MPlayer-users] Cross-compilation

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Wed Aug 15 13:16:56 CEST 2007


On Tuesday, 14 August 2007 at 20:28, Eric Nelson wrote:
> Dominik 'Rathann' Mierzejewski wrote:
> > On Tuesday, 14 August 2007 at 15:30, Eric Nelson wrote:
> >> Hello, all.
> >>
> >> The patch below allows override of the DESTDIR symbol when doing
> >> "make install". This is useful when creating a filesystem for an
> >> embedded target.
> >>
> >> Eric Nelson
> >> Boundary Devices
> >>
> >> --- mplayer.orig/configure	2007-08-13 18:16:26.000000000 -0700
> >> +++ mplayer/configure	2007-08-13 18:18:47.000000000 -0700
> >> @@ -7432,7 +7432,7 @@
> >>  LANG = C
> >>  MAN_LANG = $MAN_LANG
> >>  TARGET_OS = $system_name
> >> -DESTDIR =
> >> +DESTDIR ?=
> >>  prefix = \$(DESTDIR)$_prefix
> >>  BINDIR = \$(DESTDIR)$_bindir
> >>  DATADIR = \$(DESTDIR)$_datadir
> > 
> > I don't think this is necessary. Overriding DESTDIR during make install
> > works just fine without this patch. In fact, it's been working for years.
> > 
> 
> I must be missing something then. Without the question mark, I get the
> results below (i.e. "Permission denied" trying to copy files to
> /usr/local/bin).
> 
> Can you post an example?
> 
> Thanks in advance,
> 
> 
> Eric
> 
> ~/tmp/userland/build/MPlayer-1.0rc1$ DESTDIR=/home/ericn/userland/install make install

Ah, you're doing this the wrong way. To override Makefile variables you put
them as make parameters, like this:

~/tmp/userland/build/MPlayer-1.0rc1$ make DESTDIR=/home/ericn/userland/install install

Regards,
R.

-- 
MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-users mailing list