Skip to content
Browse files

Added darwin build to Build.PL, fixed configure requires

  • Loading branch information...
1 parent a3c3bf6 commit 40e06a96d77c4fc1fa8b4d627536a2ddc5018bb8 @kthakore kthakore committed Sep 27, 2009
Showing with 13 additions and 5 deletions.
  1. +13 −5 Build.PL
View
18 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 => [ <make/lib/SDL/*.pm>, <make/lib/SDL/Build/*.pm>, <make/lib/ExtUtils/CBuilder/*>, <make/lib/ExtUtils/*>, <make/lib/ExtUtils/CBuilder/Platform/Windows.pm> ] },
},
dist_author => 'David J. Goehrig <DGOEHRIG@cpan.org>',
);
+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(

0 comments on commit 40e06a9

Please sign in to comment.
Something went wrong with that request. Please try again.