On Wed 04 May 2005 at 13:04:28 +0200, Richard Levitte - VMS Whacker wrote:
> As usual, patches are welcome!

I am updating my pkgsrc entry, and I ran into a problem when I want to
enable the JPEG option. I'm still looking for the right thing to patch,
but here is a thing to clean up.

I think many of the assignments in the Imakefile should use ?= instead
of =, so that they can usefully be set from the Imakefile.local.

I think I need this to get proper support for e.g. the JPEG option,
where I need to pass long -I -L and -rpath options to find it. So I'd
like something like this:

#ifdef JPEG
     JPEGLIBDIR ?=
     JPEGINCDIR ?= 

    JPEGDEFINES ?= -DJPEG
        JPEGLIB ?= $(JPEGLIBDIR) -ljpeg
#else
        JPEGLIB =
     JPEGLIBDIR =
     JPEGINCDIR = 
    JPEGDEFINES =
#endif 

so that my Imakefile.local file can contain something like this:

     JPEGLIBDIR = -L/usr/pkg/packages/jpeg-6bnb2/lib 
-Wl,-rpath,/usr/pkg/packages/jpeg-6bnb2/lib
     JPEGINCDIR = -I/usr/pkg/packages/jpeg-6bnb2/include

I haven't exactly decided how to pass these options, but having the ?=
in place will certainly help.

Cheers,
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            --  rhialto/at/falu.nl
\X/ Hi! I'm a signature virus! Copy me to your .signature to help me spread!

Reply via email to