In message <[EMAIL PROTECTED]> on Thu, 05 May 2005 07:53:04 +0200 (CEST), 
Richard Levitte - VMS Whacker <[EMAIL PROTECTED]> 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                         [EMAIL PROTECTED]
                                        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

Reply via email to