Alien-DjVuLibre

 view release on metacpan or  search on metacpan

DjVuLibre.pm  view on Meta::CPAN

=head1 NAME

Alien::DjVuLibre - Find or download and install DjVuLibre.

=head1 SYNOPSIS

 use Alien::DjVuLibre;

 my $atleast_version = Alien::DjVulibre->atleast_version($wanted_version);
 my $bin_dir = Alien::DjVuLibre->bin_dir;
 my $cflags = Alien::DjVuLibre->cflags;
 my $cflags_static = Alien::DjVuLibre->cflags_static;
 my $dist_dir = Alien::DjVuLibre->dist_dir;
 my $exact_version = Alien::DjVuLibre->exact_version($wanted_version);
 my $install_type = Alien::DjVuLibre->install_type;
 my $libs = Alien::DjVuLibre->libs;
 my $libs_static = Alien::DjVuLibre->libs_static;
 my $max_version = Alien::DjVuLibre->max_version($wanted_version);
 my $version = Alien::DjVuLibre->version;

=head1 DESCRIPTION

DjVuLibre.pm  view on Meta::CPAN


=head1 EXAMPLE

=for comment filename=alien_djvulibre_variables.pl

 use strict;
 use warnings;

 use Alien::DjVuLibre;

 print 'cflags: '.Alien::DjVuLibre->cflags."\n";
 print 'cflags_static: '.Alien::DjVuLibre->cflags_static."\n";
 print 'dist_dir: '.Alien::DjVuLibre->dist_dir."\n";
 print 'libs: '.Alien::DjVuLibre->libs."\n";
 print 'libs_static: '.Alien::DjVuLibre->libs_static."\n";
 print 'version: '.Alien::DjVuLibre->version."\n";

 # Output like:
 # cflags: -pthread
 # cflags_static: -pthread
 # dist_dir: ~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/Alien-DjVuLibre
 # libs: -ldjvulibre
 # libs_static: -ldjvulibre -ljpeg -lpthread -lm
 # version: 3.5.28

=head1 DEPENDENCIES

L<Alien::Base>.

=head1 REPOSITORY

README  view on Meta::CPAN

NAME
    Alien::DjVuLibre - Find or download and install DjVuLibre.

SYNOPSIS
     use Alien::DjVuLibre;

     my $atleast_version = Alien::DjVulibre->atleast_version($wanted_version);
     my $bin_dir = Alien::DjVuLibre->bin_dir;
     my $cflags = Alien::DjVuLibre->cflags;
     my $cflags_static = Alien::DjVuLibre->cflags_static;
     my $dist_dir = Alien::DjVuLibre->dist_dir;
     my $exact_version = Alien::DjVuLibre->exact_version($wanted_version);
     my $install_type = Alien::DjVuLibre->install_type;
     my $libs = Alien::DjVuLibre->libs;
     my $libs_static = Alien::DjVuLibre->libs_static;
     my $max_version = Alien::DjVuLibre->max_version($wanted_version);
     my $version = Alien::DjVuLibre->version;

DESCRIPTION
    Some packages insist on using DjVuLibre library.

README  view on Meta::CPAN


CONFIGURATION AND ENVIRONMENT
    Not yet.

EXAMPLE
     use strict;
     use warnings;

     use Alien::DjVuLibre;

     print 'cflags: '.Alien::DjVuLibre->cflags."\n";
     print 'cflags_static: '.Alien::DjVuLibre->cflags_static."\n";
     print 'dist_dir: '.Alien::DjVuLibre->dist_dir."\n";
     print 'libs: '.Alien::DjVuLibre->libs."\n";
     print 'libs_static: '.Alien::DjVuLibre->libs_static."\n";
     print 'version: '.Alien::DjVuLibre->version."\n";

     # Output like:
     # cflags: -pthread
     # cflags_static: -pthread
     # dist_dir: ~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/Alien-DjVuLibre
     # libs: -ldjvulibre
     # libs_static: -ldjvulibre -ljpeg -lpthread -lm
     # version: 3.5.28

DEPENDENCIES
    Alien::Base.

REPOSITORY
    <https://github.com/michal-josef-spacek/Alien-DjVuLibre>

alienfile  view on Meta::CPAN

	plugin 'Build::Make' => 'gmake';
	plugin 'Build::Autoconf';
	build [
		'%{configure} --disable-xmltools --disable-desktopfiles --enable-shared --enable-static',
		'%{make}',
		'%{make} install',
	];
	after gather => sub {
		my ($build) = @_;

		my @extra_compiler_flags;

		if( $^O eq 'MSWin32' ) {
			# possibly only needed for MinGW
			push @extra_compiler_flags, qw(-DDDJVUAPI_EXPORT -DMINILISPAPI_EXPORT);
		}

		my @extra_linker_flags;

		push @extra_linker_flags, ExtUtils::CppGuess->new->linker_flags;

		if( $^O eq 'darwin' ) {
			push @extra_linker_flags, qw(-framework CoreFoundation);
		}

		for my $type ('', '_static') {
			$build->runtime_prop->{"cflags$type"} = join ' ',
				$build->runtime_prop->{"cflags$type"},
				@extra_compiler_flags;
			$build->runtime_prop->{"libs$type"}   = join ' ',
				$build->runtime_prop->{"libs$type"},
				@extra_linker_flags;
		}
	};
	plugin 'Gather::IsolateDynamic';
};

examples/alien_djvulibre_variables.pl  view on Meta::CPAN

#!/usr/bin/env perl

use strict;
use warnings;

use Alien::DjVuLibre;

print 'cflags: '.Alien::DjVuLibre->cflags."\n";
print 'cflags_static: '.Alien::DjVuLibre->cflags_static."\n";
print 'dist_dir: '.Alien::DjVuLibre->dist_dir."\n";
print 'libs: '.Alien::DjVuLibre->libs."\n";
print 'libs_static: '.Alien::DjVuLibre->libs_static."\n";
print 'version: '.Alien::DjVuLibre->version."\n";

# Output like:
# cflags: -pthread
# cflags_static: -pthread
# dist_dir: ~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/Alien-DjVuLibre
# libs: -ldjvulibre
# libs_static: -ldjvulibre -ljpeg -lpthread -lm
# version: 3.5.28



( run in 0.988 second using v1.01-cache-2.11-cpan-94b05bcf43c )