Skip to content

Instantly share code, notes, and snippets.

@zmughal
Created May 2, 2014 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zmughal/11465847 to your computer and use it in GitHub Desktop.
Save zmughal/11465847 to your computer and use it in GitHub Desktop.
$WriteMakefileArgs{CONFIGURE} = sub {
require Alien::Leptonica;
my $l = Alien::Leptonica->new;
my $pkg = ExtUtils::Depends->new('Image::Leptonica',);
$pkg->set_inc( $l->cflags );
$pkg->set_libs( $l->libs );
$pkg->add_typemaps( 'typemap' );
mkdir catfile qw( lib Image Leptonica )
$pkg->save_config('Image/Leptonica/IFiles.pm');
+{ $pkg->get_makefile_vars() };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment