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=40e06a96d77c4fc1fa8b4d627536a2ddc5018bb8;p=sdlgit%2FSDL_perl.git Added darwin build to Build.PL, fixed configure requires --- diff --git a/Build.PL b/Build.PL index f01da49..17aeb1c 100644 --- a/Build.PL +++ b/Build.PL @@ -133,11 +133,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' @@ -146,11 +141,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(