[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] The make install target



On Tue, May 30, 2006 at 11:59:23AM +0100, Alex Bligh wrote:
> Vasil Dimov wrote:
> >If not changed by the user ${PREFIX} defaults to /usr/X11R6.
> 
> Is that hardcoded, or is that just what make does on your system?
> Normally the default prefix is /usr/local, with debian/ubuntu
> people specifying /usr.

In FreeBSD ports get installed under /usr/local or /usr/X11R6 depending
on whether they are X applications or not. By now the XaraLX port
installed in /usr/local, but I decied that it is more appropriate for it
to go in the X-related prefix so I added USE_X_PREFIX=yes to the port
which changes the PREFIX from /usr/local to /usr/X11R6. Btw I still have
not committed the changes. Btw2 if the user types
`make install PREFIX=/home/joe' this will override the default
/usr/X11R6 and XaraLX will get installed in /home/joe.

> 
> >The reason I did not create a patch for the XaraLX's Makefile.am
> >is that the "by hand" method is simpler for me and furthermore I am
> >not sure if the above paths are standard for Linux and other OSes.
> 
> The disadvantage of this route is that it isn't going to pick up
> system differences in paths (I think - I'm not sure how this works
> TBH).
While I do not fully understand what you mean by "it isn't going to pick
up system differences in paths" I hope that soon I will be able to
remove the custom install target and use the XaraLX's one with at most
giving some additional arguments to ./configure for specifying the
installation paths if the defaults differ from the "FreeBSD standards".

> 
> >There are 6 paths above - man, bin, applications (for the desktop file),
> >pixmaps (for the icon), examples and doc. It would be great if the
> >`make install' target installs these somewhere by default and these
> >defaults to be changeable via ./configure options.
> >
> >What do you think? Ideas? Patches?
> 
> I think we need to ensure that we are putting files roughly where
> the autopackage stuff would put files (or we will end up with
> files in two places depending on whether built from source or not).
Yes, and it would be best if the installation paths defaults are
configurable via ./configure.

> I don't know anything about autopackage & Neil is away for the
> week so I am not quite sure where these go and under what rules.
I'm not in a hurry having that I implemened the 'by hand' installation
and the FreeBSD port will get the desktop file installed in a few hours.

-- 
Vasil Dimov
gro.DSBeerF@dv

Testing can show the presence of bugs, but not their absence.
                -- Edsger W. Dijkstra