From: Richard Levitte - VMS Whacker (richard@levitte.org)
Date: Thu May 05 2005 - 09:44:24 CEST
In message <20050505.075304.00328114.richard@levitte.org> on Thu, 05 May 2005 07:53:04 +0200 (CEST), Richard Levitte - VMS Whacker <richard@levitte.org> said:
I ended up implementing the following, it was easy enough and quite
fool-proof:
richard> Yet another solution is to support specific variables to be defined in
richard> Imakefile.local, so for example, the JPEG thing could look like this:
richard>
richard> #ifdef JPEG
richard> JPEGLIBDIR = $(USER_JPEGLIBDIR)
richard> JPEGINCDIR = $(USER_JPEGINCDIR)
richard>
richard> JPEGDEFINES = -DJPEG
richard> JPEGLIB = $(JPEGLIBDIR) -ljpeg
richard> #else
richard> JPEGLIB =
richard> JPEGLIBDIR =
richard> JPEGINCDIR =
richard> JPEGDEFINES =
richard> #endif
richard>
richard> All that would be needed would be to do the following in
richard> Imakefile.local:
richard>
richard> #define JPEG
richard> USER_JPEGLIBDIR = -L/usr/pkg/packages/jpeg-6bnb2/lib -Wl,-rpath,/usr/pkg/packages/jpeg-6bnb2/lib
richard> USER_JPEGINCDIR = -I/usr/pkg/packages/jpeg-6bnb2/include
Cheers,
Richard
-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
--
Richard Levitte richard@levitte.org
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
This archive was generated by hypermail 2.1.4 : Fri May 06 2005 - 06:45:03 CEST