I am wondering if the Makefile for GRX supports, or will support, DESTDIR. I tried to create a SlackBuild, but had problems, I think because there was no DESTDIR. I prefer fully Free Software and want to switch to Kongoni or maybe Parabola one day, but if I make a SlackBuild it of course could be used for those distributions.
--David
_____________________________________________________________ Find out what's HIP! Visit Hip Planet for news, shopping, forums, chatrooms, free personal and classified ads and much more! Get FREE E-MAIL! at HipPlanet now!
It's all waiting for you, at http://www.hipplanet.com
David Melik wrote:
I am wondering if the Makefile for GRX supports, or will support, DESTDIR.
Not DESTDIR, but INSTALLDIR which needs to include the prefix, i.e. you could set INSTALLDIR="$DESTDIR/$prefix" (where prefix on Unix defaults to /usr/local, as usual). Its Makefiles were written in a time when DESTDIR was not widely used (or maybe not even "invented" yet) and have never been updated.
If you use the configure script, it doesn't support it yet (always sets INSTALLDIR to $prefix by default), but I think you can easily change it to add DESTDIR (either evaluated when configure is called, or let it put $(DESTDIR) in the generated config file so DESTDIR will be evaluated on the "make install" call as usual).
I wrote the configure script originally, but I don't use GRX myself anymore, so I'm just lurking here.
If you'd like to update the configure script and/or the Makefiles in this regard and post your patches here, I'm sure Maurice, the current maintainer, will include them in the distribution. (I'd not recommend to remove INSTALLDIR in the process, since some users may rely on it.)
Regards, Frank
[ Resending as the mailing list dropped my other reply due to the sender address not being subscribed. ]
Hi!
On Thu, 2012-06-28 at 03:53:01 -0700, David Melik wrote:
I am wondering if the Makefile for GRX supports, or will support, DESTDIR. I tried to create a SlackBuild, but had problems, I think because there was no DESTDIR. I prefer fully Free Software and want to switch to Kongoni or maybe Parabola one day, but if I make a SlackBuild it of course could be used for those distributions.
I don't think it does, it used to have an equivalent INSTALLDIR variable, but I've not checked latest releases. I sent a patch to add that some time ago [0] but it never got applied. I'd gladly try to refresh it if there's interest in it.
[0] http://www.g-n-u.de/pipermail/grx/2003-May/000714.html
regards, guillem
Le 28/06/2012 18:50, Guillem Jover a écrit :
On Thu, 2012-06-28 at 03:53:01 -0700, David Melik wrote:
I am wondering if the Makefile for GRX supports, or will support, DESTDIR. I tried to create a SlackBuild, but had problems, I think because there was no DESTDIR. I prefer fully Free Software and want to switch to Kongoni or maybe Parabola one day, but if I make a SlackBuild it of course could be used for those distributions.
I don't think it does, it used to have an equivalent INSTALLDIR variable, but I've not checked latest releases. I sent a patch to add that some time ago [0] but it never got applied. I'd gladly try to refresh it if there's interest in it.
Here is attached a generalisation of your work to all current targets in grx 2.4.8 It honours DESTDIR INSTALLDIR is no more present, but prefix is there
Some side changes: when correcting the old configure/makedefs/makefiles to include x86_64 I used a Fedora Core 6 system for which lib was lib32 and lib64 was a separate directory. Now I use also a more modern debian system for which lib is lib64 and lib32 is a separate directory. I thus can no more guess the relatioship between x86_64 and the lib involved. It is supposed that lib is OK, and if not configure can supply correct libdir and x11-lib
Maurice
Maurice Lombardi Laboratoire Interdisciplinaire de Physique, (ex Spectrometrie Physique) Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 63 54 95 mailto:Maurice.Lombardi@ujf-grenoble.fr