From: Kartik Thakore Date: Mon, 28 Sep 2009 00:57:37 +0000 (-0400) Subject: Added darwin build to Build.PL, fixed configure requires X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f4666242dd8d4e14cde6b8d75b3430678c838542;p=sdlgit%2FSDL_perl.git Added darwin build to Build.PL, fixed configure requires --- diff --git a/Build.PL b/Build.PL index 6eec5c2..d1aeb89 100644 --- a/Build.PL +++ b/Build.PL @@ -141,11 +141,6 @@ my $build = SDL::Build->new( 'Module::Build' => '0.22', 'YAML' => '0.68' }, - configure_requires => - { - 'Alien::SDL' => '0.07', - 'ExtUtils::CBuilder' => '0.260301' - }, build_recommends => { 'Pod::ToDemo' => '0.20' @@ -154,11 +149,24 @@ my $build = SDL::Build->new( xs_files => \%xs, meta_add => { + configure_requires => + { + 'Alien::SDL' => '0.06', + 'ExtUtils::CBuilder' => '0.260301' + }, + no_index => { file => [ , , , , ] }, }, dist_author => 'David J. Goehrig ', ); +if($arch eq 'Darwin') +{ + $build->{c_source} = $arch->build_c_source( \%libraries, $build_systems ); + $build->{c_sources} = $arch->build_c_sources( \%libraries, $build_systems ); + $build->{install_base} = $arch->build_install_base( \%libraries, $build_systems ); + +} # and here's where the real (and ugly) magic works... see SDL::Build $build->set_flags(