[vdr] change make install to be really useful

Matthias Schwarzott zzam at gentoo.org
Wed Aug 15 12:57:49 CEST 2007


On Dienstag, 14. August 2007, Artur Skawina wrote:
> Udo Richter wrote:
> > Matthias Schwarzott wrote:
> >> makefile-destdir.diff:
> >> It add variable DESTDIR to makefile to install under $(DESTDIR) instead
> >> of /
> >
> > I would prefer something like DESTDIR=/usr/local that can be redirected
> > to /usr or /tmp/newpackage/usr or similar, just as many configure
> > scripts do it. On the downside, this wouldn't work for
> > $(DESTDIR)$(VIDEODIR).
>
> the usual convention is PREFIX, which defaults to '/usr/local' and can be
> changed to eg '/usr/' or '/sw/vdr-1.6.0' etc.
> DESTDIR is completely independent -- it adds _another_ prefix; this is used
> eg when building packages.
> So "make install DESTDIR=/tmp/BLD-38746 PREFIX=/sw/vdr-1.6.0"
> means to assume the program will be installed in /sw/vdr-1.6.0 (and look
> for config files in /sw/vdr-1.6.0/etc/, binaries in /sw/vdr-1.6.0/bin/
> etc), but to copy all the files to /tmp/BLD-38746/sw/vdr-1.6.0. This way
> you can build a package w/o disturbing the /sw/ tree and install using a
> package manager later.

I updated the patch to use DESTDIR and PREFIX.

Comments on installing header files and Make.config?
Should Make.config go to $PREFIX/share/vdr ?

Matthias

-- 
Matthias Schwarzott (zzam)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-1.5.7-makefile-destdir.diff
Type: text/x-diff
Size: 2255 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20070815/8a587fbf/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-1.5.7-makefile-install-header.diff
Type: text/x-diff
Size: 1068 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20070815/8a587fbf/attachment-0001.diff 


More information about the vdr mailing list