Makefile.PL patch - making -I<path> compatible with non-UNIX

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
kmx

Makefile.PL patch - making -I<path> compatible with non-UNIX

Post by kmx »

Hi,

I would like to propose the following patch to Makefile.PL:

Code: Select all

--- Makefile.PL.orig    2009-09-06 04:35:00.000000000 +0200
+++ Makefile.PL 2009-09-24 09:24:35.671284600 +0200
@@ -58,7 +58,8 @@
    # Preprocessor defines
    'DEFINE'    => ' -D_LARGE_FILES=1 -DHAVE_CONFIG_H',     # e.g., '-DHAVE_SOMETHING'
    # Header search specfication and preprocessor flags
-   'INC'       => '-I/usr/local/include/ImageMagick -I/usr/local/include -I/usr/include/ImageMagick',
+   'INC'       => '-I/usr/local/include/ImageMagick -I/usr/local/include -I/usr/include/ImageMagick '.
+                  '-I"'.$Config{'usrinc'}.'/ImageMagick"',

    # Linker flags for building an executable
    'LDFLAGS' =>  "-L/usr/local/lib -lMagickCore -lMagickWand $Config{'ldflags'}",
This will help building PerlMagick on non-UNIX platforms - providing that those platforms have correctly set $Config{'usrinc'}.

Thanks for any feedback.

--
kmx

User avatar
magick
Site Admin
Posts: 11125
Joined: 2003-05-31T11:32:55-07:00

Re: Makefile.PL patch - making -I<path> compatible with non-UNIX

Post by magick »

We'll get you patch into the next release of PerlMagick. Thanks.

Post Reply