Alien-MuPDF
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# BEGIN code inserted by Dist::Zilla::Plugin::AlienBuild
{ package
MY;
sub postamble {
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
lib/Alien/MuPDF.pm view on Meta::CPAN
File::Spec->catfile( File::Spec->rel2abs($self->dist_dir) , 'bin', 'mutool' );
}
sub inline_auto_include {
return [ 'mupdf/fitz.h' ];
}
sub cflags {
my ($self) = @_;
my $top_include = File::Spec->catfile( File::Spec->rel2abs($self->dist_dir), qw(include) );
# We do not include $self->SUPER::cflags() because that adds too many
# header files to the path. In particular, it adds -Imupdf/fitz, which
# leads to "mupdf/fitz/math.h" being included when trying to include
# the C standard "math.h" header.
return "-I$top_include";
}
sub libs {
# third party
"-lcrypto";
}
( run in 1.381 second using v1.01-cache-2.11-cpan-49f99fa48dc )