Alien-SDL2
view release on metacpan or search on metacpan
}
}
}
else {
print "yes\n";
}
print "checking build system type... $Config{archname}\n";
#### we need the platform-specific module
my %platforms =(
# Unix = default, thus not listing all UNIX like systems
MSWin32 => 'Windows',
);
my $package = 'My::Builder::' . ($platforms{$^O} || 'Unix');
print "checking platform specific module... using '$package'\n";
eval "require $package" or die "Require '$package' failed: $@\n";
my $sdl2_config;
#### Stadard Module::Builder stuff
my $build = $package->new(
module_name => 'Alien::SDL2',
all_from => 'lib/Alien/SDL2.pm',
dist_abstract => 'Get, Build and Use SDL2 libraries',
Revision history for Perl module Alien::SDL2
0.002 17/08/2013
- Added patch for compiling libtiff 4.0.3 with jpeg-9 on Debian/Ubuntu machines
- Added travis integration for continous testing [mtj++]
- Fixed /usr/include => /usr/lib & /usr/lib64 bug where on Unix 64 /usr/lib was being excluded in the file path search for existing libraries
- Fixed depreciated File::Temp::tempfile calls (Updated to File::Temp 0.23)
- Updated libraries to first official release of SDL2 [kmx]
- Added patch for png [kmx]
0.001 XXX
- initial version by kmx
.travis.yml
Build.PL
Changes
inc/My/Builder.pm
inc/My/Builder/Unix.pm
inc/My/Builder/Windows.pm
inc/My/Utility.pm
lib/Alien/SDL2.pm
LICENSE
MANIFEST This list of files
META.json
META.yml
patches/libpng-1.6.3-hack.patch
patches/libtiff.4.0.3.tiffio.h.patch
patches/libvorbis-1.3.3-configure.patch
inc/My/Builder/Unix.pm view on Meta::CPAN
package My::Builder::Unix;
use strict;
use warnings;
use base 'My::Builder';
use File::Spec::Functions qw(catdir catfile rel2abs);
use My::Utility qw(check_header check_prereqs_libs check_prereqs_tools $inc_lib_candidates);
use Config;
sub get_additional_cflags {
inc/My/Builder/Unix.pm view on Meta::CPAN
my $srcdir = catfile($build_src, $pack->{dirname});
my $prefixdir = rel2abs($build_out);
$self->config_data('build_prefix', $prefixdir); # save it for future Alien::SDL::ConfigData
chdir $srcdir;
# setting environments PATH
my $extra_PATH = "";
if ($^O eq 'solaris') {
# otherwise we get "false cru build/libSDLmain.a build/SDL_dummy_main.o"
# see http://fixunix.com/ntp/245613-false-cru-libs-libopts-libopts_la-libopts-o.html#post661558
for (qw[/usr/ccs/bin /usr/xpg4/bin /usr/sfw/bin /usr/xpg6/bin /usr/gnu/bin /opt/gnu/bin /usr/bin]) {
$extra_PATH .= ":$_" if -d $_;
}
}
$ENV{PATH} = "$prefixdir/bin:$ENV{PATH}$extra_PATH";
# do './configure ...'
my $run_configure = 'y';
$run_configure = $self->prompt("Run ./configure for '$pack->{pack}' again?", "y") if (-f "config.status");
if (lc($run_configure) eq 'y') {
( run in 0.705 second using v1.01-cache-2.11-cpan-64ef6c95b5d )