Skip to content

Instantly share code, notes, and snippets.

@leedo
Created February 21, 2013 20:57
Show Gist options
  • Save leedo/5008188 to your computer and use it in GitHub Desktop.
Save leedo/5008188 to your computer and use it in GitHub Desktop.
patched Perl::Magick 6.77 Makefile.PL to work with homebrew
--- PerlMagick-6.77/Makefile.PL 2012-05-24 18:00:30.000000000 -0500
+++ PerlMagick-6.77-working/Makefile.PL 2013-01-27 15:42:48.000000000 -0600
@@ -154,13 +154,12 @@
}
}
}
-
# defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile
-my $INC_magick = '-I../ -I.. -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/graphviz -I/usr/include/freetype2 -I/usr/include/libxml2 -I"' . $Config{'usrinc'} . '/ImageMagick"';
-my $LIBS_magick = '-L../magick/.libs -lMagickCore -lperl -lm';
+my $INC_magick = '-I../ -I.. -pthread -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libpng12 -pthread -I/usr/local/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/graphviz -I/usr/local/include/freetype2 -I/usr/include/libxml2 -I"/usr/local/include/ImageMagick"';
+my $LIBS_magick = '-lMagickCore -lperl -lm';
my $CCFLAGS_magick = "$Config{'ccflags'} -fopenmp -g -O2 -Wall -pthread";
-my $LDFLAGS_magick = "-L../magick/.libs -lMagickCore $Config{'ldflags'} -L/usr/lib";
-my $LDDLFLAGS_magick = "-L../magick/.libs -lMagickCore $Config{'lddlflags'} -L/usr/lib";
+my $LDFLAGS_magick = "-L/usr/local/lib -lMagickCore-Q16 $Config{'ldflags'} -L/usr/lib";
+my $LDDLFLAGS_magick = "-L/usr/local/lib -lMagickCore-Q16 $Config{'lddlflags'} -L/usr/lib";
if (($^O eq 'MSWin32') && ($Config{cc} =~ /gcc/)) {
my($Ipaths, $Lpaths) = AutodetectWin32gcc();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment