Alien-ImageMagick
view release on metacpan or search on metacpan
warn 'ignoring invalid environment variable PERL_ALIEN_IMAGEMAGICK_VERSION';
}
}
my $perlbin = $Config{perlpath};
my $perlversion = $Config{version};
my $siteprefix = $Config{siteprefix};
my $dataprefix = $Config{siteprefix} . '/etc/';
my $core_lib = $Config{archlib}.'/CORE/';
my $use_threads = $Config{usethreads} ? '' : '--without-threads';
my $enable_shared = ( ( $Config{useshrplib} || '' ) eq 'false' ) ? '' : '--enable-shared';
my $LDFLAGS= '-L'.$core_lib;
my ($ldconfig) = grep { -x } map { "$_/ldconfig" } split(/:/, $ENV{PATH});
$ldconfig = "$ldconfig || true" if $ldconfig;
my $builder = Alien::Base::ModuleBuild->new(
module_name => 'Alien::ImageMagick',
license => 'perl',
dist_author => q{Jerome Eteve <jerome.eteve@gmail.com>},
## For development, to save the download time,
## download the package once and put it in an 'inc' directory.
# alien_repository => {
# protocol => 'local',
# location => 'inc',
# exact_filename => 'ImageMagick.tar.gz',
# },
alien_build_commands => [
## This siteprefix will install the execs in perl's /bin and the libs in perl's lib/
'LDFLAGS='.$LDFLAGS.' %c --prefix=%s --sysconfdir='.$dataprefix.' --exec-prefix='.$siteprefix.' --with-perl='.$perlbin.' '.$enable_shared.' '.$use_threads . ' --with-modules',
# Patch the PerlMagick makefiles to reflect lib installation places.
# This is because ImageMagic's PerlMagick package comes with Makefile.PL files
# containing a relative reference to the build directory ../magick/.libs
#
# This causes https://rt.cpan.org/Public/Bug/Display.html?id=98979
#
# This (fairly) dirty patch solves the issue.
# If this breaks, refer to the original source in:
# https://github.com/ImageMagick/ImageMagick/blob/main/PerlMagick/Makefile.PL.in
( run in 0.398 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )